Page 71 - ZPL II Programming Guide
P. 71
ZPL Commands 51
^BC
Example • Figures A and B are examples of identical bar codes, and Figure C is an example
of switching from Subset C to B to A, as follows:
Because 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.
^XA
^FO50,50
^BY3^BCN,100,Y,N,N
^FD>;382436>6CODE128>752375152^FS
^XZ
Figure C: Switching from Subset C to B to A
How ^BC Works Within a ZPL II Script
^XA – the first command starts the label format.
^FO100,75 – the second command sets the field origin at 100 dots across the x-axis and 75
dots down the y-axis from the upper-left corner.
^BCN,100,Y,N,N – the third command calls for a Code 128 bar code to be printed with
no rotation (N) and a height of 100 dots. An interpretation line is printed (Y) below the bar
code (N). No UCC check digit is used (N).
^FDCODE128^FS (Figure A) ^FD>:CODE128^FS (Figure B) – the field data command
specifies the content of the bar code.
^XZ – the last command ends the field data and indicates the end of the label.
The interpretation line prints below the code with the UCC check digit turned off.
9/15/06 ZPL II Programming Guide 45541L-004 Rev. A