Oki MICROLINE 390 TURBO Printer Handbook - Page 112

Bar Code Commands

Page 112 highlights

IBM Function Commands (ASCII, Decimal, Hexadecimal) Notes Select IBM Character Set I ASCII: ESC 7 Dec: 27 55 Hex: 1B 37 Select IBM Character Set II ASCII: ESC 6 Dec: 27 54 Hex: 1B 36 Bar Code Commands Select Bar Code Type and ASCII: ESC DLE A m n1 ··· n8 Size Dec: 27 16 65 m n1 ··· n8 Hex: 1B 10 41 m n1 ··· n8 Print Industrial Bar Code ASCII: ESC DLE B n m [data] Data Dec: 27 16 66 n m [data] Hex: 1B 10 42 n m [data] Selects IBM Character Set I Selects IBM Character Set II OKI unique command m=number of parameters specified (m=0, 1 or 3: command ignored) n1, n2: selects bar code style n1, n2=0, 1: EAN8 n1, n2=0, 2: EAN13 n1, n2=1, 0: UPC-A n1, n2=1, 4: UPC-E n1, n2=2, 0: CODE39 n1, n2=3, 0: Interleaved 2 of 5 n1, n2=4, 0: Code 128 n3, n4: sets vertical length of bars, in units of 15/180-inch, calculated as ([n3 x 10] + n4) x 15/180" n5: sets black bars; n5=1 to 7 n6: sets spacing; n6=1 to 7 n7: sets ratio of wide element to narrow element; n7=1 to 7 n8: specifies whether or not characters are to be attached n8=0: characters not attached n8=1 or more: LQ characters attached OKI unique command n: specifies amount of data to follow m: selects CODE128 mode (CODE128 must be selected for this command to be recognized) m=65: Set A m=66: Set B m=67: Set C ML390/391 Turbo Printer Handbook 105

  • 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

ML390/391 Turbo Printer Handbook
105
Select IBM Character
Set I
Select IBM Character
Set II
Bar Code Commands
Select Bar Code Type and
Size
Print Industrial Bar Code
Data
ASCII: ESC 7
Dec: 27 55
Hex: 1B 37
ASCII: ESC 6
Dec: 27 54
Hex: 1B 36
ASCII: ESC DLE A m n
1
···
n
8
Dec: 27 16 65 m n
1
···
n
8
Hex: 1B 10 41 m n
1
···
n
8
ASCII: ESC DLE B n m [data]
Dec: 27 16 66 n m [data]
Hex: 1B 10 42 n m [data]
IBM
Function
Commands
(ASCII, Decimal, Hexadecimal)
Selects IBM Character Set I
Selects IBM Character Set II
OKI unique command
m=number of parameters specified
(m=0, 1 or 3: command ignored)
n
1
, n
2
: selects bar code style
n
1
, n
2
=0, 1: EAN8
n
1
, n
2
=0, 2: EAN13
n
1
, n
2
=1, 0: UPC-A
n
1
, n
2
=1, 4: UPC-E
n
1
, n
2
=2, 0: CODE39
n
1
, n
2
=3, 0: Interleaved 2 of 5
n
1
, n
2
=4, 0: Code 128
n
3
, n
4
: sets vertical length of bars, in
units of
15
/
180
-inch, calculated as ([n
3
x
10] + n
4
) x
15
/
180
"
n
5
: sets black bars; n
5
=1 to 7
n
6
: sets spacing; n
6
=1 to 7
n
7
: sets ratio of wide element to narrow
element; n
7
=1 to 7
n
8
: specifies whether or not characters
are to be attached
n
8
=0: characters not attached
n
8
=1 or more: LQ characters attached
OKI unique command
n: specifies amount of data to follow
m: selects CODE128 mode (CODE128
must be selected for this command to be
recognized)
m=65: Set A
m=66: Set B
m=67: Set C
Notes