Chapter 9: Vertical Control Commands 85
Chapter 9: Vertical Control Commands
This chapter describes the commands for vertical control including the following:
• Page Length Commands
• Form Feed Command
• Line Feed Commands
• Line Spacing Commands
• Vertical Tab Commands
• Vertical Position Commands
• Top of Form Commands
• Top & Bottom Margin Command
• Skip Over Perforation Commands
Set Page Length Commands
Set Page Length in Inches Command (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
Set Page Length
in Inches
ASCII: ESC C NUL n
Dec: 27 67 0 n
Hex: 1B 43 00 n
ASCII: ESC C NUL n
Dec: 27 67 0 n
Hex: 1B 43 00 n
ASCII: ESC G H
n
L
n
Dec: 27 71 H
n
L
n
Hex: 1B 47 H
n
L
n
This command sets the page length in inches. If you will most often be using one of the
standard page lengths available through the printer menu (see "Menu Mode" in your printer
manual), it’s a good idea to use the printer menu to set the default page length and then use the
page length command whenever you wish to change it temporarily.
To set the page length in inches in either the IBM or Epson emulation, use the command ESC C
NUL n. This sets the page length in increments of 1" times the value of the variable "n." The
value of n can be from 1 to 22.
To set the page length in inches in the MICROLINE Standard emulation, use the command ESC
G Hn Ln. This sets the page length in increments of ½" x the value of the variables Hn Ln.
Variables Hn Ln represent a 2-digit ASCII number ranging from 00 to 99. For lengths of less
than 4½", use a zero for Hn. For example, to set a page length of 14 inches, enter the BASIC
statement
LPRINT CHR$(27);"G";"28"
Set Page Length in Lines Command (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
Set Page Length in Lines
ASCII: ESC C n
Dec: 27 67 n
Hex: 1B 43 n
ASCII: ESC C n
Dec: 27 67 n
Hex: 1B 43 n
ASCII: ESC F H
n
L
n
Dec: 27 70 H
n
L
n
Hex: 1B 46 H
n
L
n
You can set the page length in either inches or lines. If you will most often be using one of the
standard page lengths available through the printer menu (see “Menu Mode” in your printer
manual), it's a good idea to use the printer menu to set the default page length and then use the
page length command whenever you wish to change it temporarily.
To set the page length by lines in either the IBM or Epson emulation, use the command ESC C