Samsung SRP-350 User Manual

Page 23

Advertising
background image

44

GS W nL nH

[Name]
[Format]


[Range]
[Description]

Set printing area width.
ASCII GS W nL nH
Hex 1D 57 nL nH
Decimal 29 87 nL nH
0 ≤nL ≤255, 0 ≤nH ≤255
Sets the printing area width to the area specified by nL and nH.
* The printing area width is set to
[(nL + nH ×256) ×horizontal motion unit] inches.

GS nL nH

[Name]
[Format]


[Range]
[Description]

Set relative vertical print position in page mode.
ASCII GS ₩ nL nH
Hex 1D 5C nL nH
Decimal 29 92 nL nH
0 ≤nL ≤255, 0 ≤nH ≤255
Sets the relative vertical print starting position from the current position in
page mode.
* This command sets the distance from the current position to
[(nL + nH ×256) ×vertical or horizontal motion unit] inches.

GS ^ r t m

[Name]
[Format]


[Range]

[Description]

Execute macro.
ASCII GS ^ r t m
Hex 1D 5E r t m
Decimal 29 94 r t m
0 ≤r ≤255, 0 ≤t ≤255
m = 0, 1
Executes a macro.
* r specifies the number of times to execute the macro.
* t specifies the waiting time for executing the macro.
* m specifies macro executing mode.
When the LSB of m = 0
The macro executes r times continuously at the interval specified by t.
When the LSB of m = 1 :
After waiting for the period specified by t, the PAPER OUT LED
indicators blink and the printer waits for the FEED button to be

pressed. After the button is pressed, the printer executes the macro
once. The printer repeats the operation r times.

45

GS a n

[Name]
[Format]


[Range]
[Description]

Enable/Disable Automatic Status Back.
ASCII GS a n
Hex 1D 61 n
Decimal 29 97 n
0 ≤n ≤255
Enables or disables ASB and specifies the status items to include, using n
as follows :

Bit

Off/On

Hex

Decimal

Status for ASB

Off

00

0

Drawer kick-out connector pin 3 status disabled.

0

On

01

1

Drawer kick-out connector pin 3 status enabled.

Off

00

0

On-line / Off-line status disabled.

1

On

02

2

On-line / Off-line status enabled.

Off

00

0

Error status disabled.

2

On

04

4

Error status enabled.

Off

00

0

Paper roll sensor status disabled.

3

On

08

8

Paper roll sensor status enabled.

4-7 - -

-

Undefined.

[Details]

* If any of the status items in the table above are enabled, the printer

transmits the status when this command is executed. The printer
automatically transmits the status whenever the enabled status item
changes. The disabled status items may change, in this case, because
each status transmission represents the current status.

* If all status items are disabled, the ASB function is also disabled.
* If the ASB is enabled as a default, the printer transmits the status when
the printer data reception and transmission is possible at the first time

from when the printer is turned on.

* The following four status bytes are transmitted without confirming

whether the host is ready to receive data. The four status bytes must be

consecutive, except for the XOFF code.

* Since this command is executed after the data is processed in the

receive buffer, there may be a time la between data reception and

status transmission.

* When the printer is disabled by ESC= (Select peripheral device), the

four status bytes are transmitted whenever the status changes.

* The status to be transmitted are as follows :

Advertising