![Galil Motion Control RIO-47 series
RIO-47100 Скачать руководство пользователя страница 38](http://html1.mh-extra.com/html/galil-motion-control/rio-47-series-rio-47100/rio-47-series-rio-47100_user-manual_558776038.webp)
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.
Data Record Map Key
Acronym
Meaning
UB
Unsigned byte
UW
Unsigned word
SL
Signed long
UL
Unsigned long
RIO Data Record
RIO-471xx/472xx 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
1
Analog In Channel 0 (counts)
UW
1
Analog In Channel 1 (counts)
UW
1
Analog In Channel 2 (counts)
UW
1
Analog In Channel 3 (counts)
UW
1
Analog In Channel 4 (counts)
UW
1
Analog In Channel 5 (counts)
UW
1
Analog In Channel 6 (counts)
UW
1
Analog In Channel 7 (counts)
UW
Output State
UW
Input State
UL
Pulse Count
SL
ZC data – user configurable variable
Chapter 3 Communication ▫ 38 RIO-47xxx Rev. 1.0r