Programmer's Manual Owner manual

DTPL Programmer’s Manual 3
DTPL Command Sequences
2.0 Introduction
The printer can accept a wide variety of commands to control the printing of data. A command sequence performs
a unique function and many different sequences can be sent for each string to be printed.
A command is distinguished from text by the < > characters. Any data sent between these markers is interpreted
as command data. The field data (to be printed on the ticket) is sent with no markers. Every command sequence
must be bracketed with the < > characters, (ex. <HW2,2><RC10,30>).
Command Format Description
ASCII Graphics Command <g#>ASCII high byte1,ASCII low
byte1 ... byte#
Sets the printer to use ASCII characters instead of straight decimal
representations of the data.
Bar Code Expanded
Command
<X2> Expands the width of a bar code by ‘X’ dots.
9 is the largest expansion allowed.
Bar Code Interpretation
Command
<BI> Allows the bar code interpretation (human readable code) to be
printed underneath the bar code. The command is only active for the
bar code immediately after it.
Bar Code Ratio Adjust
Command
<AXB#>string Expands interleaved 2of5 and 3of9 barcodes from 2:1 to 3:1 ratio.
Bar Code Select
Command
<AB#>string or <aB#>string Selects the bar code type and size:
A= U for UPC and EAN8
A= E for EAN-13
A= N (for three of nine)
A= F (for interleaved two of five)
A= C (for USS-CODABAR)
A= O (for CODE 128)
B= P (for picket-fence)
B= L (for ladder )
# = unit size of bar code
Boxsize Command <BSx,y> Sets the size of frame which printed characters should be printed.
x=Width and y=Height
Clear Buffer Command <CB> This command will clear the printer’s buffer.
Delete Permanent Length
Command
<dpl> This command re-enables the automatic ticket measuring function of
the printer after power up. This command clears the current printing
length and ticket length and recalibrates new values.