CHAPTER 4 Control commands list

GS ( E pL pH fn d1 d2 <Function 1>

[Format]

ASCII

GS

(

E

pL

pH

fn

d1

d2

 

Hex

1D

28

45

03

00

01

49

4E

 

Decimal

29

40

69

3

0

1

73

78

[Range]

(pL + pH x 256) = 3

(pL = 3, pH = 0)

 

 

 

 

 

 

 

fn = 1

 

 

 

 

 

 

 

 

 

d1 = 73

 

 

 

 

 

 

 

 

 

d2 = 78

 

 

 

 

 

 

 

 

[Description]

This command changes the printer into the user setting mode.

 

 

GS ( E pL pH fn d1 d2 d3

<Function 2>

 

 

 

 

 

 

 

[Format]

ASCII

GS

(

E

pL

pH

fn

d1

d2

d3

 

Hex

1D

28

45

04

00

02

4F

55

54

 

Decimal

29

40

69

4

0

2

79

85

84

[Range]

(pL + pH x 256) = 4 (pL = 4, pH = 0)

 

 

 

 

 

 

 

 

fn = 2

 

 

 

 

 

 

 

 

 

 

d1 = 79

 

 

 

 

 

 

 

 

 

 

d2 = 85

 

 

 

 

 

 

 

 

 

 

d3 = 84

 

 

 

 

 

 

 

 

 

[Description]

Ends the user setting mode, and the printer performs a software reset.

 

GS ( E pL pH fn [a1 b18...b11]...[ak nk8 nk1]

<Function 3>

[Format]

ASCII

GS

(

E

pL

pH

fn

[a1 b18...b11]...[ak nk8 nk1]

 

Hex

1D

28

45

pL

pH

03 [a1 b18...b11]...[ak nk8 nk1]

 

Decimal

29

40

69

pL

pH

3

[a1 b18...b11]...[ak nk8 nk1]

[Range]

a = 2, 8

 

 

 

 

 

 

 

[Default]

All Memory Switches are OFF (b = 48).

 

 

 

 

 

[Description]

Changes the Memory Switch specified by a to the value specified by b.

-When b = 48, the Memory Switch is set to OFF.

-When b = 49, the Memory Switch is set to ON.

-When b = 50, does not change the Memory Switch.

When a = 2, Memory Switch 2 is set as follows:

MSW

Setting value ( b)

 

Function

2-1 to 2-8

48

 

 

Reserved

• When a = 8, Memory Switch 8 is set as follows:

 

 

 

 

 

 

MSW

 

Setting value ( b)

 

 

Function

8-1 to 8-4

48

 

 

Reserved

 

 

48

 

 

The printer status is sent back as “the paper end” when

 

 

 

 

the rear cover is opened.

8-5

 

 

 

 

 

49

 

 

The printer status is sent back “the rear cover open”

 

 

 

 

 

 

 

 

when the rear cover is opened.

 

 

 

 

 

8-6

 

48

 

Reserved: Fixed to OFF (Don’t change the setting)

 

 

48

 

 

Printer BUSY is released when the remaining capacity of

 

 

 

 

the receive buffer goes to 640 bytes.

8-7

 

 

 

 

 

49

 

 

Printer BUSY is released when the remaining capacity of

 

 

 

 

 

 

 

 

the receive buffer goes to 522 bytes.

 

 

 

 

 

 

 

48

 

 

Printer rear cover open during operation: Error that

 

 

 

 

automatically recovers.

8-8

 

 

 

 

 

49

 

 

Printer rear cover open during operation: Error that can

 

 

 

 

 

 

 

 

possibly recover.

 

 

 

 

 

-Setting of MSW 8-5 affects the statuses as follows:

Basic ASB status (See “GS a” command)

Real-time status (See “DLE EOT” command)

4-21

Page 57
Image 57
Samsung SRP275APG user manual GS E pL pH fn d1 d2 Function, Setting value b Function