Table 14. EIA-232 commands organized by function (continued)
Description Command Page
Set print station parameters ESC c 1 n or X'1B6331;n' 136.
Select 1/8-inch line spacing ESC 1 or X'1B31'. 136
Select 1/6-inch line spacing ESC 2 or X'1B32' 136
Select color printing ESC r n or X'1B72;n' 137
Set line spacing using minimum
units
ESC 3 n or X'1B33;n' 137
Set sheet eject length ESC C n or X'1B43;n' 138
Set horizontal tab positions ESC D [n1 n2] NUL NUL or X'1B44[n1 n2]0000' 138
Set left margin position ESC $ n1 n2 or X'1B24;n1;n2' 138
Set relative position ESC \ n1 n2 or X'1B5C;n1;n2' 139
Align positions ESC a n or X'1B61;n'. 139
Set error recovery function ESC c 4 n or X'1B63;34;n' 140
Define document wait time ESC f xyor X'1B66;x;y' 141
Status sent to system ESC ) n or X'1B29;n' 141
Select character for reprinted lines ESC + n or X'1B2B;n' 142
Re-initialize the printer ESC @ or X'1B40'. 142
Enable/disable the feed buttons ESCc5nX'1B6335;n' 143.
Enable/disable the beeper ESC BEL n1 n2 or X'1B07;n1;n2' 143
Enable/disable upside-down
printing
ESC { n or X'1B7B;n' 144
Select character size for scalable
fonts
GS ! n or X'1D21;n' 145
Fix font matrix ESC : n or X'1B3A n' 146
Print logo inline GS J d n1 n2 data or X'1D4A;d;n1;n2;data' 146
Enable/disable two-color printing GS ; n or X'1D3B;n' 147
Request document length for
landscape print
GS N X'02' Null or X'1D4E0200' 133
Set document length for
landscape print
GSc1n where n is 2 bytes indicating the length of the document
in print motor steps
133
Bar Code Commands
Print bar code GS k n NUL or X'1D6B;n;data;00' 147
Select horizontal size of bar code GS w n or X'1D77;n' 152
Select bar code height GS h n or X'1D68;n' 152
Select printing position of
human-readable information (HRI)
GS H n or X'1D48;n' 152
Select font for HRI GS f n or X'1D66;n' 153
Print PDF417 bar code GS P data NUL or X'1D50;data;00' 153
Print PDF417 bar code using
binary mode
GS U datalength data or X'1D;55;datalength;data;00' 154
Select PDF417 ECC Level GS R n or X'1D52;n1;n2' 154
Select Aspect Ratio PDF417 bar
code
GS S r;c or X'1D53;r;c' 155
Updated April 2, 2009
Appendix D. EIA-232 programming information 105