Programmer's Guide User guide

1 | Programmer’s Guide
Thermal Printer Programmer’s Guide 22
The following sequence will print a QR Code (Auto) barcode with error correction
capacity of 2, height 10 units, anchor position bottom left and data “This is a test, this is
only a test.”
<ESC>$b2000c2e10j0o36WThis is a test, this is only a test.
The following sequence will print a UPS Maxicode with anchor point top left, mode 2 -
structured carrier U.S. numeric. The first 15 primary characters represent a 9-digit
postcode (“328081234”), 3-digit country code (“840”) and 3-digit service code (“016”)
followed by standard secondary data.
<ESC>$b2040c3o2e102W328081234840016[)><RS>01<GS>961Z93400914<GS>UPSN<
GS>654321<GS>123<GS>SHIPPERNUM30<GS>1/1<GS>1<GS>N<GS>12345 MAIN
STREET ANYTOWN<GS>FL<RS><EOT>
Note : For UPS Maxicode modes 2 and 3 the primary data must be 15 characters long formatted as:
PJL (Printer Job Language) Commands
Standard PJL Commands
The following are standard PJL commands supported by Datamax-O'Neil thermal
printers with modifications listed below. Please refer to the HP PCL/PJL Technical
Reference Manual for more information on these commands.
Characters Meaning
1-9 Postcode data which can consist of up to 9 digits (for mode 2) or
up to 6 alphanumeric characters (for mode 3). Remaining unused
characters should be filled with the SPACE character (ASCII 32).
10-12 Three digit country code according to ISO 3166.
13-15 Three digit service code. This depends on your parcel courier.