Programmer's Guide User guide

1 | Programmer’s Guide
Thermal Printer Programmer’s Guide 14
Select Guard Boxes/Bars
The following will select guard boxes or bars on barcodes that support them:
<ESC>$b#B 0x1b 0x24 0x62 <value> 0x42
Select Barcode Type
The following will select the current barcode type:
<ESC>$b#C 0x1b 0x24 0x62 <value> 0x43
Note that all barcode commands below operate on the currently selected barcode. The
table below contains the list of barcodes and their numerical values.
Set Barcode Data Delimiter
The following will select the data delimiter for the currently selected barcode:
<ESC>$b#D 0x1b 0x24 0x62 <value> 0x44
The value parameter is the ASCII value of the character to be used as a delimiter. Refer
to the print barcode data below for a description of the “Print Barcode Data” command
and note how this command extends the capabilities of the “Print Barcode Data”
command. The following combined
1
command will select the Code 39 barcode, set the
Data Delimiter to the tilde character ‘~’ (ASCII 127) and print the barcode with the data
‘0123456789’.
<ESC>$b1000c126d0W0123456789~
In this example the value of the width command is set to zero. This will instruct the printer
to read data after the ‘W’ command until the data delimiter (~) is found. The delimiter is
discarded and not printed. The default value for the data delimiter is the carriage return
(ASCII 13). The delimiter value must be a value not found in the data set being encoded
in the barcode.
Select Error Correction Capacity
The following will set the ECC for 2D barcodes - Datamatrix, PDF417, QR and Aztec,
where:
<ESC>$b#E 0x1b 0x24 0x62 <value> 0x45
1. See Section on Combined Escape Sequences.