24.01.2015 Views

1 Turn off the power of the printer. - Van Mechelen

1 Turn off the power of the printer. - Van Mechelen

1 Turn off the power of the printer. - Van Mechelen

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

GS r n<br />

[Function]<br />

[Code]<br />

Sending status<br />

HH<br />

[Range] 1 n 2<br />

49 n 50<br />

[Outline]<br />

Sends <strong>the</strong> specified status to <strong>the</strong> host.<br />

n<br />

Function<br />

1,49 Sends <strong>the</strong> paper Sensor status.<br />

2,50 Sends <strong>the</strong> Drawer Kick-out Connector status.<br />

[Caution]<br />

• When <strong>the</strong> serial interface is used:<br />

For DTR/DSR control:<br />

The <strong>printer</strong> sends <strong>the</strong> status after verifying that <strong>the</strong> host is<br />

ready to receive. If <strong>the</strong> host is not ready to receive, <strong>the</strong><br />

<strong>printer</strong> waits for <strong>the</strong> host to become ready to receive.<br />

For XON/XOFF control:<br />

The <strong>printer</strong> sends <strong>the</strong> status without checking whe<strong>the</strong>r <strong>the</strong><br />

host is ready to receive or busy.<br />

• Because this command is executed when data is mapped in<br />

<strong>the</strong> receive buffer, <strong>the</strong>re may be a delay between receiving <strong>the</strong><br />

command and sending <strong>the</strong> status depending on <strong>the</strong> condition<br />

<strong>of</strong> <strong>the</strong> receive buffer.<br />

• If ASB (Automatic Status Back) is enabled by GS a, <strong>the</strong> host<br />

must discriminate between <strong>the</strong> status due to this command<br />

and <strong>the</strong> status due to ASB.<br />

• Paper Sensor status (n = 1, 49)<br />

Bit Status Hex. Decimal<br />

0,1<br />

Paper found by Paper Near-end Sensor 00 0<br />

Paper not found by Paper Near-end Sensor 03 3<br />

2,3<br />

Paper found by Paper end Sensor 00 0<br />

Paper not found by Paper end Sensor (0C) (12)<br />

4 Unused 00 0<br />

5 Undefined — —<br />

6 Undefined — —<br />

7 Unused 00 0<br />

Bits 2, 3: Whenever <strong>the</strong> Paper end Sensor detects a “paper out”<br />

state, <strong>the</strong> <strong>printer</strong> goes <strong><strong>of</strong>f</strong>line, and <strong>the</strong> command is<br />

not executed. The <strong>printer</strong>, <strong>the</strong>refore, never sends a<br />

status where bit 2 = “1” or bit 3 = “1”.<br />

— 127 —

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!