beautypg.com

Pjl (printer job language) commands, Standard pjl commands – Datamax-O'Neil Workstation series Programmer’s Guide User Manual

Page 28

background image

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.”

$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.

$b2040c3o2e102W328081234840016[)>01961Z93400914UPSN<
GS>654321123SHIPPERNUM301/11N12345 MAIN
STREET ANYTOWNFL

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.

This manual is related to the following products: