Citizen Systems PPU-231II manual GS r n, See Also DLE EOT, GS a

Page 92

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 Near-end Sensor 1

00

0

 

 

 

Paper not found by Paper Near-end Sensor 1

01

1

 

 

 

 

 

1

 

 

Paper found by Paper Near-end Sensor 2

00

0

 

 

 

Paper not found by Paper Near-end Sensor 2

02

2

 

 

 

 

 

2

 

 

Paper found by Paper-end Sensor

00

0

 

 

 

Paper not found by Paper-end Sensor

(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 Paper-end Sensor detects a “paper out” state, the printer goes offline, and the command is not executed. The printer, therefore, never sends a status bit 2 = “1”.

[See Also]

DLE EOT, GS a

— 90 —

Image 92
Contents Command Reference Revision Command Function Mode Code Print Control FunctionsFunction Mode Code ESC \Command relative to NV memory Default RangeOutline ReferenceCommand Details See AlsoPrint Results See Also Sample Program Print Result Standard ModeMode Can Example DLE EOT nRange Outline Page See Also DLE ENQ n ESC FF Default See Also ESC SP nLprint Aaaaa + CHR$&HA ESC ! n Lprint CHR$&HA END ESC $ n1 n2 100 ESC % n Gosub SetchrESC & s n m a p s⋅ a m-n+1 Font a ESC * m n1 n2 d k IMG1 ESC n ESC ESC 3 n ESC = n ESC ? n ESC @ Function Code Outline Sample Program Print ResultsESC D n k NUL ESC E n ESC G n ESC J n ESC L Details ESC M nDefinition value ESC R n ESC S ESC T n Default Sample Program ESC V nESC W xL xH yL yH dxL dxH dyL dyH CAN, ESC L, ESC T, GS P ESC \ nL nH ESC a n ESC c 3 n ESC c 4 n ESC c 5 n ESC d n ESC n n ’ ∝ ← n = Default Sample Program Print Results Vertical Magnification GS ! nHorizontal Magnification Default See Also GS $ nL nH See Also ESC $, ESC T, ESC W, ESC \, GS P, GS \GS * n1 n2 d n1⋅ n2⋅ Next I Next J Return GS a pL pH n m DefinitionGS / m Specifying starting/ending macro definition GS a m n GS B n GS H n Print Results GS I n GS L nL nH GS P, GS W GS P x y GS R 0 n GS R 1 n GS S 1DH56Hm 1DH56Hmn GS W nL nH GS L, GS P GS \ nL nH GS n1 n2 n3 GS a n Paper feed state triggered by Feed switch DLE EOT, GS r GS f n Selecting bar code height D1 ..... dk NUL D1 ...... dnFor Standard Mode ForFor page Mode Default Initial value is not definedDescription of Bar Codes For print examples, refer to UPC-AAscii This bar code consists of 103 bar code characters Special characters FNC4Description of Bar Codes GS r n See Also DLE EOT, GS aGS v 0 m xL xH yL yH d1...dk When xL+xH ⋅ 256= GS w n FS g3 m a1 a2 a3 a4 nL nH d1…dk RangeReference FS g4 m a1 a2 a3 a4 nL nH FS g3 P n m Page Q n xL xH yL yH d1…dk 1… xL xH yL yH d1…dk n Page Related Commands FS p