Page 72 - ZPL II Programming Guide
P. 72
52 ZPL Commands
^BC
The ^FD command for Figure A does not specify any subset, so Subset B is used. In Figure B,
the ^FD command specifically calls Subset B with the >: Start Code. Although ZPL II defaults
to Code B, it is good practice to include the Invocation Codes in the command.
Code 128 – Subset B is programmed directly as ASCII text, except for values greater than 94
decimal and a few special characters that must be programmed using the invocation codes.
Those characters are:
^ > ~
Example • Code 128 – Subsets A and C
Code 128, Subsets A and C are programmed in pairs of digits, 00 to 99, in the field data
string. For details, see Table 6 on page 49.
In Subset A, each pair of digits results in a single character being encoded in the bar code; in
Subset C, characters are printed as entered. Figure E below is an example of Subset A (>9 is
the Start Code for Subset A).
Nonintegers programmed as the first character of a digit pair (D2) are ignored. However,
nonintegers programmed as the second character of a digit pair (2D) invalidate the entire
digit pair, and the pair is ignored. An extra unpaired digit in the field data string just before a
code shift is also ignored.
Figure C and Figure D below are examples of Subset C. Notice that the bar codes are
identical. In the program code for Figure D, the D is ignored and the 2 is paired with the 4.
45541L-004 Rev. A ZPL II Programming Guide 9/15/06