SATO D512 PCL Printer User Manual


 
Unit 5: Bar Code Commands
SATO D512 PCL Programming Manual Page 5-5
TWO-DIMENSIONAL BAR CODES
MAXICODE PCL 5 COMMANDS TO SUPPORT MAXICODE BAR CODES
Sato provides two methods to print MaxiCode bar codes. The final method uses two Sato unique
commands
ESC
&x#W and
ESC
&y#W.
B
AR CODE DESCRIPTOR
ESC
&X#W[DESCRIPTOR DATA]
This escape sequence is used to describe not only what bar code to print, but also all of the
parameter settings required to build the bar code. The first two bytes of this command always
designate the symbology. The remaining byte is then interpreted to specify the mode. # is the
number of bytes of descriptor data. The descriptor data for MaxiCode would be the binary string
00 02 01 (for mode 1), 00 02 02 (for mode 2), and so on.
T
RANSFER BAR CODE DATA ESC&Y#W[BAR CODE DATA]
This new PCL 5 command is used to transfer a raw block of bar code data to be encoded. The
bar code data is encoded according to what was specified in the last valid Bar Code Descriptor
command received. If no valid Descriptor is sent, then this command is ignored and the data is
flushed. # is the number of bytes of bar code data.
B
AR CODE DESCRIPTOR FOR MAXICODE
Below is the header definition of the bar code descriptor for MaxiCode:
Symbology ID bytes 0 and 1: (Required = 00 02x)
These two bytes signify the symbology. For MaxiCode, these two bytes must
be 00x and 02x.
Mode: (Default = 02x)
This field designates what mode to use when interpreting the input data. Valid
modes are (in hex).
Table 5-3: MaxiCode Descriptor Header Definition
Bytes MSB LSB
0–1 Symbology ID byte (00x) Symbology ID byte 2 (02x)
2–3 Mode Reserved
Table 5-4: MaxiCode Mode Values
Bytes MSB
02x Structured carrier message with numeric postal code
03x Structured carrier message with alphanumeric postal code
04x Standard symbol with standard error correction
05x Full symbol with enhanced error correction
06x Reader Program with standard error correction