Specifications

Table Of Contents
Example of Code 128 Subset B
Since Code 128 Subset B is the most commonly used subset, ZPL II defaults to
Subset B if no start character is specified in the data string. This is illustrated in the
following two samples.
The bar codes in the following two samples are identical.
Figure A: Subset B with Figure B: Subset B with
no start character start character
The first two commands (^XA^FO100,75) start the label format and set the field
origin (from the upper-left corner) where the bar code field begins 100 dots across
the x-axis and 75 dots down the y-axis.
The third command (^BCN,100,Y,N,N) calls for a Code 128 bar code to be printed
with no rotation and a height of 100 dots.
Command four (^FDCODE128 in Figure A) and (^FD>:CODE128 in Figure B)
specify the content of the bar code.
Command five (^XZ) indicates the end of the print field and the end of the label
format.
The interpretation line will print below the code with the UCC check digit turned off.
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. Although ZPL II defaults
to Code B, it is a very 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:
^>~
These characters must be programmed using the invocation codes.
ZPL II Programming Guide Volume One: Command Reference for X.10
41