Samsung STP-103PG User Manual - Page 16

DLE EOT n, DLE ENQ n, ESC SP n

Page 16 highlights

CR [Name] [Format] [Description] Print and carriage return. ASCII HT Hex 0D Decimal 13 When automatic line feed is enabled, this command functions the same as LF; when automatic line feed is disabled, this command is ignored. DLE EOT n [Name] [Format] [Range] [Description] Real-time status transmission. ASCII DLE EOT n HEX 10 04 n Decimal 16 4 n 1 ≤ n ≤ 4 Transmits the selected printer status specified by n in real time, according to the following parameters: n=1 : Transmit printer status. n=2 : Transmit off-line status. n=3 : Transmit error status. n=4 : transmit paper roll sensor status. n=1 : printers status. Bit Off/On Hex 0 Off 00 1 On 02 2 Off 00 3 Off 00 On 08 4 On 10 5-6 - - 7 Off 00 Decimal 0 2 0 0 8 16 0 Function Not used. Fixed to Off Not used. Fixed to On Not used. On-line Off-line Not used. Fixed to On Undefined Not used. Fixed to Off n=2 : Off-line status Bit Off/On Hex 0 Off 00 1 On 02 2 Off 00 On 04 3 Off 00 On 08 4 On 10 5 Off 00 6 Off 00 7 Off 00 Decimal 0 2 0 4 0 8 16 0 0 0 Function Not used. Fixed to off. Not used. Fixed to on. Cover is closed. Cover is open. Paper is not being fed by using the PAPER FEED button. Paper is being fed by the PAPER FEED button. Not used. Fixed to on. Not used. Fixed to off. Not used. Fixed to off. Not used. Fixed to off. 30 n=3 : Error status Bit Off/On Hex 0 Off 00 1 On 02 2 - - 3 Off 00 4 On 10 5 Off 00 6 Off 00 7 Off 00 decimal 0 2 0 16 0 0 0 Function Not used. Fixed to Off. Not used. Fixed to On. Undefined. Not used. Fixed to Off. Not used. Fixed to On. Not used. Fixed to Off. Not used. Fixed to Off. Not used. Fixed to Off. n=4 : Continuous paper sensor status Bit Off/On Hex Decimal Function 0 Off 00 0 Not used. Fixed to Off. 1 On 02 2 Not used. Fixed to On. 2,3 Off,Off 00 0 Paper roll near-end sensor is Off. On,On 0C 12 Paper roll near-end sensor is On. 4 On 10 16 Not used. Fixed to On. 5,6 Off 00 0 Paper roll sensor. Paper present. On 60 96 Paper roll end detected by paper roll sensor 7 Off 00 0 Not used. Fixed to Off. DLE ENQ n [Name] Real time request to printer [Format] ASCII DLE ENQ n HEX 10 05 n DECIMAL 16 5 n [Range] 1≤ n ≤2 [Description] Respond to a request from the host computer. n specifies the requests as follows n Request 1 Recover from an error and restart printing from the line where the error occurred 2 Recover from an error after clearing the receive and print buffers ESC SP n [Name] [Format] [Range] [Description] Set right-side character spacing ASCII ESC SP n Hex 1B Decimal 27 20 n 32 n 0 ≤ n ≤ 255 Sets the character spacing for the right side of the character to [n × horizontal or vertical motion units]. 31

  • 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

30
CR
[Name]
Print and carriage return.
[Format]
ASCII
HT
Hex
0D
Decimal
13
[Description]
When automatic line feed is enabled, this command functions the
same as
LF
; when automatic line feed is disabled, this command
is ignored.
DLE EOT n
[Name]
Real-time status transmission.
[Format]
ASCII
DLE
EOT
n
HEX
10
04
n
Decimal
16
4
n
[Range]
1
n
4
[Description]
Transmits the selected printer status specified by n in real time,
according to the following parameters:
n=1 : Transmit printer status.
n=2 : Transmit off-line status.
n=3 : Transmit error status.
n=4 : transmit paper roll sensor status.
n=1 : printers status.
Bit
Off/On
Hex
Decimal
Function
0
Off
00
0
Not used. Fixed to Off
1
On
02
2
Not used. Fixed to On
2
Off
00
0
Not used.
Off
00
0
On-line
3
On
08
8
Off-line
4
On
10
16
Not used. Fixed to On
5-6
-
-
-
Undefined
7
Off
00
0
Not used. Fixed to Off
n=2 : Off-line status
Bit
Off/On
Hex
Decimal
Function
0
Off
00
0
Not used. Fixed to off.
1
On
02
2
Not used. Fixed to on.
Off
00
0
Cover is closed.
2
On
04
4
Cover is open.
Off
00
0
Paper is not being fed by using the PAPER FEED button.
3
On
08
8
Paper is being fed by the PAPER FEED button.
4
On
10
16
Not used. Fixed to on.
5
Off
00
0
Not used. Fixed to off.
6
Off
00
0
Not used. Fixed to off.
7
Off
00
0
Not used. Fixed to off.
31
n=3 : Error status
Bit
Off/On
Hex
decimal
Function
0
Off
00
0
Not used. Fixed to Off.
1
On
02
2
Not used. Fixed to On.
2
-
-
-
Undefined.
3
Off
00
0
Not used. Fixed to Off.
4
On
10
16
Not used. Fixed to On.
5
Off
00
0
Not used. Fixed to Off.
6
Off
00
0
Not used. Fixed to Off.
7
Off
00
0
Not used. Fixed to Off.
n=4 : Continuous paper sensor status
Bit
Off/On
Hex
Decimal
Function
0
Off
00
0
Not used. Fixed to Off.
1
On
02
2
Not used. Fixed to On.
Off,Off
00
0
Paper roll near-end sensor is Off.
2,3
On,On
0C
12
Paper roll near-end sensor is On.
4
On
10
16
Not used. Fixed to On.
Off
00
0
Paper roll sensor. Paper present.
5,6
On
60
96
Paper roll end detected by paper roll sensor
7
Off
00
0
Not used. Fixed to Off.
DLE ENQ n
[Name]
Real time request to printer
[Format]
ASCII
DLE
ENQ
n
HEX
10
05
n
DECIMAL
16
5
n
[Range]
1
n
2
[Description]
Respond to a request from the host computer. n specifies the
requests as follows
n
Request
1
Recover from an error and restart printing from the line where the error occurred
2
Recover from an error after clearing the receive and print buffers
ESC SP n
[Name]
Set right-side character spacing
[Format]
ASCII
ESC
SP
n
Hex
1B
20
n
Decimal
27
32
n
[Range]
0
n
255
[Description]
Sets the character spacing for the right side of the character to
[n × horizontal or vertical motion units].