GS B n

GS B n

[Name]

Turn white/black reverse printing mode on/off.

[Format]

ASCII

GS

B

n

 

Hex

1D

42

n

 

Decimal

29

66

n

[Range]

0 < n < 255

 

 

 

[Description]

Turn on or off white/black reverse printing mode.

[Notes]

When the LSB is 0, white/black reverse printing mode is turned on.

 

When the LSB is 1, white/black reverse printing mode is turned off.

GS L nL nH

[Name]

Set left margin.

 

 

 

[Format]

ASCII

GS

L

nL

nH

 

Hex

1D

4C

nL

nH

 

Decimal

29

76

nL

nH

[Range]

0

< nL < 255

 

 

 

 

 

0

< nH

<

255

 

 

 

 

[Description]

Sets the left margin using nL and nH in standard mode.

[Notes]

 

The left margin is set to (nL + nH x 256) dots from the beginning of the line.

 

 

This command is effective only at the beginning of a line.

 

 

 

 

 

Printable area

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Left margin

 

Printing area width

 

 

GS W nL nH

[Name]

Set printing area width.

 

 

 

 

 

 

 

 

 

[Format]

ASCII

GS

W

nL

nH

 

Hex

1D

4C

nL

nH

 

Decimal

29

87

 

nL

nH

[Range]

0 < nL < 255

 

 

 

 

 

 

 

 

 

 

 

0 < nH

<

255

 

 

 

 

 

 

 

 

 

 

[Description]

Set the printing area width to the area specified by nL and nH.

[Notes]

 

The printing area width is set to (nL + nH x 256) dots.

 

 

 

 

 

 

 

 

 

Printable area

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Left margin

 

 

 

Printing area width

 

 

 

GS L nL nH This command is effective only at the beginning of a line.

GS W nL nH The maximum possible setting for the print range is the same as the maximum setting are rounded down to the maximum setting.

GS ^ r t m

[Name]

Execute macro.

 

 

[Format]

ASCII

GS

^

rtm

 

Hex

1D

5E

rtm

 

Decimal

29

92

rtm

[Range]

0

< r < 255

 

 

 

[Description]

0

< t < 255

 

 

 

0

< m < 1

 

 

 

[Notes]

Executes a macro.

 

 

GS ^ r t m r specifies the number of times to execute the macro.

3132 t specifies the waiting time for exceuting the macro.

Manual background The waiting time is t x 100m sec for every macro execution.

Manual background When m = 0 : the macro executes r times continously width interval specified by t. Manual background When m = 1 : After waiting for the period specified by t, the PAPER OUT LED indicator blinks 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.

3132

Page 16
Image 16
Samsung STP-102S, STP-102P instruction manual GS B n, GS L nL nH, GS W nL nH, GS r t m, 3132