Samsung STP-103PG User Manual - Page 18

ESC 2, ESC 3 n, ESC = n, ESC ? n, ESC D, ESC E, ESC J

Page 18 highlights

ESC 2 [Name] [Format] [Description] Select 1/6-inch line spacing ASCII ESC 2 Hex 1B 32 Decimal 27 50 Selects 1/6-inch line spacing. ESC 3 n [Name] [Format] [Range] [Description] Set line spacing ASCII ESC 3 n Hex 1B 33 n Decimal 27 51 n Sets the line spacing to [n X (vertical or horizontal motion unit)] inches. 0 ≤ n ≤ 255 ESC = n [Name] [Format] [Range] [Description] Select peripheral device ASCII ESC = n Hex 1B 3D n Decimal 27 61 n 0 ≤ n ≤ 255 Selects the device to which the host computer sends data, using n as follows: Bit Off/On Hex Decimal 0 Off 00 0 On 01 1 1 - - - 2 - - - 3 - - - 4 - - - 5 - - - 6 - - - 7 - - - Function Printer disabled. Printer enabled. Undefined. Undefined. Undefined. Undefined. Undefined. Undefined. Undefined. ESC ? n [Name] [Format] [Range] [Description] Cancel user-defined characters ASCII ESC ? n Hex 1B 3F n Decimal 27 63 n 32 ≤n ≤126 Cancels user-defined characters. 34 ESC @ [Name] [Format] [Description] Initialize printer ASCII ESC @ Hex 1B 40 Decimal 27 64 Clears the data in the print buffer and resets the printer mode to the mode that was in effect when the power was turned on. ESC D n1...nk NUL [name] Set horizontal tab positions [Format] ASCII Hex ESC D n1...nk NUL 1B 44 n1...nk 00 [Range] Decimal 27 1 ≤n ≤255 68 n1...nk 0 0 ≤k ≤32 [Description] Sets horizontal tab positions. ● n specifies the column number for setting a horizontal tab position from the beginning of the line. ●k indicates the total number of horizontal tab positions to be set. ESC E n [Name] [Format] [Range] [Description] Turn emphasized mode on/off ASCII ESC E n Hex 1B 45 n Decimal 27 69 n 0 ≤n ≤255 Turns emphasized mode on or off. ● When the LSB of n is 0, emphasized mode is turned off. ● When the LSB of n is 1, emphasized mode is turned on. ESC J n [Name] [Format] [Range] [Description] Print and feed paper ASCII ESC J n Hex 1B 4A n Decimal 27 74 n 0 ≤n ≤255 Prints the data in the print buffer and feeds the paper [n X (vertical or horizontal motion unit)] inches. 35

  • 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

34
ESC 2
[Name]
Select 1/6-inch line spacing
[Format]
ASCII
ESC
2
Hex
1B
32
Decimal
27
50
[Description]
Selects 1/6-inch line spacing.
ESC 3 n
[Name]
Set line spacing
[Format]
ASCII
ESC
3
n
Hex
1B
33
n
Decimal
27
51
n
[Range]
Sets the line spacing to [
n
X (vertical or horizontal motion unit)]
inches.
[Description]
0
n
255
ESC = n
[Name]
Select peripheral device
[Format]
ASCII
ESC
=
n
Hex
1B
3D
n
Decimal
27
61
n
[Range]
0
n
255
[Description]
Selects the device to which the host computer sends data, using n
as follows:
Bit
Off/On
Hex
Decimal
Function
Off
00
0
Printer disabled.
0
On
01
1
Printer enabled.
1
-
-
-
Undefined.
2
-
-
-
Undefined.
3
-
-
-
Undefined.
4
-
-
-
Undefined.
5
-
-
-
Undefined.
6
-
-
-
Undefined.
7
-
-
-
Undefined.
ESC ? n
[Name]
Cancel user-defined characters
[Format]
ASCII
ESC
?
n
Hex
1B
3F
n
Decimal
27
63
n
[Range]
32
n
126
[Description]
Cancels user-defined characters.
35
ESC @
[Name]
Initialize printer
[Format]
ASCII
ESC
@
Hex
1B
40
Decimal
27
64
[Description]
Clears the data in the print buffer and resets the printer mode to
the mode that was in effect when the power was turned on.
ESC D
n1...nk
NUL
[name]
Set horizontal tab positions
[Format]
ASCII
ESC
D
n1...nk
NUL
Hex
1B
44
n1...nk
00
Decimal
27
68
n1...nk
0
[Range]
1
n
255
0
k
32
[Description]
Sets horizontal tab positions.
n
specifies the column number for setting a horizontal tab
position from the beginning of the line.
k
indicates the total number of horizontal tab positions to be set.
ESC E
n
[Name]
Turn emphasized mode on/off
[Format]
ASCII
ESC
E
n
Hex
1B
45
n
Decimal
27
69
n
[Range]
0
n
255
[Description]
Turns emphasized mode on or off.
When the LSB of n is 0, emphasized mode is turned off.
When the LSB of n is 1, emphasized mode is turned on.
ESC J
n
[Name]
Print and feed paper
[Format]
ASCII
ESC
J
n
Hex
1B
4A
n
Decimal
27
74
n
[Range]
0
n
255
[Description]
Prints the data in the print buffer and feeds the paper [
n
X
(vertical or horizontal motion unit)] inches.