Control Codes
Page 154 100-88002 Rev B
Miscellaneous Control
[ESC] X Set left/right print margins
ASCII [ESC] X <n
1
> <n
2
>
Hexadecimal 1BH 58H <n
1
> <n
2
>
Decimal <27> <88> <n
1
> <n
2
>
IPCL none
EPOS [ESC] Q
Description The [ESC] X <n
1
> <n
2
> command sets left and right print margins in
characters from the home position. Where n
1
= left margin and n
2
= right margin, the
absolute position depends on the current print pitch. If the left and right margins are
set to the right of the current horizontal position, the new margins become valid in the
same line. If the left margin is set to the left of the current horizontal position and the
right margin set to the right of the current horizontal position, the right margin setting
becomes valid in the same line, but the left margin setting becomes valid in the next
line. When the left and right margins are set to the left of the current horizontal
position, both left and right margin settings appear to become valid in the next line
because an auto-CR is performed by the subsequent data.
[CAN] Clear print buffer
ASCII [CAN]
Hexadecimal 18H
Decimal <24>
IPCL &%RP
EPOS [CAN]
Description The [CAN] command clears the print buffer and any unprinted information
in the printer received before it. If the input buffer is not being processed because the
printer is out of paper or a form is not inserted, the [CAN] command will not be
processed until after the error is cleared. The [CAN] command does not restore
default conditions; it only clears the print buffer.