SATO SG112 ex Programming Reference Manual page 392

Hide thumbs Also See for SG112 ex:
Table of Contents

Advertisement

[Coding Example 2]
Store the received 6 byte data to the internal buffer (Start code and terminate code are omitted)
<A>
<IR>1,6,,,,1000,ITEM _ CODE
<Z>
 
Host
[Coding Example 3]
Store the data by specifying the import start position and terminate code (Timeout time and data
item name are omitted)
<A>
<IR>1,32,1,2,*CR
<Z>
 
Host
* Use this method when there are data that you wish to discard at before and after the received data.
* Either of the import start position and terminate code specification can be omitted. Also, both can be specified at the same
time.
* Specify the maximum 32 digits for the acquired digit when digits to be received is unknown.
[Supplementary Explanation]
-
The stored data is cleared when this product is powered off.
-
Do not use this command together with the print data.
-
The data that exceeds the specified digit are not stored in the internal buffer.
-
The allocation of the data port and sub port is according to the setting in the interface mode.
-
Enable the setting of the sub port on the LCD in advance to be able to acquire output data of
external peripheral with this command.
(2) Received data "ABCDEF"
Sub port
(1) Send <IR>
Data port
This product
(2) Received data "*0123456*CR"
Sub port
(1) Send <IR>
Data port
This product
External
peripherals
No.
01
(3) Store the data
02
03
.
.
.
16
External
peripherals
No.
01
(3) Store the data
02
03
.
.
.
16
Received Data
*
0
1
2
Cut
391
Internal buffer
Item name
Number
Data
of digits
ITEM_CODE
6
ABCDEF
0
0
.
.
.
.
.
.
0
Internal buffer
Item name
Number
Data
of digits
7
0123456
0
0
.
.
.
.
.
.
0
3
4
5
6
*
C
Store
Cut
.
.
.
.
.
.
R

Advertisement

Table of Contents
loading

Table of Contents