ICP DAS USA I-7521 User Manual page 109

Table of Contents

Advertisement

Note:
(1) If the messages from the RS-232 device includes an End Character (refer to Sec.
5.3.12), set the "fit CrLf mode" for the RS-232 port before sending the $AAU
command. If the CrLf mode of the RS-232 port is 4, all messages in the buffer can
be read at one time, regardless of the End Character of the messages. If the "fit
CrLf mode" is set to either 0,1, 2 or 3, the messages will be read individually.
(2) If the End Character of the message from the RS-232 device is 0x0D, only CrLf
mode = 0 or CrLf mode = 4 can be set. Changing to other CrLf modes will corrupt
the integrity of the unread data in the buffer.
(3) Repeat this command several times to ensure that the buffer is empty (CrLf
mode=0/1/2/3).
(4) There are two mode for "$AAU" to read com port ring buffer.
First mode: Read all data at one time.
a. Assume barcode sends data three times. First is "789(CR)", second is "qwe(CR)", three is
"GHJ(CR)". "(CR)" is 0x0D.
b. The CrLf mode of Com1 is 4. Refer to Sec.5.3.12 about command "$AATN[CrLfmode]".
c. The CrLf mode of Com2 is 4.
d. PC sends "$01E1" to enable COM1 prefixed address function.
e. PC sends command "$01U" will read all data at one time.
The data is "!01789(CR)qwe(CR)GHJ(CR)".
PC
$01U
!01789(CR)qwe(CR)GHJ(CR)
Second mode: Read the data individually
a. Assume barcode sends data three times. First is "789(CR)", second is "qwe(CR)", three is
"GHJ(CR)". "(CR)" is 0x0D.
b. The CrLf mode of Com1 is 0. Refer to Sec.5.3.12 about command "$AATN[CrLfmode]".
c. The CrLf mode of Com2 is 4.
d. PC sends "$01E1" to enable COM1 prefixed address function.
e. PC sends command "$01U(CR)" will read one data one time.
First time, send "$01U"  Get the data "!01789(CR)"
Second time, send "$01U"  Get the data "!01qwe(CR)"
Third time, send "$01U"  Get the data "!01GHJ(CR)"
PC
$01U(CR)
I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User's Manual,Ver2.5 Aug.2015
I-7524
Com2
Com1
I-7524
Com2
Com1
789(CR)
qwe(CR)
789(CR)
qwe(CR)
GHJ(CR)
GHJ(CR)
109

Advertisement

Table of Contents
loading

This manual is also suitable for:

I-7522I-7522aI-7527I-7524I-7523

Table of Contents