Oki ML591 MICROLINE Reference Manual - Page 110

Table 48: ML ESC % C and ESC % R Commands, Maximum Margin Values, Left and Right Margin Commands ML

Page 110 highlights

Left and Right Margin Commands (ML) ߜ ML320 Std., ML321 Std. ߜ ML320 Turbo, ML321 Turbo ߜ ML520, ML521 Function Set Left Margin Set Right Margin ASCII ESC % C n1 n2 n3 ESC % R n1 n2 n3 n4 Dec 27 37 67 n1 n2 n3 27 37 82 n1 n2 n3 n4 Hex 1B 25 43 n1 n2 n3 1B 25 52 n1 n2 n3 n4 In the MICROLINE Standard emulation, margins for these commands are measured in units of 1/120" from the leftmost printing position. Left Margin Parameters n1 n2 n3 Parameters n1 n2 n3 represent a three-digit ASCII number for the value of the location for the left margin. If the value you wish to assign to the left margin is 99 or less, use zero for the first digit. Right Margin Parameters n1 n2 n3 n4 Parameters n1 n2 n3 n4 represent a four-digit ASCII number for the value of the location for the right margin. If the value you wish to assign is less than four digits, use zeros for the first digit(s). The right margin must be at least 60 units greater than the left margin. If no left margin has been set, the minimum value for the right margin is 60 units. You must set the right margin before sending any data for the line on which it is to take effect. The Maximum Margin Values table below lists the widest allowable margins. Table 48: ML ESC % C and ESC % R Commands - Maximum Margin Values Model ML320 Std., ML320 Turbo, ML520 ML321 Std., ML321 Turbo, ML521 Left Margin n Value 0899 0999 Right Margin n Value 0960 1632 For example, suppose you want to set one-inch margins on a standard 8-1/2" page. The left margin will be 120/120" from the leftmost position, so the command to set it is: LPRINT CHR$(27);"%C";"120" The right margin is 7-1/2", or 900/120" from the leftmost position, so the command to set it is: LPRINT CHR$(27);"%R";"0900" 72 Chapter 8: Horizontal Control Commands

  • 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
72
Left and Right Margin Commands (ML)
±
ML320 Std., ML321 Std.
±
ML320 Turbo, ML321 Turbo
±
ML520, ML521
Function
ASCII
Dec
Hex
Set Left Margin
ESC % C n
1
n
2
n
3
27 37 67 n
1
n
2
n
3
1B 25 43 n
1
n
2
n
3
Set Right Margin
ESC % R n
1
n
2
n
3
n
4
27 37 82 n
1
n
2
n
3
n
4
1B 25 52 n
1
n
2
n
3
n
4
In the MICROLINE Standard emulation, margins for these commands are measured in units of
1/120" from the leftmost printing position.
Left Margin Parameters n
1
n
2
n
3
Parameters n
1
n
2
n
3
represent a three-digit ASCII number for the value of the location for the left
margin. If the value you wish to assign to the left margin is 99 or less, use zero for the first digit.
Right Margin Parameters n
1
n
2
n
3
n
4
Parameters n
1
n
2
n
3
n
4
represent a four-digit ASCII number for the value of the location for the
right margin. If the value you wish to assign is less than four digits, use zeros for the first digit(s).
The right margin must be at least 60 units greater than the left margin. If no left margin has
been set, the minimum value for the right margin is 60 units.
You must set the right margin before sending any data for the line on which it is to take effect.
The Maximum Margin Values table below lists the widest allowable margins.
Table 48: ML ESC % C and ESC % R Commands —
Maximum Margin Values
Model
Left Margin n Value
Right Margin n Value
ML320 Std., ML320 Turbo, ML520
0899
0960
ML321 Std., ML321 Turbo, ML521
0999
1632
For example, suppose you want to set one-inch margins on a standard 8-1/2" page. The left
margin will be 120/120" from the leftmost position, so the command to set it is:
LPRINT CHR$(27);"%C";"120"
The right margin is 7-1/2", or 900/120" from the leftmost position, so the command to set it is:
LPRINT CHR$(27);"%R";"0900"