BarDIMM Barcode Printing Examples

Example of BarDIMM barcodes calls

BarDIMM adds it own language to the printer PCL5 language. That language has been invented by Jetmobile and is copyrighted. The following examples show how a complex barcode can easily be printed from a Unix or ERP system.

In the following examples, <Esc> represents the non-printable ASCII character 27 (1B hex). On a PC under DOS (not under Unix or Windows), you can get this character by pressing 'Alt' and typing 27 on the numeric keypad.

You can also make use of the Freescape feature by replacing <Esc> with the AEC (Alternate Escape Code) which is by default '~'.

A typeface in the BarDIMM range (24580-24900) is activated with a classical combined PCL font call sequence:

<Esc>(s#p#h#v#b#s#T where # are numeric values (referred to as parameters).

Try one the following examples with your printer equipped with BarDIMM, and verify the printed result.

Note that all barcode sequences must be terminated by a standard text font sequence to turn off barcode generation. For example, the following sequence sets the font to Courier 12 point: <Esc>(10U<Esc>(s0p12h4099T

Click on the following links to display some barcode samples with escape sequences: 

UPC-A       EAN-8       EAN-13       Code 39       Code 25 interleaved
CODABAR/MONARCH       Code 128 AUTO A/B/C       PDF417*
UPS Maxicode*       DataMatrix*
*: barcodes only available in BarDIMM 3.X

UPC-A

The following sequence uses the UPC-A symbology. The caption text is printed with OCR-B font and half embedded. BarDIMM automatically calculates the checksum (in this example: 5) and places it automatically on the right side of the main barcode. If the checksum is already part of the data, BarDIMM detects it and acts accordingly.

PCL sequence: <Esc>(s3p5hvsb24601T0123456789012<Esc>(10U<Esc>(s0p12h4099T


EAN-8

The following sequence uses the EAN-8 symbology. The caption text is printed with Courier font and fully embedded. BarDIMM calculates automatically the checksum (in this example: 0) and places it automatically on the right side of the main barcode. If the checksum is already part of the data, BarDIMM detects it and acts accordingly.

PCL sequence: <Esc>(s2p0hvbs24621T123456712<Esc>(10U<Esc>(s0p12h4099T


EAN-13

The following sequence uses the EAN-13 symbology. The caption text is printed with OCR-B font and half embedded. BarDIMM calculates automatically the checksum (in this example: 2) and places it automatically on the right side of the main barcode. If the checksum is already part of the data, BarDIMM detects it and acts accordingly.

PCL sequence: <Esc>(s3p5hvbs24632T012345670112345<Esc>(10U<Esc>(s0p12h4099T


Code 39

The following sequence uses the code 39 symbology. The caption text is printed centered, using the Univers bold font, and no checksum is to be calculated/appended.

PCL sequence: <Esc>(s4p2h48vbs24670T012ABC8901<Esc>(10U<Esc>(s0p12h4099T


Code 25 interleaved

The following sequence uses the code 25 interleaved symbology.

 

The caption text is printed with Courier font and half embedded.

BarDIMM verifies that an even number of digits is supplied, and performs the interleaving algorithm.

PCL sequence: <Esc>(s3p0h48vbs24641T0123456789012<Esc>(10U<Esc>(s0p12h4099T


Codabar / Monarch

The following sequence uses the Codabar/Monarch symbology.

No caption text is printed.

PCL sequence: <Esc>(s0p0hvbs24750TA0123456B<Esc>(10U<Esc>(s0p12h4099T


Code 128 Auto A/B/C

The following sequence uses the Code 128 Autoswitch symbology. The caption text is printed with the CG-Times font and half embedded.

PCL sequence: <Esc>(s3p4h60v8,16,24,32b8,16,24,32s24700TTest Auto 128<Esc>(10U<Esc>(s0p12h4099T


PDF417

The following sequence uses the 2D barcode PDF417 symbology. No caption text is printed for 2D barcodes (too much data, and data is not linear).

PCL sequence: <Esc>(s24850TJetmobile - 89 rue du Gouv General Ebou� 92130 Issy-les-Mx - France<Esc>(10U<Esc>(s0p12h4099T


DataMatrix

The following sequence uses the 2D barcode DataMatrix symbology. No caption text is printed for 2D barcodes (too much data, and data is not linear).

PCL sequence: <Esc>(s24820TJetmobile - 89 rue du Gouv General Ebou� 92130 Issy-les-Mx - France<Esc>(10U<Esc>(s0p12h4099T


UPS Maxicode

The following sequence uses the 2D barcode UPS Maxicode symbology. No caption text is printed for 2D barcodes (too much data, and data is not linear).

PCL sequence: <Esc>(s24800T1,1,2,152382802,840,001,[)><RS>01<GS>96995011234<GS>840<GS> 025<GS>1Z07000168<GS>UPSN<GS>WX9031<GS>272<GS><GS>1/1<GS>15<GS> Y<GS>123<FS>300<GS><GS>AK<RS><EOT><Esc>(s0p10h12vbs4099T

The different fields are separated with the <Gs> (Group Separator, ASCII 29, HEX 1D).  The barcode data terminates with the <Eot> (End of transmission, ASCII 04, HEX 04). To separate format types, use <Rs> (Field separator, ASCII 30, HEX 1E).

To separate primary and secondary address numbers, use <Fs> (Address field separator, ASCII 28, HEX 1C).