Datamax-O'Neil Workstation series Programmer’s Guide User Manual

Page 19

Advertising
background image

Programmer’s Guide | 1

13

Thermal Printer Programmer’s Guide

Comparing the two tables above there is a noticeable difference in the amount of data
saved by compressing the commands. In general, three bytes for each combined
command will be saved. This becomes significant with larger, more complex labels,
especially if the labels will be stored in the printer as macros.

Enable/Disable Barcode Autoprint

The following command will enable or disable human readable autoprint of the barcode
data:

<ESC>$b#A 0x1b 0x24 0x62 <0|1|2> 0x41

The command will affect only those barcodes with a human readable component. The
following arguments are valid:

0 – Disable human readable text
1 – Enable human readable text
2 – Enable human readable with checksum information

Note:

The autoprint field is considered part of the barcode object. It is implied that when

the height of the barcode is specified, the height of the autoprint is included in that
barcode height. For example, if a Code 3 of 9 barcode is selected with autoprint in the
normal orientation and has a height of 1 inch, the height is measured from the top of the
barcode to the baseline of the autoprint text.

<ESC>&a270P

Set the writing direction to 270 degrees counter
clockwise from horizontal

<ESC>$b1030C

Select barcode number 1030 (Code 128 /w Auto
select)

<ESC>$b360H

Set the barcode height to 360 decipoints (½ inch)

<ESC>$b2A

Enable barcode autoprint with checksum

<ESC>$b10W9876543210

With the current barcode (1030) print the 10 bytes
of data: 9876543210

<ESC>&0P

Set the writing direction at 0 degrees.

<ESC>&a720H

Set the horizontal cursor position to 720 decipoints

<ESC>&a540V

Set the vertical cursor position to 1440 decipoints

<ESC>$b1061C

Select barcode number 1061 (Interleave 2 of 5)

<ESC>$b360H

Set the barcode height to 180 decipoints (¼ inch)

<ESC>$b0A

Disable barcode autoprint for this barcode

<ESC>$b10W0123456789

With the current barcode type (1061) print data
0123456789

<ESC>E

Reset PCL (print the imaged data)

<ESC>%-12345X

Reset the printer and wait for more PJL commands

Commands

Descriptions

Advertising
This manual is related to the following products: