6-13
6.3 Outline of Command System
For details about command system, see the Command Reference separately
available.
Commands for this printer consist of a string of ASCII code and end with "CR"
(decimal: 13, hex: 0D). Generally, commands are classified into two types,
system-levelcommands and label format commands.
System-levelcommands are used for system-leveloperations such as printer
status output, sensor selection and memory card maintenance. On the
other hand,label format commands are usedfor definition of printing contents
such as characterdata, bar code data, print speed, and print density.
System-levelcommands start with ASCII "SOH" ($01) or "STX" ($02).
Commands which start with "SOH" are required for realtime execution.
When received, they are executed immediately even during printing.
Commands which start with"STX" enter the buffer area once and then are
executed in the orderof data reception.
Label format commands end with "CR", following the system-level
commands' "STX"+ "L."
Commands that start with "SOH":
Executed immediately af ter receiving data
(e.g. stop of printing, output of printer status, etc.)
System-level commands
start with ASCII "SOH" ($01) or
"STX" ($02).
Commands that start with "STX":
Executed in the order of data input to the receiv e
buffer
(e.g. switching of sensor, memory card maintenance,
etc.)
"STX" + "L" ↓↑"E" (with print)
"X" (without print)
Print parameter control
Characterdata definition commands
Barcode definition commands
Graphic commands
Label format commands
end with "CR"
Other commands