Table14. EIA-232 commands organized by function (continued)
Description Command Page
Set print station parameters ESC c 1 nor 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 nor X'1B72;n' 137
Set line spacing using minimum
units
ESC 3 nor X'1B33;n' 137
Set sheet eject length ESC C nor X'1B43;n' 138
Set horizontal tab positions ESC D [n1 n2] NUL NUL or X'1B44[n1n2]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 nor X'1B61;n'. 139
Set error recovery function ESC c 4 nor X'1B63;34;n' 140
Define document wait time ESC f xyor X'1B66;x;y' 141
Status sent to system ESC ) nor X'1B29;n' 141
Select character for reprinted lines ESC + nor 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 { nor X'1B7B;n' 144
Select character size for scalable
fonts
GS ! nor X'1D21;n' 145
Fix font matrix ESC : nor 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 ; nor 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
GSc1nwhere n is 2 bytes indicating the length of the document
in print motor steps
133
Bar Code Commands
Print bar code GS k nNUL or X'1D6B;n;data;00' 147
Select horizontal size of bar code GS w nor X'1D77;n' 152
Select bar code height GS h nor X'1D68;n' 152
Select printing position of
human-readable information (HRI)
GS H nor X'1D48;n' 152
Select font for HRI GS f nor X'1D66;n' 153
Print PDF417 bar code GS P data NULor 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 nor X'1D52;n1;n2' 154
SelectAspect Ratio PDF417 bar
code
GS S r;c or X'1D53;r;c' 155
Updated April 2, 2009
AppendixD. EIA-232 programming information 105