A SERVICE OF

logo

User's Guide
D-28 Code Sets
Table D-6. Epson and IBM Escape Sequences––continued
Function ASCII Hexadecimal Decimal Description
Basic Functions––continued
Set eighth bit ...................... When 8-bit codes are sent, these sequences cause the
To zero ........................... ESC = 1B 3D 27 61 printer to set the most significant bit of following codes to
To one ............................ ESC > 1B 3E 27 62 zero or one before interpreting and executing their func-
End (data "as is") ........... ESC # 1B 23 27 35 tions. When 7-bit codes are being sent, these sequences
add an eighth bit of zero or one to each 7-bit code.
Setting the most significant bit to zero limits the range of
codes to 0 through 127 decimal. Setting the most
significant bit to one limits the range of codes to 128
through 255 decimal.
These sequences do not affect any graphics escape
sequence or the Download Font sequence.
Note: These sequences are not supported when the IBM
XL24 emulation is active.
Disable printing ................. ESC j 1B 6A 27 106 These sequences disable printing until the printer receives
Alternate ......................... ESC Q 1B 51 27 81 a DC1 code or the operator presses the Ready button on
the control panel. While printing is disabled, the PAUSE
mes-sage appears on the control panel.
Note: These sequences are not supported when an Epson
emulation is active.
Search and replace ............ ESC ESC X 1B 1B 58 27 27 88 This sequence causes the printer to search incoming
n1 n2 n1 n2 n1 n2 data for string1 and replace each occurance with string2.
string1 string2 string1 string2 string1 string2 The search and replace strings can be from 1 to 255 bytes
long and can include any combination of codes. Variable
n1 in the sequence defines the length of string1 in bytes;
variable n2 in the sequence defines the length of string2
in bytes. For example, to replace each occurrence of
AAA with ABC, the correct sequences is ESC ESC X
ETX ETX A A A A B C. Or, to get the printer to ignore
all occur-rences of AAA, the correct sequence is ESC
ESC X ETX NUL A A A.
Only one search and replace sequence can be in effect at
a time. Whenever you send a new search and replace
sequence, the previous search and replace sequence is
discarded. To cancel a search and replace sequence with-
out defining a new one, use ESC ESC X NUL NUL.
Note: Search and replace does not affect graphics escape
sequences or the Download Font escape sequence.
User's Guide
D-28 Code Sets
Table D-6. Epson and IBM Escape Sequences––continued
Function ASCII Hexadecimal Decimal Description
Basic Functions––continued
Set eighth bit ...................... When 8-bit codes are sent, these sequences cause the
To zero ........................... ESC = 1B 3D 27 61 printer to set the most significant bit of following codes to
To one ............................ ESC > 1B 3E 27 62 zero or one before interpreting and executing their func-
End (data "as is") ........... ESC # 1B 23 27 35 tions. When 7-bit codes are being sent, these sequences
add an eighth bit of zero or one to each 7-bit code.
Setting the most significant bit to zero limits the range of
codes to 0 through 127 decimal. Setting the most
significant bit to one limits the range of codes to 128
through 255 decimal.
These sequences do not affect any graphics escape
sequence or the Download Font sequence.
Note: These sequences are not supported when the IBM
XL24 emulation is active.
Disable printing ................. ESC j 1B 6A 27 106 These sequences disable printing until the printer receives
Alternate ......................... ESC Q 1B 51 27 81 a DC1 code or the operator presses the Ready button on
the control panel. While printing is disabled, the PAUSE
mes-sage appears on the control panel.
Note: These sequences are not supported when an Epson
emulation is active.
Search and replace ............ ESC ESC X 1B 1B 58 27 27 88 This sequence causes the printer to search incoming
n1 n2 n1 n2 n1 n2 data for string1 and replace each occurance with string2.
string1 string2 string1 string2 string1 string2 The search and replace strings can be from 1 to 255 bytes
long and can include any combination of codes. Variable
n1 in the sequence defines the length of string1 in bytes;
variable n2 in the sequence defines the length of string2
in bytes. For example, to replace each occurrence of
AAA with ABC, the correct sequences is ESC ESC X
ETX ETX A A A A B C. Or, to get the printer to ignore
all occur-rences of AAA, the correct sequence is ESC
ESC X ETX NUL A A A.
Only one search and replace sequence can be in effect at
a time. Whenever you send a new search and replace
sequence, the previous search and replace sequence is
discarded. To cancel a search and replace sequence with-
out defining a new one, use ESC ESC X NUL NUL.
Note: Search and replace does not affect graphics escape
sequences or the Download Font escape sequence.