CHAPTER 4 Control commands list

DLE EOT

[Name]

Real-time status transmission

 

 

 

[Format]

ASCII

 

 

DLE

EOT

n

 

Hex

 

 

10

 

04

 

n

 

Decimal

 

 

16

 

4

 

n

[Range]

1 ≤ n ≤ 4

 

 

 

 

 

 

 

 

[Description]

Transmits 1 byte of status data specified in real time, using n as follows:

 

 

n

 

 

 

 

Function

 

 

1

 

Transmit printer status

 

 

 

 

2

 

Transmit offline status

 

 

 

 

3

 

Transmit error status

 

 

 

 

4

 

Transmit paper sensor status

 

[Notes]

• Printer status (n = 1) is as follows:

 

 

 

 

Bit

 

 

Binary

Hex

 

Decimal

 

 

 

Status

 

0

 

 

0

 

00

 

0.

 

 

Not used. Fixed to Off

 

1

 

 

1

 

02

 

2

 

 

Not used. Fixed to On

 

2

 

 

0

 

00

 

0

 

Drawer kick-out connector pin 3 is LOW

 

 

 

1

 

04

 

4

 

 

Drawer kick-out connector pin 3 is HIGH

 

 

 

 

 

 

 

 

 

3

 

 

0

 

00

 

0

 

 

Online

 

 

 

1

 

08

 

8

 

 

Offline

 

 

 

 

 

 

 

 

 

4

 

 

1

 

10

 

16

 

 

Not used. Fixed to On

 

5

 

 

0

 

00

 

0

 

 

Not used. Fixed to Off

 

6

 

 

0

 

00

 

0

 

 

Not used. Fixed to Off

 

7

 

 

0

 

00

 

0

 

 

Not used. Fixed to Off

• Offline status (n = 2) is as follows:

Bit

 

Binary

 

Hex

 

Decimal

 

 

Status

0

 

0

 

00

 

0.

 

 

Not used. Fixed to Off

1

 

1

 

02

 

2

 

 

Not used. Fixed to On

2

 

0

 

00

 

0

 

 

Cover is closed

 

1

 

04

 

4

 

 

Cover is open

 

 

 

 

 

 

3

 

0

 

00

 

0

 

 

Paper is not being fed by the paper feed button

 

1

 

08

 

8

 

 

Paper is being fed by the paper feed button

 

 

 

 

 

 

4

 

1

 

10

 

16

 

 

Not used. Fixed to On

5

 

0

 

00

 

0

 

 

No paper end stop

 

1

 

20

 

32

 

 

Printing stops due to a paper end

 

 

 

 

 

 

6

 

0

 

00

 

0

 

 

No error

 

1

 

04

 

4

 

 

Error occurred

 

 

 

 

 

 

7

 

0

 

00

 

0

 

 

Not used. Fixed to Off

• Error status (n = 3) is as follows:

Bit

Binary

Hex

Decimal

Status

0

0

00

0

Not used. Fixed to Off

1

1

02

2

Not used. Fixed to On

2

0

00

0

No mechanical error

1

04

4

Mechanical error occurred

 

3

0

00

0

No auto cutter error

1

08

8

Auto cutter error occurred

 

4

1

10

16

Not used. Fixed to On

5

0

00

0

No unrecoverable error

1

20

32

Unrecoverable error occurred

 

6

0

00

0

No auto-recoverable error

1

04

4

Auto-recoverable error occurred

 

7

0

00

0

Not used. Fixed to Off

• Paper sensor status (n = 4) is as follows:

Bit

Binary

Hex

Decimal

Status

0

0

00

0

Not used. Fixed to Off

1

1

02

2

Not used. Fixed to On

2,3

00

00

0

Paper near end sensor: paper adequate

11

0C

12

Paper near end sensor: paper near end

 

4

1

10

16

Not used. Fixed to On

5,6

00

00

0

Paper end sensor: paper present

11

60

96

Paper end sensor: paper not present

 

7

0

00

0

Not used. Fixed to Off

4-5

Page 41
Image 41
Samsung SRP275APG user manual Function, Bit Binary Hex Decimal Status