Esc Gs Etx S N1 N2 - Star StarPRNT SM-L Series Command Specifications

Line thermal printer
Table of Contents

Advertisement

ESC GS ETX s n1 n2

[Name]
Send print-end counter, initialize
[Code]
ASCII
Hex.
Decimal
[Defined Area]
Spec. A: 0 ≤ s ≤ 4
Spec. B: 0 ≤ s ≤ 5
0 ≤ n1 ≤ 255, 0 ≤ n2 ≤ 255
[Function]
This command is run when reading from the reception buffer. Processes the print end counter
according to the s parameter.
s
Name
0
Print end counter reference
1
Print end counter update
2
Print end counter clear
Start document
3
n1, n2 = 0
End document
4
n1, n2 = 0
5
Data timeout setting
The data formats sent to the host when s = 0 or s =1 are shown below.
<Returned Data Formats>
[Code]
ASCII
Hexadecimal
Decimal
* Echoes back the specified contents from the host as is until ESC GS ETX s n1 n2, and then sends the print end
counter value and NUL.
When [Print end counter] is 1 byte in length, the initial value is 0x00.
When s = 1, increments by 1 each time the command is processed. After 0xFF, returns to 0x00.
There is one [Print end counter] in the printer that is unrelated to the n1, n2 values.
(There is no counter for the n1, n2 values.)
(Reference Information) Differences between the ETB command and this command
Item
Affect on ASB (ETB Status)
ASB occurrence
Affect of ASB valid/invalid setting
Affect of the ESC RS E n command
Status transmission destination in Ethernet
(When multi-sessions is valid)
* This print end counter and the ETB counter sent by the ETB command are separate.
They have no affect on each other.
Star PRNT Command Specifications
ESC GS ETX
s
n1
1B
1D
03
s
n1
27
30
3
s
n1
Function
Sends the current print end counter to the host.
(Does not wait for print end. Does not count up.)
Runs the following operations.
(1) Prints data in line buffer, if data exists.
(2) Waits until printing ends (motor stops).
(3) Updates the print end counter (increments by 1).
(4) Sends print end counter to host.
Returns the print end counter to its default value (zero clear).
(Does not wait for print end. Does not send the print end counter to the host.
(1) Sets data intake mode
(2) Initialize
(1) Prints data in line buffer, if data exists.
(2) Waits until printing ends (motor stops).
(3) Cancels data intake mode
n1=0: Initializes to the content of MSW. (n2=0)
n1=1: Data timeout setting
n2=0: Timeout disabled
Others: n2 = Data timeout time (units: seconds 1 to 255 seconds)
n1=2: Sends the current timeout setting to the host. (n2=0)
ESC
GS ETX
1B
1D
27
30
n2
n2
n2
s
n1
n2
[Print end counter]
03
s
n1
n2
[Print end counter]
3
s
n1
n2
[Print end counter]
ESC GS ETX s n1 n2
None
None
None
None
Send only when in the print
session (host) that is connected
2-85
NUL
00
0
ETB
Yes
Yes
Yes
Yes
Send ASB to all sessions
(hosts) that are connected

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents