Programmer's Guide User guide

1 | Programmer’s Guide
Thermal Printer Programmer’s Guide 42
To cut at the end of a job, the CUTBYCOUNT should be set to 0. A PJL EOJ command
must be used at end of the print job to trigger the cut.
Note: Note the PERLABEL value for CUTTER has been maintained for backwards
compatibility. This is really the same as CUTTER equals ON and CUTBYCOUNT equals
1.
11
Max PAPERWIDTH varies by model. For p1120n and1125 = 3074 decipoints; p1115,
p1115s, and w1110 = 2995 decipoints; p1725 = 4917 decipoints.
PJL Internal Variables
The following PCL commands provide access to internal variables:
Table 15: PJL Internal Variables
As mentioned above, the escape sequence <ESC> $b#W is used to process data within
the data stream. This escape sequence requires a byte count ‘#’ which represents the
number of bytes to encode following the character “W”. The second form of the Print
Barcode Data escape sequence is the <ESC>$b#Y command. This command takes an
ID number of the internal print data as the argument ‘#’ and that represents an increment
ID number or a Date/Time ID number.
Defining Internal Variables
Many thermal printers have the ability to generate an internal counting field (increment
field) and a time-date stamp. HP PCL has no internal means of producing or maintaining
these types of fields. In order to provide these features to users familiar with this
capability, Datamax-O'Neil has extended PCL and PJL to accommodate the definition
and utilization of these internal variable fields in a two-step process. The first step is to
allocate a variable field through PJL. Then the field is accessed and utilized within the
PCL body of the label.
PJL Increment Command
The increment field provides counting fields within the label. There can be any number of
references to unique counting fields within the label and each can be referenced any
number of times either as text or barcodes. The following PJL command defines the
format of the INCREMENT field definition:
<ESC>%-12345X @PJL INCREMENT ID=<integer> [START=[±]<integer>] [STEP=[±]<integer>]
[FILL=<value>] [PREFIX=”<string>”] [SUFFIX=”<string>”] [LENGTH=<integer>]”>] <LF>
Command Name D-O CMD Purpose
DATE/TIME OF PRINT,
INCREMENT FIELD
<ESC>$i<#>I To embed an internal variable in the
specified format into the data stream.
BARCODE VARIABLE DATA <ESC>$b<#>Y See <> below for values of <var type>.