![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/b/91/b91ad44d-4f5f-4151-8275-16897c40509f/b91ad44d-4f5f-4151-8275-16897c40509f-bgcc.png)
User's Guide
D-26 Code Sets
Table D-6. Epson and IBM Escape Sequences
Function ASCII Hexadecimal Decimal Description
Basic Functions
Reset printer ...................... ESC @ 1B 40 27 64 This sequence sets the top-of-form at the current print line
and resets print modes, page setup parameters, tabs and
special modes to the Setup menu defaults. The sequence
does not affect the current emulation or communications
parameters.
Restore printer settings..... ESC ESC r n 1B 1B 72 n 27 27 114 n This sequence restores the printer settings to the factory
Factory setup .................. ESC ESC r 0 1B 1B 72 30 27 27 114 48 default settings or to settings you saved previously using
User 1 setup ................... ESC ESC r 1 1B 1B 72 31 27 27 114 49 the SAVE parameter on the printer's Setup menu. The
User 2 setup ................... ESC ESC r 2 1B 1B 72 32 27 27 114 50 SAVE parameter lets you save up to five printer setups for
User 3 setup ................... ESC ESC r 3 1B 1B 72 33 27 27 114 51 recall later. Each setup is assigned a unique user number
User 4 setup ................... ESC ESC r 4 1B 1B 72 34 27 27 114 52 from 1 to 5.
User 5 setup ................... ESC ESC r 5 1B 1B 72 35 27 27 114 53
Note: Since communications settings are saved as part of
the user setup, be careful not to restore a user setup that
changes the active interface, unless you specifically want
to do so.
Set emulation ..................... ESC ESC E n 1B 1B 45 n 27 27 69 n This sequence selects the active printer emulation which
AMT ..............................
ESC ESC E SOH 1B 1B 45 01 27 27 69 1 determines the active code set. At left, is a partial list of
AMT (alternate) ............. ESC ESC E 1 1B 1B 45 31 27 27 69 49 the printer emulations that this sequence can select. If a
Diablo 630 ..................... ESC ESC E STX 1B 1B 45 02 27 27 69 2 sequence selects an emulation that is not in the installed
Epson JX ........................ ESC ESC E EOT 1B 1B 45 04 27 27 69 4 Intelli-card(s), the printer sounds the audible alarm, dis-
Epson LQ-2550 .............. ESC ESC E ENQ 1B 1B 45 05 27 27 69 5 plays the message EMULATION ERROR, and ignores
IBM XL24 ..................... ESC ESC E ACK 1B 1B 45 06 27 27 69 6 the sequence.
Bar code ......................... ESC ESC E BS 1B 1B 45 08 27 27 69 8
Set color These sequences set the printing color. If a monochrome
Black .............................. ESC b 1B 62 27 98 ribbon is installed, the printer ignores these sequences.
Black (alternate) ............. ESC r 0 1B 72 30 27 114 48
Black (alternate) ............. ESC ESC R 1 1B 1B 52 31 27 27 82 49 Note: The ESC b sequence is not supported when the
Blue ................................ ESC c 1B 63 27 99 Epson LQ-2550 emulation is active.
Blue (alternate) ............... ESC r 2 1B 72 32 27 114 50
Blue (alternate) ............... ESC ESC R 2 1B 1B 52 32 27 27 82 50
Red ................................. ESC m 1B 6D 27 109
Red (alternate)................ ESC r 1 1B 72 31 27 114 49
Red (alternate)................ ESC ESC R 3 1B 1B 52 33 27 27 82 51
Yellow............................ ESC y 1B 79 27 121
Yellow (alternate) .......... ESC r 4 1B 72 34 27 114 52
Yellow (alternate) .......... ESC ESC R 4 1B 1B 52 34 27 27 82 52
Purple ............................. ESC v 1B 76 27 118
Purple (alternate) ............ ESC r 3 1B 72 33 27 114 51
Purple (alternate) ............ ESC ESC R 5 1B 1B 52 35 27 27 82 53
Green.............................. ESC h 1B 68 27 104
Green (alternate) ............ ESC r 6 1B 72 36 27 114 54
Green (alternate) ............ ESC ESC R 6 1B 1B 52 36 27 27 82 54
Orange............................ ESC o 1B 6F 27 111
Orange (alternate) .......... ESC r 5 1B 72 35 27 114 53
Orange (alternate) .......... ESC ESC R 7 1B 1B 52 37 27 27 82 55
User's Guide
D-26 Code Sets
Table D-6. Epson and IBM Escape Sequences
Function ASCII Hexadecimal Decimal Description
Basic Functions
Reset printer ...................... ESC @ 1B 40 27 64 This sequence sets the top-of-form at the current print line
and resets print modes, page setup parameters, tabs and
special modes to the Setup menu defaults. The sequence
does not affect the current emulation or communications
parameters.
Restore printer settings..... ESC ESC r n 1B 1B 72 n 27 27 114 n This sequence restores the printer settings to the factory
Factory setup .................. ESC ESC r 0 1B 1B 72 30 27 27 114 48 default settings or to settings you saved previously using
User 1 setup ................... ESC ESC r 1 1B 1B 72 31 27 27 114 49 the SAVE parameter on the printer's Setup menu. The
User 2 setup ................... ESC ESC r 2 1B 1B 72 32 27 27 114 50 SAVE parameter lets you save up to five printer setups for
User 3 setup ................... ESC ESC r 3 1B 1B 72 33 27 27 114 51 recall later. Each setup is assigned a unique user number
User 4 setup ................... ESC ESC r 4 1B 1B 72 34 27 27 114 52 from 1 to 5.
User 5 setup ................... ESC ESC r 5 1B 1B 72 35 27 27 114 53
Note: Since communications settings are saved as part of
the user setup, be careful not to restore a user setup that
changes the active interface, unless you specifically want
to do so.
Set emulation ..................... ESC ESC E n 1B 1B 45 n 27 27 69 n This sequence selects the active printer emulation which
AMT ..............................
ESC ESC E SOH 1B 1B 45 01 27 27 69 1 determines the active code set. At left, is a partial list of
AMT (alternate) ............. ESC ESC E 1 1B 1B 45 31 27 27 69 49 the printer emulations that this sequence can select. If a
Diablo 630 ..................... ESC ESC E STX 1B 1B 45 02 27 27 69 2 sequence selects an emulation that is not in the installed
Epson JX ........................ ESC ESC E EOT 1B 1B 45 04 27 27 69 4 Intelli-card(s), the printer sounds the audible alarm, dis-
Epson LQ-2550 .............. ESC ESC E ENQ 1B 1B 45 05 27 27 69 5 plays the message EMULATION ERROR, and ignores
IBM XL24 ..................... ESC ESC E ACK 1B 1B 45 06 27 27 69 6 the sequence.
Bar code ......................... ESC ESC E BS 1B 1B 45 08 27 27 69 8
Set color These sequences set the printing color. If a monochrome
Black .............................. ESC b 1B 62 27 98 ribbon is installed, the printer ignores these sequences.
Black (alternate) ............. ESC r 0 1B 72 30 27 114 48
Black (alternate) ............. ESC ESC R 1 1B 1B 52 31 27 27 82 49 Note: The ESC b sequence is not supported when the
Blue ................................ ESC c 1B 63 27 99 Epson LQ-2550 emulation is active.
Blue (alternate) ............... ESC r 2 1B 72 32 27 114 50
Blue (alternate) ............... ESC ESC R 2 1B 1B 52 32 27 27 82 50
Red ................................. ESC m 1B 6D 27 109
Red (alternate)................ ESC r 1 1B 72 31 27 114 49
Red (alternate)................ ESC ESC R 3 1B 1B 52 33 27 27 82 51
Yellow............................ ESC y 1B 79 27 121
Yellow (alternate) .......... ESC r 4 1B 72 34 27 114 52
Yellow (alternate) .......... ESC ESC R 4 1B 1B 52 34 27 27 82 52
Purple ............................. ESC v 1B 76 27 118
Purple (alternate) ............ ESC r 3 1B 72 33 27 114 51
Purple (alternate) ............ ESC ESC R 5 1B 1B 52 35 27 27 82 53
Green.............................. ESC h 1B 68 27 104
Green (alternate) ............ ESC r 6 1B 72 36 27 114 54
Green (alternate) ............ ESC ESC R 6 1B 1B 52 36 27 27 82 54
Orange............................ ESC o 1B 6F 27 111
Orange (alternate) .......... ESC r 5 1B 72 35 27 114 53
Orange (alternate) .......... ESC ESC R 7 1B 1B 52 37 27 27 82 55