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

Page 16
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

Image 16
Contents Warning - U.S Notice - CanadaIntroduction STP-102S / STP-102PTable of Contents Chapter 1. UnpackingPower cord Roll paperIndicator lights POWERgreenERRORred 1-3. Printer Part NamesChapter 2. Connecting the Cable 2-1. Connecting the AC adapter to your printer2-2. Connecting the printer to your Computer STP-102SThe printer must be turned off before installing the paper roll Chapter 3. Installing the Paper RollSTP-102P Chapter 4. Setting the DIP Switches DIP switch functionsChapter 5. Running the Self-test Chapter 6. Code TablePC850 Multilingual 1516PC860 Portuguese PC863 Canadian - French 1718PC865 Nordic 1920 Space PageChapter 7. Functions Commands2122 Chapter 8. Control Commands Command NotationControl Commands HT Explanation of TermsESC * m nL nH d1...dk ESC - nESC 3 n ESC @ESC J n ESC R nESC V n ESC \ nL nHESC c 5 n ESC d nGS ! n ESC nGS B n GS L nL nHGS W nL nH GS r t mAPPENDIX A CONNECTORS GS h n1 GS k m d1... dk NUL 2 GS k m n d1... dnJF01-000012 APPENDIX B Specification7.5V 2.2A