CBM America CBM-262 User Manual

Page 112

Advertising
background image

7

103

(66) Sending of the status (GS r n)

Code: [1D] h + [72] h + n
* (1

n

2)

(31

n

32) Data are expressed in Hex code.

This commands sends the specified status.

n = 1, 31: Sends the paper sensor status.
n = 2, 32: Sends the drawer kick connector status.

When the printer has Serial interface specifications:
In the case of DTR/DSR Control: After confirming that the host computer is ready

to receive, the status is sent. If it is impossible
for the host to receive, waiting continues until
it is possible for it to receive.

In the case of XON/OFF Control: The printer sends the status without confirming

if it is possible or impossible for the host com-
puter to receive.

This command is executed during development of the receiving buffer, so if a
command is received in accordance with the receiving buffer's state, there is a
possibility of a delay occurring while the status is being sent.

If ASB is enabled by GS a, it is necessary to distinguish between the status from
this command and the status from ASB. See pages 50~53 for the identification
method.

Paper Sensor Status (n = 1, 31 )

Bit

Printer Status

Value

0

1

0

Journal Near End Sensor Status

Paper present

No paper

1

Receipt Near End Sensor Status

Paper present

No paper

2

Journal End Sensor Status

Paper present

No paper

3

Receipt End Sensor Status

Paper present

No paper

4

Not used

0

5

Not defined

6

Not defined

7

Not used

0

Bits 2, 3:

If there is no paper at the end sensors, this printer always goes off-line,

so this command is not executed. Therefore, a status of bit 2 = 1 or bit 3 = 1 will
not be sent.

Input Data Format

Advertising