Samsung STP-103PG User Manual - Page 21

Character width selection. See Table 1

Page 21 highlights

GS ! n [Name] [Format] [Range] [Description] Select character size ASCII GS ! n Hex 1D 21 n Decimal 29 33 n 0 ≤n ≤255 Where 1 ≤ Number of times of character height ≤2 1 ≤ Number of times of character width ≤2 Selects the character height using bits 0 to 1 and selects the character width using bits 4 to 7, as follows: Bit Off/On Hex Decimal Function 0 1 2 Character height selection. See Table 2. 3 4 5 Character width selection. See Table 1 6 7 Table 1 Character width Selection Hex Decimal Width 00 0 1 (normal) 10 16 2 (double-width) Table 2 Character height Selection Hex Decimal Height 00 0 1 (normal) 01 1 2 (double-height) GS * x y d1...d (x X y X 8) [Name] [Format] [Range] [Description] Define downloaded bit image ASCII GS * x y d1...d (x X y X 8) Hex 1D 2A x y d1...d (x X y X 8) Decimal 29 42 x y d1...d (x X y X 8) 1 ≤x ≤255 1 ≤y ≤48 where, x X y ≤1536 0 ≤d ≤255 Defines a downloaded bit image using the dots specified by x and y. ● x indicates the number of dots in the horizontal direction. ● y indicates the number of dots in the vertical direction. GS / m [Name] [Format] [Range] [Description] Print downloaded bit image ASCII GS / m Hex 1D 2F m Decimal 29 47 m 0 ≤m ≤3,48 ≤m ≤51 Prints downloaded bit image in mode m. The modes selectable by m as follows: m Mode Vertical Dot Density Horizontal Dot Density 0,48 Normal 200 DPI 200 DPI 1,49 Double-width 200 DPI 100 DPI 2,50 Double-height 100 DPI 200 DPI 3,51 Quadruple 100 DPI 100 DPI GS : [Name] [Format] [Description] Start or ends macro definition. ASCII GS : Hex 1D 3A Decimal 29 58 Starts or ends macro definition. GS B n [Name] [Format] [Range] [Description] Turn white/black reverse printing mode on/off ASCII GS B n Hex 1D 42 n Decimal 29 66 n 0 ≤n ≤255 Turns white/black reverse printing mode on or off. ● When the LSB of n is 0, white/black reverse printing mode is turned off. ● When the LSB of n is 1, white/black reverse printing mode is turned on. GS H n [Name] [Format] [Range] [Description] Select printing position of HRI characters ASCII ESC H n Hex 1D 48 n Decimal 29 72 n 0 ≤n ≤ 3 , 48 ≤n ≤51 Selects the printing position of HRI characters when printing bar code. 40 41

  • 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

40
GS ! n
[Name]
Select character size
[Format]
ASCII
GS
!
n
Hex
1D
21
n
Decimal
29
33
n
[Range]
0
n
255
Where 1
Number of times of character height
2
1
Number of times of character width
2
[Description]
Selects the character height using bits 0 to 1 and selects the
character width using bits 4 to 7, as follows:
Bit
Off/On
Hex
Decimal
Function
0
1
2
3
Character height selection. See Table 2.
4
5
6
7
Character width selection. See Table 1
Table 1
Character width Selection
Table 2
Character height Selection
Hex
Decimal
Width
Hex
Decimal
Height
00
0
1 (normal)
00
0
1 (normal)
10
16
2 (double-width)
01
1
2 (double-height)
GS
*
x y
d
1...
d
(
x
X
y
X 8)
[Name]
Define downloaded bit image
[Format]
ASCII
GS
*
x
y
d
1...
d
(
x
X
y
X 8)
Hex
1D
2A
x
y
d
1...
d
(
x
X
y
X 8)
Decimal
29
42
x
y
d
1...
d
(
x
X
y
X 8)
[Range]
1
x
255
1
y
48
where,
x
X
y
1536
0
d
255
[Description]
Defines a downloaded bit image using the dots specified by
x
and
y
.
x
indicates the number of dots in the horizontal direction.
y
indicates the number of dots in the vertical direction.
41
GS /
m
[Name]
Print downloaded bit image
[Format]
ASCII
GS
/
m
Hex
1D
2F
m
Decimal
29
47
m
[Range]
0
m
3,48
m
51
[Description]
Prints downloaded bit image in mode
m
.
The modes selectable by m as follows:
m
Mode
Vertical Dot Density
Horizontal Dot Density
0,48
Normal
200 DPI
200 DPI
1,49
Double-width
200 DPI
100 DPI
2,50
Double-height
100 DPI
200 DPI
3,51
Quadruple
100 DPI
100 DPI
GS :
[Name]
Start or ends macro definition.
[Format]
ASCII
GS
:
Hex
1D
3A
Decimal
29
58
[Description]
Starts or ends macro definition.
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]
Turns white/black reverse printing mode on or off.
When the LSB of n is 0, white/black reverse printing mode is
turned off.
When the LSB of n is 1, white/black reverse printing mode is
turned on.
GS H n
[Name]
Select printing position of HRI characters
[Format]
ASCII
ESC
H
n
Hex
1D
48
n
Decimal
29
72
n
[Range]
0
n
3 , 48
n
51
[Description]
Selects the printing position of HRI characters when printing
bar code.