User's Guide
D-28 Code Sets
Table D-6. Epson and IBM Escape Sequences––continued
Function ASCII Hexadecimal Decimal Description
Basic Functions––continued
Auto carriage return............... ESC ESC CR n1B 1B 0D n27 27 13 nThis sequence starts and ends the automatic carriage return
Start...................................... ESC ESC CR 1 1B 1B 0D 31 27 27 13 49 mode, wherein the printer performs a carriage return and
End....................................... ESC ESC CR 0 1B 1B 0D 30 27 27 13 48 line feed for every line feed code it receives.
Auto line feed............................ ESC ESC LF n1B 1B 0A n27 27 10 nThese sequences start and end the automatic line feed
Start (all emulations)........... ESC ESC LF 1 1B 1B 0A 31 27 27 10 49 mode, wherein the printer performs a carriage return and
Start (IBM emulation)......... ESC 5 1 1B 35 31 27 53 49 line feed for every carriage return code it receives.
End (all emulations) ............ ESC ESC LF 0 1B 1B 0A 30 27 27 10 48
End (IBM emulation).......... ESC 5 0 1B 35 30 27 53 48
Auto perforation...................... ESC ESC FF n1B 1B 0C n27 27 12 nThis sequence starts and ends the automatic perforation
skip mode 1 skip mode, wherein the printer performs a form feed when-
Start...................................... ESC ESC FF 1 1B 1B 0C 31 27 27 12 49 ever printing reaches one-half inch from the bottom of
End....................................... ESC ESC FF 0 1B 1B 0C 30 27 27 12 48 the page. The form feed advances the paper one-half inch
beyond the next top-of-form or top margin (if one is set).
Start auto perforation............. ESC N n1B 4E n27 78 nThis sequence starts and ends the automatic perforation
skip mode 2 skip mode, wherein the printer performs a form feed whenever
printing approaches the bottom of the page. The form feed
advances the paper to the next top-of-form or top margin (if one
is set). The value of variable n defines how many blank lines are
left at the bottom of each page. Varia-ble n can range from one
line up to the current page length. For example, to leave six blank
lines at the bottom of a page, the correct sequence is ESC N
ACK. The End Auto Perforation Skip Mode 2, Set Page Length in
Lines or Set Page Length in Inches sequence ends this mode.
End auto perforation................ ESC O 1B 4F 27 79 These sequence ends automatic perforation skip mode 2.
skip mode 2
Unidirectional printing............. These sequences control unidirectional printing, wherein
Start...................................... ESC U 1 1B 55 31 27 85 49 printing occurs only while the carriage moves from left to
Start (alternate).................... ESC ESC U 1 1B 1B 55 31 27 27 85 49 right. Unidirectional printing enables the exact alignment
End....................................... ESC U 0 1B 55 30 27 85 48 of multi-line graphics, component characters and other
End (alternate) ..................... ESC ESC U 0 1B 1B 55 30 27 27 85 48 applications where vertical alignment is important.
Ignore codes.............................. ESC ESC I n1B 1B 49 n27 27 73 nThis sequence causes the printer to ignore from 1 to 95
subsequent codes that it receives. The value of variable n minus
32 defines the number of subsequent codes to ignore. For
example, to ignore the next 20 codes, the correct escape
sequence is ESC ESC I 4.
User's Guide
D-28 Code Sets
Table D-6. Epson and IBM Escape Sequences––continued
Function ASCII Hexadecimal Decimal Description
Basic Functions––continued
Auto carriage return............... ESC ESC CR n1B 1B 0D n27 27 13 nThis sequence starts and ends the automatic carriage return
Start...................................... ESC ESC CR 1 1B 1B 0D 31 27 27 13 49 mode, wherein the printer performs a carriage return and
End....................................... ESC ESC CR 0 1B 1B 0D 30 27 27 13 48 line feed for every line feed code it receives.
Auto line feed............................ ESC ESC LF n1B 1B 0A n27 27 10 nThese sequences start and end the automatic line feed
Start (all emulations)........... ESC ESC LF 1 1B 1B 0A 31 27 27 10 49 mode, wherein the printer performs a carriage return and
Start (IBM emulation)......... ESC 5 1 1B 35 31 27 53 49 line feed for every carriage return code it receives.
End (all emulations) ............ ESC ESC LF 0 1B 1B 0A 30 27 27 10 48
End (IBM emulation).......... ESC 5 0 1B 35 30 27 53 48
Auto perforation...................... ESC ESC FF n1B 1B 0C n27 27 12 nThis sequence starts and ends the automatic perforation
skip mode 1 skip mode, wherein the printer performs a form feed when-
Start...................................... ESC ESC FF 1 1B 1B 0C 31 27 27 12 49 ever printing reaches one-half inch from the bottom of
End....................................... ESC ESC FF 0 1B 1B 0C 30 27 27 12 48 the page. The form feed advances the paper one-half inch
beyond the next top-of-form or top margin (if one is set).
Start auto perforation............. ESC N n1B 4E n27 78 nThis sequence starts and ends the automatic perforation
skip mode 2 skip mode, wherein the printer performs a form feed whenever
printing approaches the bottom of the page. The form feed
advances the paper to the next top-of-form or top margin (if one
is set). The value of variable n defines how many blank lines are
left at the bottom of each page. Varia-ble n can range from one
line up to the current page length. For example, to leave six blank
lines at the bottom of a page, the correct sequence is ESC N
ACK. The End Auto Perforation Skip Mode 2, Set Page Length in
Lines or Set Page Length in Inches sequence ends this mode.
End auto perforation................ ESC O 1B 4F 27 79 These sequence ends automatic perforation skip mode 2.
skip mode 2
Unidirectional printing............. These sequences control unidirectional printing, wherein
Start...................................... ESC U 1 1B 55 31 27 85 49 printing occurs only while the carriage moves from left to
Start (alternate).................... ESC ESC U 1 1B 1B 55 31 27 27 85 49 right. Unidirectional printing enables the exact alignment
End....................................... ESC U 0 1B 55 30 27 85 48 of multi-line graphics, component characters and other
End (alternate) ..................... ESC ESC U 0 1B 1B 55 30 27 27 85 48 applications where vertical alignment is important.
Ignore codes.............................. ESC ESC I n1B 1B 49 n27 27 73 nThis sequence causes the printer to ignore from 1 to 95
subsequent codes that it receives. The value of variable n minus
32 defines the number of subsequent codes to ignore. For
example, to ignore the next 20 codes, the correct escape
sequence is ESC ESC I 4.