Toshiba KB-80 Computer Keyboard User Manual


 
- 7 -
Communication input/output
Statement
OPEN COM Format OPEN ”COM <line number> : [communication condition] ” AS # <file
number>
Function Opens the communication file.
ON COM (n) Format ON COM ( <line number> ) GOSUB <line number>
Function Declares an interrupt which occurs when the data is input into the
communication buffer, and declares the start line number for the
subroutine to be executed.
COM (n) Format COM ( <line number> ) ON/STOP
Function Enables/Stops an interrupt from the communication file.
SENDCMD (n) Format SENDCMD <expression list>
Function Creates a command packet for the printer, and sends it to COM1.
Clock input/output
Statement
ON TIMER Format ON TIMER ( <n> ) GOSUB <line number>
Function Declares an interrupt which occurs at specified intervals, and the line
number from which the execution of the subroutine is started by the
interrupt.
TIMER ON Format TIMER ON/STOP
Function Enables/Stops a timer interrupt.
TIMER Format TIMER
Function Returns the elapsed time after the system is reset in a single-precision
floating point format.