Unit 5: Bar Code Commands
Page 5-6 SATO D512 PCL Programming Manual
MaxiCode Notes
Depending on the mode, the input data sent with the Transfer Bar Code Data
command must follow the following rules:
Rule 1: For all modes the input data must start with a label-number field and
number-of-labels field. Both fields are one digit in length and are
terminated with either a comma or Group Separator (GS, ASCII 29,
hexadecimal 1D).
Rule 2: For modes 2 and 3 there are 3 extra fields that must follow the label
fields. These include the postal code, country code, and class of
service. Each field must be terminated with either a comma or GS.
Rule 3: A mode 2 postal code can be 0 to 9 digits.
Rule 4: A mode 3 postal code can be 0 to 6 alphanumeric characters (any
printable character in code set A as defined in AIM spec).
Rule 5: The country code must be 3 digits in length and thus padded with
leading zeros if necessary.
Rule 6: The class of service must be 3 digits in length and thus padded with
leading in zeros if necessary.
Rule 7: For modes 2 and 3 an optional ANSI Message Header (for example
[)>RS01GSyy) can be inserted prior to the postal code. (RS = record
separator, ASCII 30, hexadecimal 1D;yy is a two digit year). This
message is automatically moved to the secondary message. Neither
a group separator nor a comma should terminate this message.
An optional secondary message follow the class of service for modes 2
and 3. For modes 4, 5, and 6 the message follows the number-of-labels field.