n = 3 : Error status

 

Bit

 

 

Off/On

 

Hex

 

Decimal

 

 

Function

 

 

0

 

 

Off

 

00

 

0

 

 

Not used. Fixed to Off.

 

 

1

 

 

On

 

02

 

2

 

Not used. Fixed to On.

 

 

2

 

 

Off

 

00

 

0

 

No mechanical error.

 

 

 

 

 

On

 

04

 

4

 

Mechanical error occurred.

 

 

3

 

 

Off

 

00

 

0

 

No auto-cutter error.

 

 

 

 

On

 

08

 

8

 

 

Auto-cutter error occurs.

 

 

 

 

 

 

 

 

 

 

 

4

 

 

On

 

10

 

16

 

Not used. Fixed to On.

 

 

5

 

 

Off

 

00

 

0

 

No unrecoverable error.

 

 

 

 

 

On

 

20

 

32

 

Unrecoverable error occurs.

 

 

6

 

 

Off

 

00

 

0

 

Automatic recover error.

 

 

 

 

 

On

 

40

 

64

 

No automatic recover error.

 

 

7

 

 

Off

 

00

 

0

 

Not used. Fixed to Off.

 

Bit 2 : If these errors occur due to paper jams or the like, it is possible to recover by correcting the cause of the error and executing DLE ENQ 2. If an error due to a circuit failure (e.g. wire break) occurs, it is impossible to recover.

n = 4 : Continuous paper sensor status

 

Bit

 

 

Off/On

 

 

Hex

 

Decimal

 

Function

 

 

0

 

 

Off

 

 

00

 

0

 

Not used. Fixed to Off.

 

 

1

 

 

On

 

02

 

2

 

Not used. Fixed to On.

 

 

2, 3

 

 

Off

 

00

 

0

 

Paper near-end sensor. Paper adequate.

 

 

 

 

On

 

 

0C

 

12

 

Paper near-end is detected by the paper near-end

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

sensor.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4

 

 

On

 

10

 

16

 

Not used. Fixed to On.

 

 

5, 6

 

 

Off

 

00

 

0

 

Paper end sensor. Paper adequate.

 

 

 

 

 

On

 

60

 

96

 

Paper end is detected by the paper end sensor.

 

 

7

 

 

Off

 

00

 

0

 

Not used. Fixed to Off.

 

39

DLE ENQ n

[Name]

Real-time request to printer

 

[Format]

ASCII

DLE

ENQ

n

 

Hex

10

05

n

 

Decimal

16

5

n

[Range]

n = 2

 

 

 

[Description]

The printer responds to a request from the host specified

 

by n.

 

 

 

n = 2: Recovers from an error after clearing the receive and print buffers.

[Notes]

This command should not be used within the data sequence of another command that consists of two or more bytes. For example,

If you attempt to transmit ESC 3 n to the printer, but DTR (DSR for the host computer) goes to MARK before n is transmitted, and DLE ENQ 2 interrupts before n is received, the code <10>H for DLE ENQ 2 is processed as the code for ESC 3 <10>H.

This command n = 2 is valid only when a mechanical error or an auto- cutter error has occurred.

DLE ENQ 2 enables the printer to recover from an error after clearing the data in the receive buffer and the print buffer.

The printer retains the settings (by ESC !, ESC 3, etc.) in effect when the error occurred. The printer can be initialized completely by using this command and ESC @. This command is enabled only for errors that have the possibility of recovery

ESC SP n

[Name]

Set right-side character spacing

[Format]

ASCII

ESC

SP

n

 

Hex

1B

20

n

 

Decimal

27

32

n

[Range]

0 n 255

 

 

[Description]

Sets the character spacing for the right side of the

 

character to [ n x 0.122 mm {1/208 inches}] .

[Notes]

The right-side character spacing for double-width mode is

 

twice the normal value.

 

[Default]

n = 0

 

 

 

40

Page 24
Image 24
Samsung SRP-500 manual DLE ENQ n, ESC SP n, = 3 Error status, Name Real-time request to printer Format