Programming
Barcode Commands
42
P1003636-002 TTP 7030™ Technical Manual 10/05/2009
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.
ESC B S n1...n11
Barcode Field Specify
1B 42 53 n1...n11 hex
27 66 83 n1...n11 decimal
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.
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.
n9 = 1 UPC
b9 = 2 2/5 Interleaved (even number of characters must be sent)
n9 = 3 ISBN
n9 = 4 Code128 (Start data string with C2h (FNC1) to encode EAN128)
n9 = 6 Code39
n10 Specifies the thickness of the narrow bar 0=1 pixel, 1=2 pixel, and so on.
n11 Specifies the wide-bar-to-narrow-bar ratio. Only used in Code 39 and 2-
of-5 interleaved where different ratios are allowed