SATO SG112 ex Programming Reference Manual page 395

Hide thumbs Also See for SG112 ex:
Table of Contents

Advertisement

[Coding Example 2]
Upload the contents in the internal buffer from the host
<A>
<IB>1
<IT>1,2,6
<Z>
 
Host
[Supplementary Explanation]
-
Do not use this command together with print data.
-
Data sending is valid only when bidirectional communication is available.
-
The allocation of the data port and sub port to the interface card 1 or 2 is according to the
setting in the interface mode.
-
Make sure to match the digit of sending and sending data. When the digit is not matched, the
following data may not be analyzed correctly.
-
Data will not be sent to the external peripherals when the cable of sub port is not connected.
[Receive data acquisition request command]
There is a similar command called "Receive data acquisition request."
The printer returns the data received from the status port to the data port by receiving this command.
(1) Command
SOH (01H) + RD
(2) Return Status
[STX]+ number of receive bytes + receive data + [ETX]
(3) Return status list
No.
1
Number of receive bytes
2
Received Data
Sub port
(1) Send <IR>
Data port
(3) Data sending
"123456CRLF"
This product
Item
External
peripherals
(2) Reading data
Contents
Number of receive data (0 to 10240)
Data received from the status port
394
Internal buffer
No.
Item name
Number
of digits
01
ITEM_CODE
6
02
0
03
0
.
.
.
.
.
.
.
.
.
16
0
Number of bytes
5
For number of
receive bytes
Data
123456
.
.
.

Advertisement

Table of Contents
loading

Table of Contents