Epson SE450 manual GS S Return Printer Status, Returns

Page 51

Commands

GS S Return Printer Status

Description

Returns a single status byte. The printer status is determined by testing the individual bits within the returned status byte. Only bits that have defined values should be tested. Do not test bits designated as reserved.

When polling for the status byte, your program must wait for the status byte to arrive. The printer will take several milliseconds to process the request and then transmit the status byte. If your program does not wait for a received character, you may receive erroneous results.

ESC A and GS S are functionally identical. ESC A is provided for compatibility with the LabelWriter raster bitmap label printer. If possible, you should use GS S in order to ensure future compatibility.

See Also

ESC A

Expression

ASCII

GS S

Decimal

29 83

Hex

1D 53

Parameters

None

Returns

Bit

Bit =0

Bit =1

0

LSB

Printer ready

Printer not ready

1

 

Not top of form

Top of form

2

 

RESERVED

RESERVED

3

 

RESERVED

RESERVED

4

 

RESERVED

RESERVED

5

 

Paper loaded

Out of paper

6

 

RESERVED

RESERVED

7

MSB

Printer has no error

Printer has error

45

Image 51
Contents Technical Reference Copyright Contents Page Character Codes Configuration Menu Printer Specifications This page intentionally left blank for double-sided printing Introduction This page intentionally left blank for double-sided printing RS-232 Settings Configuring the Host Computer for RS-232 Serial InterfaceRS-232 Cabling RS-232 Signal LevelsProgramming the LabelWriter Printer Programming OverviewBit Character Parameters Resetting the PrinterCommand Parameters Character EvaluationConversions Font Specifications ObjectsPrint Modes Orientation Raster ModeText Objects Landscape ModeBarcode Objects Line Objects Graphic ObjectsAlphabetical Command List Command ReferenceESC L Position Control Commands by FunctionGS DC2 GS DC3 GS RS GS US Font ControlBarcodes MiscellaneousPrintable Characters Commands Raster Compatibility20h FFh Printable Characters CR Carriage Return DC4 Cancel Double Wide ModeESC a Return Printer Status ESC a Return Hardware StatusESC B Set Dot Tab ESC c Set Print Temperature to Low ESC d Set Print Temperature to MediumESC D Set Bytes per Line ESC E Form Feed ESC e Set Print Temperature to DefaultESC i Set Printing Speed to Barcode ESC g Set Print Temperature to HighESC F 1 n Feed n Lines ESC h Set Print Speed to FastESC M Set Font to 12 cpi ESC L Set Feed LengthESC P Set Font to 16 cpi ESC Q Set Top Margin ESC S Set Font to 20 cpiESC T Set Font to 7 cpi ESC U Set Font to 10 cpi ESC W Wrap Data ESC V Return Firmware RevisionESC Y Set Vertical Starting Position ESC X Set Horizontal Starting PositionESC z Set 136 x 203 dpi ESC * Reset to DefaultsESC @ Reset to Power-up Condition ESC y Set 203 x 203 dpiETB Raster Mode Compressed Graphics FF Form Feed GS DC2 Set Font to Double Height GS a Starting Position of Bar CodeGS d Feed n Text Lines GS DC3 Cancel Double HeightGS k Print Barcode GS h Set Barcode HeightUPC-A Data Matrix BarcodeSupported Square Data Matrix Symbol Sizes Supported Rectangular Data Matrix Symbol Sizes Commands Command Reference GS l Draw Line in Landscape Mode Least significant byte of the line length in dots GS L Set Feed Length GS q Print UPC/EAN Checksum GS RS Set Inverse Print ModeReturns GS S Return Printer StatusGS t Set Characters per Line in Landscape GS T Select Line Wrap/Truncate ModesGS u Set Characters per Line in Portrait GS US Cancel Inverse Print ModeGS W Set Bar Code Element Width GS V Set Print OrientationGS w Set Barcode Module Width GS ~ Enter Debug ModeGS * Landscape Mode Graphics SO Set Font to Double Wide Mode HT Horizontal TabLF Line Feed SYN Raster Mode Graphics Caret Feature Activating the Caret FeatureUsing the Caret Feature Command Reference Char Character CodesCharacter Codes CharName \ back slash DEL Name Decimal Hex Binary Caret Feature Character Codes 251 1111 252 253 254 255 This page intentionally left blank for double-sided printing Configuration Menu Configuration Menu Print Head Specifications Printer SpecificationsHardware Specifications Interface SpecificationsPrinter Specifications Serial Interface Specifications USB SettingsThis page intentionally left blank for double-sided printing