Download Technical Manual - Rice Lake Weighing Systems

Transcript
Programming
5.3.3
Barcode Commands
TTP 2000 can print EAN 8, EAN 13,
UPC, 2-of-5 Interleaved, ISBN, Code39,
Code128, and EAN128 barcodes.
Example:
<ESC>BS<00h><00h><78h><00h>
<00h><0Ch><00h><50h><00h><02h>
<00h>
<ESC>BW<00h>733104000099<00h>
<RS>
The above will print an EAN barcode with
height = 10 mm, 15 mm in from the right
margin.
CODE 128 / EAN128
The following codes select function codes
in Code 128:
Name
FNC1
FNC2
FNC3
FNC4
Dec Hex
193 C1h
194 C2h
195 C3h
196 C4h
Figure 25.
Samples of barcodes
.
Starting the data string starts with FNC1 generates an EAN128 code.
ESC B S n1...n11
1B 42 53 n1...n11
27 66 83 n1...n11
hex
decimal
Barcode field Specify
Bar codes can only be printed in portrait mode unless Fixed Document Mode is selected
with parameter n36.
The command reserves an information field as a bar code field. The command also
identifies the type, number of digits, and the configuration of bars to be placed in the bar
code field.
n1
Specifies the bar code field No. (0—15). Bar code fields may be specified in any
order.
n2n3
Sets the X coordinate of the bar code field origin (n2 is the higher-order and n3
the lower-order byte).
n2 and n3 must be 1-byte hexadecimal or decimal numbers. The values must not
place the bar code outside the total pixel count that can be handled by the printer.
34
n4n5
Must be specified but the values are discarded by the printer.
n6
Specifies the number of bar code digits, but is ignored by the printer.
n7n8
Specifies the height of the bars.
n9
Specifies the type of bar code. The following types are supported.
n9 = 0
EAN 8 or 13 (auto detect). The printer calculates the necessary check digit.
TTP 2000 Kiosk Printer–Technical Manual
0602