Samsung STP-103PG User Manual - Page 22

GS I n, GS W nL nH - stp 103

Page 22 highlights

n selects the printing position as follows: N Printing position 0,48 Not printed 1,49 Above bar code 2,50 Below bar code 3,51 Both above and below the bar code [Default] ● HRI indicates Human Readable interpretation. n = 0 GS I n [Name] [Format] [Range] [Description] Transmit printer ID ASCII ESC I n Hex 1D 49 n Decimal 29 73 n 1 ≤n ≤3 , 49 ≤n ≤51 Transmits the printer ID specified by n as follows: n Printer ID Specification ID(hexadecimal) 1,49 Printer model ID STP-103S / STP-103P 30 2,50 Type ID 02 3,51 ROM version ID Depends on ROM version 10 GS L nL nH [Name] [Format] [Range] [Description] Set left margin ASCII GS L nL nH Hex 1D 4C nL nH Decimal 29 76 nL nH 0 ≤ nL ≤255 0 ≤ nH ≤255 Sets the left margin using nL and nH. ● The left margin is set to [(nL + nH X 256) X (horizontal motion unit6)] inches. Printable area Left Margin Printing area width 42 GS P x y [Name] [Format] [Range] [Description] Set horizontal and vertical motion units ASCII GS P x y Hex 1D 50 x y Decimal 29 80 x y 0 ≤ x ≤ 255 0 ≤ y ≤ 255 Sets the horizontal and vertical motion units to 1/x inch, respectively. When x is set to 0, the default setting value is used. When y is set to 0, the default setting value is used. GS W nL nH [Name] Set printing area width [Format] ASCII GS W nL nH Hex 1D 57 nL nH Decimal 29 87 nL nH [Range] 0 ≤nL ≤255 0 ≤nH ≤255 [Description] Sets the printing area width to the area specified by nL and nH. ● The printing area width is set to [(nL + 256 X nH) X horizontal motion unit] inches. Printable area Left Margin Printing area width 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 0 ≤ m ≤ 1 Executes a macro. ● r specifies the number of times to execute the macro. ● t specifies the waiting time for executing the macro. The waiting time is t X 100 msec for every macro execution. ● m specifies macro executing mode. ● When the LSB of m = 0: The macro executes r times continuously at the interval specified by t. 43

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28

42
n selects the printing position as follows:
N
Printing position
0,48
Not printed
1,49
Above bar code
2,50
Below bar code
3,51
Both above and below the bar code
HRI indicates Human Readable interpretation.
[Default]
n = 0
GS I n
[Name]
Transmit printer ID
[Format]
ASCII
ESC
I
n
Hex
1D
49
n
Decimal
29
73
n
[Range]
1
n
3 , 49
n
51
[Description]
Transmits the printer ID specified by n as follows:
n
Printer ID
Specification
ID(hexadecimal)
1,49
Printer model ID
STP-103S / STP-103P
30
2,50
Type ID
02
3,51
ROM version ID
Depends on ROM version
10
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.
The left margin is set to [(
nL
+
nH
X 256) X (horizontal motion
unit6)] inches.
Printable area
Left Margin
Printing area width
43
GS P
x y
[Name]
Set horizontal and vertical motion units
[Format]
ASCII
GS
P
x
y
Hex
1D
50
x
y
Decimal
29
80
x
y
[Range]
0
x
255
0
y
255
[Description]
Sets the horizontal and vertical motion units to 1/
x
inch, respectively.
When
x
is set to 0, the default setting value is used.
When
y
is set to 0, the default setting value is used.
GS W nL nH
[Name]
Set printing area width
[Format]
ASCII
GS
W
nL
nH
Hex
1D
57
nL
nH
Decimal
29
87
nL
nH
[Range]
0
nL
255
0
nH
255
[Description]
Sets the printing area width to the area specified by nL and nH.
The printing area width is set to [(nL + 256 X nH) X horizontal
motion unit] inches.
Printable area
Left Margin
Printing area width
GS ^
r t m
[Name]
Execute macro
[Format]
ASCII
GS
^
r
t
m
Hex
1D
5E
r
t
m
Decimal
29
94
r
t
m
[Range]
0
r
255
0
t
255
0
m
1
[Description]
Executes a macro.
r
specifies the number of times to execute the macro.
t
specifies the waiting time for executing the macro.
The waiting time is
t
X 100 msec for every macro execution.
m
specifies macro executing mode.
When the LSB of
m
= 0:
The macro executes
r
times continuously at the interval
specified by
t
.