Oki ML591 MICROLINE Reference Manual - Page 151

Bar Code Commands for 24-Pin Printers, Bar Code Commands, Code 39 Bar Code Command s

Page 151 highlights

Chapter 11: Bar Code Commands for 24-Pin Printers 24-pin models ML390 Turbo, ML391 Turbo, ML590 and ML591 incorporate eight bar codes, in both the Epson LQ and IBM emulations: • Code 39 • Code 128 • Interleaved 2 of 5 • UPC* A • UPC* E • EAN** 8 • EAN** 13 • Postnet *UPC = Universal Product Code **EAN = European Article Numbering These commands are the same as those given in Chapter 10 for the 9-pin printers; however, the values for the various parameters are different for the 9-pin printers. Bar Code Commands ߜ ML390 Turbo, ML391 Turbo ߜ ML590, ML591 Function Select Bar Code Type and Size Print Bar Code Data Print Postnet Bar Code Data ASCII ESC DLE A m n1 ... n8 Dec 27 16 65 m n1 ... n8 Hex 1B 10 41 m n1 ... n8 ESC DLE B m n [data] 27 16 66 m n [data] ESC DLE C P1 [data] 27 16 67 P1 [data] 1B 10 42 m n [data] 1B 10 43 P1 [data] To print bar codes other than Postnet, you must enter two commands: • Select Bar Code Type & Size • Print Bar Code Data (provides data and initiates printing) To print Postnet bar codes, use the command ESC DLE C P1 [data] discussed at the end of this chapter. Code 39 Bar Code Command s Also known as 3 of 9 Code, Code 39 is used in non-retail applications. Each character has five bars and four spaces. Code patterns have been developed for 44 different alphabetic, numeric and graphic characters. The digits can be any ASCII character from SP to Z (32 to 102 Dec, 20 to 66 Hex). Select Code 39 Bar Code Command The command for selecting Code 39 is ESC DLE A m 2 0 n3 n4 n5 n6 n7 n8 Chapter 11: Bar Code Commands for 24-Pin Printers 113

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180

Chapter 11: Bar Code Commands for 24-Pin Printers
113
Chapter 11: Bar Code Commands for 24-Pin Printers
24-pin models ML390 Turbo, ML391 Turbo, ML590 and ML591 incorporate eight bar codes, in
both the Epson LQ and IBM emulations:
Code 39
UPC* E
Code 128
EAN** 8
Interleaved 2 of 5
EAN** 13
UPC* A
Postnet
*UPC = Universal Product
Code
**EAN = European Article Numbering
These commands are the same as those given in Chapter 10 for the 9-pin printers; however, the
values for the various parameters are different for the 9-pin printers.
Bar Code Commands
±
ML390 Turbo, ML391 Turbo
±
ML590, ML591
Function
ASCII
Dec
Hex
Select Bar Code
Type
and Size
ESC DLE A m
n
1
... n
8
27 16 65 m
n
1
... n
8
1B 10 41 m
n
1
... n
8
Print Bar Code Data
ESC DLE B m n
[data]
27 16 66 m n
[data]
1B 10 42 m n
[data]
Print Postnet Bar
Code Data
ESC DLE C P
1
[data]
27 16 67 P
1
[data]
1B 10 43 P
1
[data]
To print bar codes other than Postnet, you must enter two commands:
Select Bar Code Type & Size
Print Bar Code Data (provides data and initiates printing)
To print Postnet bar codes, use the command ESC DLE C P
1
[data] discussed at the end of this
chapter.
Code 39 Bar Code Command s
Also known as 3 of 9 Code, Code 39 is used in non-retail applications. Each character has five
bars and four spaces. Code patterns have been developed for 44 different alphabetic, numeric
and graphic characters. The digits can be any ASCII character from SP to Z (32 to 102 Dec, 20
to 66 Hex).
Select Code 39 Bar Code Command
The command for selecting Code 39 is
ESC DLE A m 2 0 n
3
n
4
n
5
n
6
n
7
n
8