SATO SG112 ex Programming Reference Manual page 419

Hide thumbs Also See for SG112 ex:
Table of Contents

Advertisement

Return Status of Status5
The following is functionality provided by this communication protocol.
Data Transmission Format
1. All control commands like print data, status request, cancel request are specified by adding STX
(HEX 02H) and (HEX 03H).
* It is not necessary to add STX (HEX 02H) and ETX (HEX 03H) for setting data.
2. Item No. must be added to print data.
If there is no item No., or specifying illegal item No. will cause item No. error.
3. BCC must be added at the end of item end (<Z>) when BCC check functionality is set to
enabled. BCC is not necessary for obtaining information like status request etc.
Use example)
Print data
STX <A>
Status request
STX SOH
Item No. command
This command adds an item No. to every item of print data sent from host. Each item can be
distinguished by the item No. This command is needed to be included in the print data (<A>~<Z>)
when using status 5 reply protocol because high reliability functions provided by the status 5 reply
status identify items by the item No.
 
[Command]
ESC (HEX 1BH) + ID
 
[Format]
<ID>aaaaa
-
Parameter
a    [Item No.]
 
 
[Example]
<A>
<ID>00001
...
<Z>
<ID>00000
Print data
ENQ
00000
ETX
Valid range : 00000 to 99999 (necessary to put all 5 digits)
418
<Z> BCC ETX

Advertisement

Table of Contents
loading

Table of Contents