Oki ML591 MICROLINE Reference Manual - Page 95

Reassign Graphics Codes Command Epson, Select Graphics Command Epson, Select Graphics Mode Command ML

Page 95 highlights

Reassign Graphics Codes Command (Epson) ߜ ML320 E/I, ML321 E/I ߜ ML320 Turbo, ML321 Turbo ߜ ML520, ML521 Function Reassign Graphics ASCII Dec Hex ESC ? m n 27 63 m n 1B 3F m n You can use this command to reassign any of the 8-pin graphics modes to one of the graphics commands (ESC K, ESC L, ESC Y, or ESC Z). Parameter m This parameter designates which of the four commands you're redefining. Substitute one of the four letters (K, L, Y, or Z) for m in the command. Parameter n This parameter designates the density of the mode you are reassigning to the redefined code. Substitute the appropriate value (0 through 7) for the density you wish to select, as taken from the 8-Pin Graphics Density Codes table earlier in this chapter. When you are ready to print a graphics pattern, send the redefined command, followed by the graphics data. For example, the following BASIC statement reassigns quadruple density to the command ESC L: LPRINT CHR$(27);"?";"L";CHR$(3) Select Graphics Command (Epson) ߜ ML320 E/I, ML321 E/I ߜ ML320 Turbo, ML321 Turbo ߜ ML520, ML521 Function Select 9-pin Graphics Printing ASCII Dec ESC ^ m Ln Hn 27 94 m Ln Hn [data] [data] Hex 1B 5E m Ln Hn [data] This command permits use of all nine pins on the printhead. It operates exactly like the ESC * command, except that dot columns are given two bytes each instead of one. The first byte for each column represents the top eight pins, just like the ESC * command. The second byte is 128 if the bottom (9th) pin is to be fired, and zero if it's not to be fired. Select Graphics Mode Command (ML) ߜ ML320 Std., ML321 Std. ߜ ML320 Turbo, ML321 Turbo ߜ ML520, ML521 Function Select Graphics Mode ASCII Dec ESC * n1 n2 : 27 42 n1 n2 58 Hex 1B 2A n1 n2 3A Use this command to select the density and to define the speed and "word size." Parameter n1 This parameter specifies the density. To calculate the value of n1, first select the dpi and density you want, then determine the n1 values for each from the table below. Add them together, then add 96 to the total. Chapter 6: Graphics Commands for 9-Pin Printers 57

  • 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 6: Graphics Commands for 9-Pin Printers
57
Reassign Graphics Codes Command (Epson)
±
ML320 E/I, ML321 E/I
±
ML320 Turbo, ML321 Turbo
±
ML520, ML521
Function
ASCII
Dec
Hex
Reassign Graphics
ESC ? m n
27 63 m n
1B 3F m n
You can use this command to reassign any of the 8-pin graphics modes to one of the graphics
commands (ESC K, ESC L, ESC Y, or ESC Z).
Parameter m
This parameter designates which of the four commands you're redefining. Substitute one of the
four letters (K, L, Y, or Z) for m in the command.
Parameter n
This parameter designates the density of the mode you are reassigning to the redefined code.
Substitute the appropriate value (0 through 7) for the density you wish to select, as taken from
the 8-Pin Graphics Density Codes table earlier in this chapter.
When you are ready to print a graphics pattern, send the redefined command, followed by the
graphics data.
For example, the following BASIC statement reassigns quadruple density to the command ESC
L:
LPRINT CHR$(27);”?”;”L”;CHR$(3)
Select Graphics Command (Epson)
±
ML320 E/I, ML321 E/I
±
ML320 Turbo, ML321 Turbo
±
ML520, ML521
Function
ASCII
Dec
Hex
Select 9-pin Graphics
Printing
ESC ^ m Ln Hn
[data]
27 94 m Ln Hn
[data]
1B 5E m Ln Hn
[data]
This command permits use of all nine pins on the printhead. It operates exactly like the ESC *
command, except that dot columns are given two bytes each instead of one. The first byte for
each column represents the top eight pins, just like the ESC * command. The second byte is
128 if the bottom (9th) pin is to be fired, and zero if it's not to be fired.
Select Graphics Mode Command (ML)
±
ML320 Std., ML321 Std.
±
ML320 Turbo, ML321 Turbo
±
ML520, ML521
Function
ASCII
Dec
Hex
Select Graphics Mode
ESC * n
1
n
2
:
27 42 n
1
n
2
58
1B 2A n
1
n
2
3A
Use this command to select the density and to define the speed and “word size.”
Parameter n
1
This parameter specifies the density. To calculate the value of n
1
, first select the dpi and density
you want, then determine the n
1
values for each from the table below. Add them together, then
add 96 to the total.