User's Guide
Code Sets D-33
Table D-6. Epson and IBM Escape Sequences––continued
Function ASCII Hexadecimal Decimal Description

Absolute and Relative Moving––continued

Relative move to................ ESC \ n1 n2 1B 5C n1 n2 27 92 n1 n2 To move the carriage to the left, subtract the number of
print position (continued) increments to move from 65,536 and then supply the cor-
rect n1 and n2 values. For example, to move the carriage
two inches to the left during letter-quality printing (360/
180 inch), first subtract 360 from 65,536 to get 65,176.
Then, use the equation to determine the correct n1 and n2
values. In this example, the correct n2 value is 254 and
the correct n1 value is 152 (65,176 = (254 x 256) + 152).
If the se-quence specifies a distance that would move the
carriage beyond the left or right print boundary, the printer
ignores the sequence.
Note: This sequence is not supported when the IBM
XL24 emulation is active.
Relative move to print These sequences move the carriage a set distance from
position the current print position. The value of n1 and n2
Right............................... ESC d n1 n2 1B 64 n1 n2 27 100 n1 n2 define the distance in 1/120-inch increments:
Left................................. ESC e n1 n2 1B 65 n1 n2 27 101 n1 n2
Distance in 1/120ths = (n2 x 256) + n1
For example, to move the carriage three inches (360/120
inch), the correct n2 value is 1 and the correct n1 value is
104 (360 = (1 x 256) + 104). If the sequence specifies a
distance that would move the carriage beyond the left or
right print boundary, the carriage moves to that boundary.

Boundaries, Tabs and Page Formatting

Set top-of-form (TOF) ...... ESC 4 1B 34 27 52 This sequence sets the top-of-form at the current line
position. The printer regards the current print line as the
first line on the page (line 0) and starts counting lines from
that point.
Note: This sequence is not supported when an Epson
emulation is active.
Set left print boundary...... ESC l n1B 6C n27 108 nThis sequence cancels printing of the current line, resets
the default tabs, and sets the left print boundary anywhere
on the line. All subsequent horizontal move commands,
such as carriage returns and tabs, are relative to the new
bound-ary. The value of variable n defines where to set
the left print boundary relative to the true leftmost print
position and with respect to the current character spacing.
For exam-ple, to set the left print boundary one inch to the
right of the true leftmost print position with character
spacing at 10 cpi, the correct sequence is ESC l LF. If the
sequence specifies a boundary that is at or to the right of
the right print bound-ary, the printer ignores this
sequence. If you set a left print boundary with
proportional-spacing selected, the printer uses 12 cpi to
interpret the n variable.
User's Guide
Code Sets D-33
Table D-6. Epson and IBM Escape Sequences––continued
Function ASCII Hexadecimal Decimal Description

Absolute and Relative Moving––continued

Relative move to................ ESC \ n1 n2 1B 5C n1 n2 27 92 n1 n2 To move the carriage to the left, subtract the number of
print position (continued) increments to move from 65,536 and then supply the cor-
rect n1 and n2 values. For example, to move the carriage
two inches to the left during letter-quality printing (360/
180 inch), first subtract 360 from 65,536 to get 65,176.
Then, use the equation to determine the correct n1 and n2
values. In this example, the correct n2 value is 254 and
the correct n1 value is 152 (65,176 = (254 x 256) + 152).
If the se-quence specifies a distance that would move the
carriage beyond the left or right print boundary, the printer
ignores the sequence.
Note: This sequence is not supported when the IBM
XL24 emulation is active.
Relative move to print These sequences move the carriage a set distance from
position the current print position. The value of n1 and n2
Right............................... ESC d n1 n2 1B 64 n1 n2 27 100 n1 n2 define the distance in 1/120-inch increments:
Left................................. ESC e n1 n2 1B 65 n1 n2 27 101 n1 n2
Distance in 1/120ths = (n2 x 256) + n1
For example, to move the carriage three inches (360/120
inch), the correct n2 value is 1 and the correct n1 value is
104 (360 = (1 x 256) + 104). If the sequence specifies a
distance that would move the carriage beyond the left or
right print boundary, the carriage moves to that boundary.

Boundaries, Tabs and Page Formatting

Set top-of-form (TOF) ...... ESC 4 1B 34 27 52 This sequence sets the top-of-form at the current line
position. The printer regards the current print line as the
first line on the page (line 0) and starts counting lines from
that point.
Note: This sequence is not supported when an Epson
emulation is active.
Set left print boundary...... ESC l n1B 6C n27 108 nThis sequence cancels printing of the current line, resets
the default tabs, and sets the left print boundary anywhere
on the line. All subsequent horizontal move commands,
such as carriage returns and tabs, are relative to the new
bound-ary. The value of variable n defines where to set
the left print boundary relative to the true leftmost print
position and with respect to the current character spacing.
For exam-ple, to set the left print boundary one inch to the
right of the true leftmost print position with character
spacing at 10 cpi, the correct sequence is ESC l LF. If the
sequence specifies a boundary that is at or to the right of
the right print bound-ary, the printer ignores this
sequence. If you set a left print boundary with
proportional-spacing selected, the printer uses 12 cpi to
interpret the n variable.