Toshiba KB-80 Computer Keyboard User Manual


 
- 75 -
SENDCMD
Function Sends a command packet of character strings to the printer, and makes a response to
an ACK or a NAK from the printer.
Format SENDCMD <expression list>
Term <expression list>: List of character expressions or character strings
(A character string should be enclosed in quotation marks (”).)
Explanation This statement adds “STX” to the beginning of character strings, adds the command
length, adds BCC data to the end of character strings, and then sends a command
packet through COM1 (fixed). After a command packet is sent, this statement waits
for an ACK from the printer. If it receives a NAK, the statement sends the command
packet again. The max. length of command character string is 252 bytes.
Ex. 1
SENDCMD”{WU|}”
Ex. 2
A$=”{WU|}”
Ex. 3
CNT$=”0010”
SENDCMD”{XS;I,”+CNT$+”,0002C4101|}”