beautypg.com

Barcode printing – Dascom T5040 Programmers Application Manual User Manual

Page 12

background image

12

Barcode printing

Data Structure ASCII

ESC [ ; ; ; * r STX (data) ETX

hex.

1B 5B 3B 3B 3B 2A 72 02 (data) 03

dec.

27 91 59 59 59 42 114 2 (data) 3

Function

Prints barcode according to the characteristics defined by the following parameters.

The “;” separates the parameters. The final code ("*" "r") closes the parameter part.
The barcode data is enclosed with STX (start of text) and ETX (end of text).

Barcode type

= 5

CODE39

lower case bar code data ‘a’ ‘z’ is automatic set to upper case ‘A’ ‘Z’

= 7

2/5 INTERLEAVED

a odd number of bar code data is automatic filled with a leading zero

Bar code height
= 00

DEFAULT (at least 5mm or 15% of Barcode Length [**])

= 01–10 Height as number h of passes

Barcode zoom coefficient

= 01

09 Ignore value

= 10–34 Acceptable value

(10 = basic width; 15 = 1.5 * basic width, 20 = double

width, etc.)

Human readable line

= 0

Disabled

= 1

Enabled