Star Micronics CBM-820 manual GS r n, Sends Status

Models: CBM-820

1 132
Download 132 pages 45.64 Kb
Page 85
Image 85
GS r n

GS r n

[Function]

Sends Status

 

 

 

[Code]

ASCII

 

GS

r

n

 

Hexadecimal

1D

72

n

 

Decimal

 

29

114

n

[Range]

1

n

2, 49

n

50

 

[Outline]

This command sends the status, depending on setting of n.

 

 

 

 

 

 

 

n

 

Description

 

 

 

 

 

 

1, 49

Sends the paper sensor status. (Same as ESC v)

 

 

 

 

 

 

2, 50

Sends the status of the drawer kick connector. (Same as ESC u 0)

 

 

 

 

[Caution]

The following tables describe the status sent.

 

If DTR/DSR control is selected and the memory switch 4-5 is set to 0, the printer sends only 1

 

 

byte after confirming that the host is ready to receive (the DSR signal status is Space).

 

 

If the host is not ready (the DSR signal status is Mark), the printer will wait until it will be ready

 

 

to receive. If XON/XOFF control is selected or the memory switch 4-5 is set to 1, the printer

 

 

will send 1 byte without confirming the DSR signal status.

 

Since this command is executed at deployment of the reception buffer, there may be a delay

 

 

between command reception and status sending, depending on the reception buffer

 

 

condition.

 

 

If ASB is enabled by GS a, it is necessary to distinguish the status by this command from that

 

 

of ASB. See “6. Interface” for how to distinguish them.

 

If n goes beyond the range, this command will be ignored.

n = 1, 49 : Paper sensor status

Bit

Status

Hexadecimal

Decimal

 

 

 

 

0

BOF sensor with paper

00

0

 

 

 

 

 

BOF sensor without paper

01

1

 

 

 

 

1

TOF sensor with paper

00

0

 

 

 

 

 

TOF sensor without paper

02

2

 

 

 

 

2

Undefined

 

 

 

 

3

Undefined

 

 

 

 

4

Unused

00

0

 

 

 

 

5

Undefined

 

 

 

 

6

Undefined

 

 

 

 

7

Unused

00

0

 

 

 

 

– 74 –

Page 85
Image 85
Star Micronics CBM-820 manual GS r n, Sends Status, Sends the status of the drawer kick connector. Same as ESC u