
53
Programming
Software Command Syntax
09/28/2009 TTP 2100 Technical Manual P1003640-002
Code 128 / EAN128
The following codes select function codes in Code 128:
Starting the data string with FNC1 generates an EAN128 code.
Writes data to the bar code field reserved by the ESC BS command.
Any invalid bar code character terminates the command, and print <Invalid bar code> on the
printout.
Clears the bar code field reserved by command ESC BS.
.
Name Dec Hex
FNC1 193 C1h
FNC2 194 C2h
FNC3 195 C3h
FNC4 196 C4h
Note • By default, the printer will print bar codes with human readable characters. To avoid
this behavior, load the font 1x1.swf to the PROM and select that font with ESC ! before
you specify the bar code. After the ESC BW command, you can return to the normal font.
This font is available in the Toolbox application.
ESC BW n1 nx
Bar Code Write
1B 42 57 n1 nx Hex
027 066 087 n1 nx Decimal
n1 Specifies the bar code field number. The valid range is 0 - 15. This number must
be the same number used to specify the field using the ESC BS command.
Fields can be specified in any order but other values than 0 to 15 are ignored.
n2 . . . nx Specifies bar code data bytes. Up to 80 bytes may be specified.
To create a bar code add-on, insert a space character and then the data for the
add-on. Two of five characters are allowed of the add-on.
NUL must be placed at the end of the bar code data.
Example • This example will print one bar code with height = 10 mm and located 15 mm to
the right
<ESC>BS<0><0><h 48><0><0>
<00><0><h 40><0><2><02>
<ESC>BW<00>733104000099<00>
<LF><RS>
ESC B C
Bar Code Clear
1B 42 43 n1 hex
27 66 67 n1 decimal
n Specifies which bar code field to clear. The range is 0 to 15. The fields may be
cleared in any order.
Comentarios a estos manuales