Reinitialize printer (dc4 dc4 esc @), Set vertical spacing n/144 inch (dc4 dc4 esc 1 nn) – Compuprint 4247-Z03 Programmer Manual User Manual

Page 54

Advertising
background image

Print Bar Code Selection (DC4 DC4 ESC ( GS {N1} {DATA1} GS {N2}
{DATA2} EM)

14

14

1B

28

1D

DD...DD

1D

DD...DD

19

This sequence causes the bar code symbol to be printed according to the Bar Code Selection command.
Sequential bar codes of the same type and height may be printed. GS N# defines the distance from the
beginning of the line or between two bar code symbols in multiples of 1/72 of an inch. This command must
be closed with an EM character.

Note: Bar code symbols will print over any descenders in the previous character box if any text is present.

Example 1:

Print an EAN-8 bar code symbol, one inch from the right margin with the data set of 12345678.

ASCII: DC4 DC4 ESC ( GS 72 12345678 EM
HEX:

14 14 1B 28 1D 48 31 32 33 34 35 36 37 38 19

Example 2:

Print two Code 3 of 9 bar code symbols. The first symbol on the right margin; the second symbol one inch
to the right of the first symbol. Data sets are ABC+0123 and 12345678

ASCII: DC4 DC4 ESC ( GS 0 *ABC+123* GS 72 *1234* EM
HEX:

14 14 1B 28 1D 00 2A 41 42 43 2B 31 32 33 2A
1D 48 2A 31 32 33 34 2A 19

Reinitialize Printer (DC4 DC4 ESC @)

14

14

1B

40

This command reinitializes the printer. It resets the printer mode and clears the buffer of printable data.

Set Vertical Spacing n/144 Inch (DC4 DC4 ESC 1 NN)

14

14

1B

31

NN

This control sets a line spacing value for subsequent line feeds.

NN is a one-byte hexadecimal number that specifies the line spacing value of NN/144 inches. The value of
NN is 1 to 255.

Set Vertical Spacing 12 Lines/30mm (DC4 DC4 ESC 3 1)

14

14

1B

33

31

This command sets line spacing to 12 lines per 30 mm.

Set Vertical Spacing 3 Lines/30mm (DC4 DC4 ESC 3 3)

14

14

1B

33

33

34

Programmer Manual

Advertising
This manual is related to the following products: