Oki ML591 MICROLINE Reference Manual - Page 86

IBM Custom Character Commands for 24-Pin Printers, Characters Command IBM

Page 86 highlights

Your arrangement of dots is translated into code that tells the printer the exact locations of each dot in each column. The example below shows how this works. 128 64 32 Byte 1 16 8 4 2 1 128 64 32 Byte 2 16 8 4 2 1 128 64 32 Byte 3 16 8 4 2 1 • • • • • • • • • • • • The width of the grid in dots depends on the printing mode in use. This example character is 27 dots wide and has 4 blank columns on either side. We'll print it in 10 cpi Letter Quality. Since the character is being printed in 24-pin mode, three bytes of data are required to specify a single column. Just like high resolution 24-pin graphics, the first three bytes specify dot positions for the second column, and so on up to the last column in which dots will appear. The value of each byte is determined by adding up the values of its bits. Note: In all print modes, you can NOT place two dots next ot each other horizontally-you must skip one column. The commands below are used to download this data to the printer. IBM Custom Character Commands for 24-Pin Printers Down Line Load Characters Command (IBM) ߜ ML590, ML591 Function Download Custom Character ASCII ESC = n1 n2 # a1 a2 a3 m ad1 ad2 id1 id2 d1 d2 d3 d4 d5 [data] Dec 27 61 n1 n2 35 a1 a2 a3 m ad1 ad2 id1 id2 d1 d2 d3 d4 d5 [data] Hex 1B 3D n1 n2 23 a1 a2 a3 m ad1 ad2 id1 id2 d1 d2 d3 d4 d5 [data] Parameters n1 n2 These parameters specify the number of bytes in the command string. The total number of bytes is calculated as follows: No. of bytes = n1 + (n2 x 256) Parameters a1 a2 a3 Parameters a1 and a2 specify the starting address of the custom character data, calculated as Chapter 5: Custom Character Commands 47

  • 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 5: Custom Character Commands
47
Your arrangement of dots is translated into code that tells the printer the exact locations of each
dot in each column. The example below shows how this works.
••
••••••••
••••••••
••
The width of the grid in dots depends on the printing mode in use. This example character is 27
dots wide and has 4 blank columns on either side. We'll print it in 10 cpi Letter Quality. Since
the character is being printed in 24-pin mode, three bytes of data are required to specify a
single column. Just like high resolution 24-pin graphics, the first three bytes specify dot
positions for the second column, and so on up to the last column in which dots will appear.
The value of each byte is determined by adding up the values of its bits.
Note:
In all print modes, you can NOT place two dots next ot each other horizontally—you
must skip one column.
The commands below are used to download this data to the printer.
IBM Custom Character Commands for 24-Pin Printers
Down Line Load
Characters Command (IBM)
±
ML590, ML591
Function
ASCII
Dec
Hex
Download Custom
Character
ESC = n
1
n
2
# a
1
a
2
a
3
m ad
1
ad
2
id
1
id
2
d
1
d
2
d
3
d
4
d
5
[data]
27 61 n
1
n
2
35 a
1
a
2
a
3
m ad
1
ad
2
id
1
id
2
d
1
d
2
d
3
d
4
d
5
[data]
1B 3D n
1
n
2
23 a
1
a
2
a
3
m ad
1
ad
2
id
1
id
2
d
1
d
2
d
3
d
4
d
5
[data]
Parameters n
1
n
2
These parameters specify the number of bytes in the command string. The total number of bytes
is calculated as follows:
No. of bytes = n
1
+ (n
2
x 256)
Parameters a
1
a
2
a
3
Parameters a
1
and a
2
specify the starting address of the custom character data, calculated as
128
64
32
16
8
4
2
1
128
64
32
16
8
4
2
1
128
64
32
16
8
4
2
1
Byte 2
Byte 1
Byte 3