5525B/31/32 Line Matrix Printer Code V Programmer's Reference Manual
198
Chapter 3 Bar Codes
Code UCC/EAN-128 Examples
The following command generates the horizontal default ratio UCC/EAN-128
bar code below. In the command sequence, graphics mode data is
italicized
and bar code data is boldface. Refer to the “Commands” chapter for a
detailed description of alphanumeric commands and dynamic forms
generation.
^PY^- ^M10,10,000^KF^BYq0034567890123456789^G^KF^-^PN^-
^PY^- enabled the graphics command sequence. ^M introduced the standard
alphanumeric command. The character height selected was 1.0 inches; the
character width parameter does not affect bar codes. A 0.0 inch plus 0 dot
vertical justification value was selected for data placement. ^KF selected dark
plot mode. ^B introduced the bar code command. Y selected printing the
optional readable data field in the normal 10 cpi font. Letter q selected UCC/
EAN-128. The bar code data is 0034567890123456789, which is application
identifier 00 plus seventeen digits for the SSCC-18 type. ^G terminated the
bar code command sequence, ^KF terminated dark plot mode, and ^PN^-
terminated the graphics mode.
The command below generates a vertical UCC/EAN-128 bar code giving a
purchase order number using Level I syntax. Bar codes produced with Level I
syntax (^C) are rotated clockwise.
^PY^-^M10,10,000^CY9q22446688400PO10551^G^-^KF^-^PN^-