EasyManua.ls Logo

Star Micronics IFBD-HE07X - Page 21

Star Micronics IFBD-HE07X
89 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
IFBD-HE0708 BE07 Users Manual
3-12
Code <GS> ‘1’ <NUL>
Hexadecimal 1D 31 00
Function This command will get the printer’s status setting information.
This command is used by Star Micronics drivers and tools.
Procedures:
1) PC to printer
After connecting to TCP #22222, send the command, and wait for the response from the printer.
(2) Response printer to PC:
After the printer returns the status setting information using the next response data format, it disconnects the
connection.
Whendisconnected,theresponsefromthecomputercannotbeconrmed.
Format <GS> ‘1’ <NUL> n1 n2 [P1] [P2] [P3] ...[Pn]
Hexadecimal 1D 31 00 n1 n2 [P1] [P2] [P3]...[Pn]
Parametern1,n2:Parameter[P1]-[Pn]datalength(n1*256+n2)
Parameters Item Parameter Value Hexadecimal Contents
P1 Status Format ‘0’ 30 H StarASB+ExpandedStatus
‘1’ 31 H Only status
P2 NSB Setting ‘0’ 30 H Invalid
‘1’ 31 H Valid
ASB Setting ‘0’ 30 H Invalid
‘1’ 31 H Valid
Return Example: Example: STAR Line mode, NSB=Valid, ASB=Valid
1DH 31H 00H 00H 03H 30H 31H 31H
The following shows an example communication chart.
PC
SYN
SYN ACK
ACK
<GS> ‘1’ <NUL>
<GS> ‘1’ <NUL> n1 n2 [P1] [P2] [P3] ...[Pn] [Discovery Data]
FIN
FIN ACK
ACK
Printer (TCP #22222)
(1) TCP Connection Request
(2) Send Command
(3) Receive Request
(4) TCP Disconnection Respons
e
(1) Receive TCP Connection
(2) Return Status Setting Information
(3) Disconnect TCP
Note: In the drawing, some portions such as the <ACK> packet have been omitted.

Table of Contents

Related product manuals