
Appendix A Programming Guide
A-35
A-5.3
Bar Code Programming Examples
S
Example for Code 39
type
= Code 39:
ESC * z 0 V
Height
= 0.6 inch
ESC * z 180 H
text
= OCR-B above
ESC * z 1 Q
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:
Appendix A Programming Guide
A-36
S
Example for 2 of 5 interleaved
type
= 2 of 5 interleave:
ESC * z 4 V
position
= X=500; Y=500
ESC * p 5 0 0 x 5 0 0 Y
orientation
= 90°
ESC & a 9 0 P
text
= actual font below
ESC * z 4 Q
data
= 1 2 3 4
ESC * z < 1 2 3 4 > Z
The HEXDUMP datastream for this example is:
1B
2A
7A
34
56
1B
2A
70
35
30
30
78
35
30
30
59
1B
26
61
39
30
50
1B
2A
7A
34
51
1B
2A
7A
3C
31
32
33
34
3E
5A
Print sample:
S
Example for EAN 8 SC2
type
=EAN 8 SC2:
ESC * z 1 0 2 V
orientation
= 270°
ESC & a 2 7 0 P
text
= OCR-B below
ESC * z 2 Q
data
= 4 0 1 2 3 4 5 5
ESC * z 8 Z 4 0 1 2 3 4 5 5
The HEXDUMP datastream for this example is:
1B
2A
7A
31
30
32
56
1B
26
61
32
37
30
50
1B
2A
7A
32
51
1B
2A
7A
38
5A
34
30
31
32
33
34
35
35
Print sample: