Oki ML591 MICROLINE Reference Manual - Page 119

Uni-directional Printing Commands IBM/E/ML, Table 59: ML ESC % F and ESC % E Commands

Page 119 highlights

2 x 60 = 120 120/256 = 0 (Hn), with a remainder of 120 (Ln) to move the print position over 5": 5 x 60 = 300 300/256 = 1 (Hn), with a remainder of 44 (Ln) Move to the Right & Left Commands (ML) ߜ ML320 Std., ML321 Std. ߜ ML320 Turbo, ML321 Turbo ߜ ML520, ML521 Function Move to Left Move to Right ASCII ESC % F n1 n2 n3 n4 ESC % E n1 n2 n3 n4 Dec 27 37 70 F n1 n2 n3 n4 27 37 69 n1 n2 n3 n4 Hex 1B 25 46 F n1 n2 n3 n4 1B 25 45 n1 n2 n3 n4 These commands move the print position to the right or to the left of the current position in the amount you specify. Underline characters don't print in the space between the two positions. Parameters n1 n2 n3 n4 These parameters represent a four-digit ASCII number for the value of the amount of movement to take place. If the value you wish to assign is less than four digits, use zeros for the first digit(s). The actual amount of movement depends on the pitch engaged: Table 59: ML ESC % F and ESC % E Commands - Movement Increments for Pitch Settings Pitch 10 cpi 12 cpi 15 cpi 17.1 cpi 20 cpi Proportional Movement Increments 1/120" 1/144" 1/180" 1/206" 1/240" Same as the corresponding value for each cpi For example, suppose you have your pitch set at 20 cpi and want your printer to move 1" to the right. From the table above, at 20 cpi your shift will be in increments of 1/240", so the value of n1n2n3n4 would be 0240 (1" / 1/240"). Send the BASIC statement LPRINT CHR$(27);CHR$(37);CHR$(69);"0240" Note: If you send a location value outside the set left or right margin, this command will be ignored. Uni-directional Printing Commands (IBM/E/ML) ߜ ML320 E/I, ML321 E/I ߜ ML320 Std., ML321 Std. ߜ ML320 Turbo, ML321 Turbo ߜ ML390 Turbo, ML391 Turbo ߜ ML520, ML521 ߜ ML590, ML591 Function Uni-directional Printing On IBM ASCII: ESC U 1 Dec: 27 85 1 Hex: 1B 55 01 Epson ASCII: ESC U 1 Dec: 27 85 1 Hex: 1B 55 01 ML* ASCII: ESC Dec: 27 45 Hex: 1B 2D Chapter 8: Horizontal Control Commands 81

  • 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 8: Horizontal Control Commands
81
2 x 60 = 120
120/256 = 0 (H
n
), with a remainder of 120 (L
n
)
to move the print position over 5":
5 x 60 = 300
300/256 = 1 (H
n
), with a remainder of 44 (L
n
)
Move to the Right & Left Commands (ML)
±
ML320 Std., ML321 Std.
±
ML320 Turbo, ML321 Turbo
±
ML520, ML521
Function
ASCII
Dec
Hex
Move to Left
ESC % F n
1
n
2
n
3
n
4
27 37 70 F n
1
n
2
n
3
n
4
1B 25 46 F n
1
n
2
n
3
n
4
Move to Right
ESC % E n
1
n
2
n
3
n
4
27 37 69 n
1
n
2
n
3
n
4
1B 25 45 n
1
n
2
n
3
n
4
These commands move the print position to the right or to the left of the current position in the
amount you specify. Underline characters don’t print in the space between the two positions.
Parameters n
1
n
2
n
3
n
4
These parameters represent a four-digit ASCII number for the value of the amount of movement
to take place. If the value you wish to assign is less than four digits, use zeros for the first
digit(s). The actual amount of movement depends on the pitch engaged:
Table 59: ML ESC % F and ESC % E Commands —
Movement Increments for Pitch Settings
Pitch
Movement Increments
10 cpi
1/120"
12 cpi
1/144"
15 cpi
1/180"
17.1 cpi
1/206"
20 cpi
1/240"
Proportional
Same as the corresponding value for each cpi
For example, suppose you have your pitch set at 20 cpi and want your printer to move 1" to the
right. From the table above, at 20 cpi your shift will be in increments of 1/240", so the value of
n
1
n
2
n
3
n
4
would be 0240 (1" / 1/240"). Send the BASIC statement
LPRINT CHR$(27);CHR$(37);CHR$(69);"0240"
Note
:
If you send a location value outside the set left or right margin, this command will be
ignored.
Uni-directional Printing Commands (IBM/E/ML)
±
ML320 E/I, ML321 E/I
±
ML320 Turbo, ML321 Turbo
±
ML520, ML521
±
ML320 Std., ML321 Std.
±
ML390 Turbo, ML391 Turbo
±
ML590, ML591
Function
IBM
Epson
ML*
Uni-directional Printing On
ASCII: ESC U 1
Dec: 27 85 1
Hex: 1B 55 01
ASCII: ESC U 1
Dec: 27 85 1
Hex: 1B 55 01
ASCII: ESC -
Dec: 27 45
Hex: 1B 2D