Chapter 8: Horizontal Control Commands72
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"