
Appendix A Programming Guide
Appendix A Programming Guide
A-31
A-32
S
Start and Stop characters
A-5.3
Barcode Programming Examples
For barcode types EAN, UPC, Code 93, Code 128 and Postnet the printer
automatically adds start and stop characters.
S
Example for Code 39
For barcode type Code 39, 2 of 5 industrial and 2 of 5 interleaved the printer
adds start and stop characters only if they are not generated by the system.
type
= Code 39:
ESC * z 0 V
For barcode type Codabar the application has to generate the start and stop
Height
= 0.6 inch
ESC * z 180 H
characters.
text
= OCR-B above
ESC * z 1 Q
Following start and stop characters are accepted by the printer:
Barcode Type
Start Character
Stop Character
Code 39
*
*
2 of 5 types
:
;
Codabar
a, b, c, d, A, B, C, D
t, n, *, e, A, B, C, D
Note:
Following combinations (start / stop) are specified for Codabar, but not
checked by the printer:
(a / t) (b / n) (c / *) (d / e) (A / A) (B / B) (C / C) (D / D)
S
Error checking characters
Error checking characters are added by the printer only for barcode types
Code 128, Code 93 and Postnet. For all other barcode types the application
has to generate error checking characters and transmit them to the printer.
S
Unprinted areas
To ensure proper readability of a barcode unprinted areas in front and behind
the barcode are required. The printer does not insert these areas itself; the
amount of space has to be calculated by the application.
data
= CODE 39
ESC * z < CODE 39 > Z
The HEXDUMP datastream for this example is:
1B
2A
7A
30
56
1B
2A
7A
31
38
30
48
1B
2A
7A
31
51
1B
2A
7A
3C
43
4F
44
45
33
39
3E
5A
Print sample:
S
Example for 2 of 5 industrial
type
= 2 of 5 industrial:
ESC * z 1 V
Height
= 0.6 inch
ESC * z 180 H
mod. width
= 10 PCL units
ESC * z 10 S
text
= OFF
ESC * z 0 Q
data
= 1 2 3
ESC * z < 1 2 3 > Z
The HEXDUMP datastream for this example is:
1B
2A
7A
31
56
1B
2A
7A
31
38
30
48
1B
2A
7A
31
30
53
1B
2A
7A
30
51
1B
2A
7A
3C
31
32
33
3E
5A
Print sample: