GS r n
[Function] | Sending status |
|
| |||
[Code] | <1D>H<72>H<n> |
|
| |||
[Range] | n=1, 49 |
|
| |||
[Outline] | Sends the specified status to the host. |
|
| |||
|
|
|
|
|
|
|
| n |
|
| Function |
|
|
| 1,49 | Sends the paper Sensor status. |
|
| ||
[Caution] | • When the serial interface is used: |
|
| |||
| For DTR/DSR control: |
|
| |||
|
| The printer sends the status after verifying that the host is | ||||
|
| ready to receive. If the host is not ready to receive, the | ||||
|
| printer waits for the host to become ready to receive. | ||||
| For XON/XOFF control: |
|
| |||
|
| The printer sends the status without checking whether the | ||||
|
| host is ready to receive or busy. |
|
| ||
| • Because this command is executed when data is mapped in | |||||
| the receive buffer, there may be a delay between receiving the | |||||
| command and sending the status depending on the condition | |||||
| of the receive buffer. |
|
| |||
| • If ASB (Automatic Status Back) is enabled by GS a, the host | |||||
| must discriminate between the status due to this command | |||||
| and the status due to ASB. |
|
| |||
| • Paper Sensor status (n = 1, 49) |
|
| |||
|
|
|
|
|
|
|
| Bit |
|
| Status | Hex. | Decimal |
| 0 |
|
| Paper found by Paper | 00 | 0 |
|
|
| Paper not found by Paper | 01 | 1 | |
|
|
|
| |||
| 1 |
|
| Paper found by Paper | 00 | 0 |
|
|
| Paper not found by Paper | 02 | 2 | |
|
|
|
| |||
| 2 |
|
| Paper found by | 00 | 0 |
|
|
| Paper not found by | (04) | (4) | |
|
|
|
| |||
| 3 |
|
| Paper found by Presenter Sensor | 00 | 0 |
|
|
| Paper not found by Presenter Sensor | 08 | 8 | |
|
|
|
| |||
| 4 |
|
| Unused | 00 | 0 |
| 5 |
|
| Undefined | — | — |
| 6 |
|
| Undefined | — | — |
| 7 |
|
| Unused | 00 | 0 |
Bit 2: Whenever the
[See Also] | DLE EOT, GS a |
— 90 —