SATO SG112 ex Programming Reference Manual page 416

Hide thumbs Also See for SG112 ex:
Table of Contents

Advertisement

Return Status of Status4
The purpose of this communication protocol is to return this product condition and reply as a status
to the host by receiving five types of request commands and print command.
Following described about the details of request commands and return status.
Status Request Command
This command returns the Job ID number of received data in printing, status of this product and the
number of remaining label to Process print to , the host. All "0" (HEX 30H) is returned for print quality
when the print is completed or when there is no received data. Space (HEX 20H) is returned for the
Job ID numbers when command for the designation of the job ID number <ID> is not specified.
Please do not send ENQ (Status request) while sending print data (STX <A> to <Z> ETX). Status
would not be returned properly or print would not be performed properly if ENQ is sent.
1. Command ENQ (HEX 05H)
2. Return status, Format
Number of
sent bytes
00000 01BH
3. Return status list
OFFLINE
STATE
ONLINE STATE
ENQ
STX
ID numbe r
4 bytes
1 byte
1 byte
2 bytes
05H
02H
The specified JOB ID will be set
by the JOB ID specify command.
STX
ID numbe r
1 byte
2 bytes
02H
NO ERROR
RIBBON NEAR END
BUFFER NEAR FULL
RIBBON NEAR END & BUFFER NEAR FULL
PRINT HALT (NO ERROR)
WAIT TO
NO ERROR
RECEIVE
RIBBON NEAR END
BUFFER NEAR FULL
RIBBON NEAR END & BUFFER NEAR FULL
PRINT HALT (NO ERROR)
PRINTING
NO ERROR
RIBBON NEAR END
BUFFER NEAR FULL
RIBBON NEAR END & BUFFER NEAR FULL
PRINT HALT (NO ERROR)
STANDBY
NO ERROR
(Waiting for
RIBBON NEAR END
dispenser/
BUFFER NEAR FULL
cutter)
RIBBON NEAR END & BUFFER NEAR FULL
Stat u s
Remaining
JOB name
print number
1 byte
16 bytes
6 bytes
000000 to 999999
Stat u s
Remaining
JOB name
print number
1 byte
16 bytes
6 bytes
Contents
415
ETX
LAN
1 byte
32 bytes
03H
The JOB name will be set
by the JOB name specify command.
ETX
Interfaces
1 byte
other than above
03H
27 bytes
ASCII
HEX
0
30
1
31
2
32
3
33
4
34
A
41
B
42
C
43
D
44
E
45
G
47
H
48
I
49
J
4A
K
4B
M
4D
N
4E
O
4F
P
50

Advertisement

Table of Contents
loading

Table of Contents