Data Record
QR and DR Commands
The RIO can provide a block of status information back to the host computer in a single Ethernet packet
using either the QR or DR commands. The QR command returns the Data Record as a single response. The
DR command causes the controller to send a periodic update of the Data Record out a dedicated UDP
Ethernet handle. The Data Record response packet contains binary data that is a snapshot of the controller’s
I/O status.
Since the Data Record response contains all information in binary format; the result of this command cannot
be displayed in a Galil terminal.
The QR and DR commands will return 4 bytes of header information, followed by an entire data record. A
data record map is provided below.
RIO Data Record
DATA TYPE
ITEM
UB 1
st
byte of header
UB 2
nd
byte of header
UB 3
rd
byte of header
UB 4
th
byte of header
UW Sample
number
UB Error
Code
UB General
Status
UW
Analog Out Channel 0 (counts)
UW
Analog Out Channel 1 (counts)
UW
Analog Out Channel 2 (counts)
UW
Analog Out Channel 3 (counts)
UW
Analog Out Channel 4 (counts)
UW
Analog Out Channel 5 (counts)
UW
Analog Out Channel 6 (counts)
UW
Analog Out Channel 7 (counts)
UW*
Analog In Channel 0 (counts)
UW*
Analog In Channel 1 (counts)
UW*
Analog In Channel 2 (counts)
UW*
Analog In Channel 3 (counts)
UW*
Analog In Channel 4 (counts)
UW*
Analog In Channel 5 (counts)
UW*
Analog In Channel 6 (counts)
UW*
Analog In Channel 7 (counts)
UW Output
State
UW Input
State
UL Pulse
Count
SL
ZC data – user configurable variable
SL
ZD data – user configurable variable
Note:
UB=Unsigned Byte, UW=Unsigned Word (2 bytes of “Little Endian”), SL=Signed Long Word
*These may be signed or unsigned words depending on the AQ setting on the RIO-4712x. For example, if
the bytes received from the data record packet for analog input 0 were 00 80, it could have the following
meaning, depending on AQ
RIO-47xxx
Chapter 3 Communication
●
39
Содержание RIO-47120
Страница 2: ......
Страница 93: ...RIO Dimensions RIO 471xx Units in centimeters RIO 47xxx Appendix 87...
Страница 94: ...RIO 472xx Units in millimeters 88 Appendix RIO 47xxx...
Страница 107: ...Internal 56 64 Zero Stack 53 RIO 47xxx Index 101...