Appendix B OKI-Emulation Commands
B.2.2
Margins
S ESC F n ... :
S ESC 5:
S ESC ( n :
S ESC ) n :
ESC F n1 n2
This command code specifies page length to (n1 & 0x0f) * 10 + (n2 & 0x0f) lines.
Hex
(1B 46 n1 n2)H
Decimal
(27 70 n1 n2)D
Octal
(33 106 n1 n2)O
ESC 5
This command code specifies the top of form to current vertical position.
Hex
(1B 35)H
Decimal
(27 53)D
Octal
(33 65)O
ESC ( n1 n2
This command code sets left margin to (n1 * 256 + n2)/180 inch
Hex
(1B 28 n1 n2)H
Decimal
(27 40 n1 n2)D
Octal
(33 50 n1 n2)O
right margin - left margin > 1.5 inch
If in data field this code will be ignored.
Note:
ESC ) n1 n2
This command code sets right margin to (n1 * 256 + n2)/180 inch
Hex
(1B 29 n1 n2)H
Decimal
(27 41 n1 n2)D
Octal
(33 51 n1 n2)O
right margin - left margin > 1.5 inch
B-8
Set page length
Set Top of Form
Set Left Margin
Set Right Margin
Set Page Length
Set Top of form
Set Left Margin
Set Right Margin