Packets:
The command MBA= ,16,2,4,array[] results in the following packets being sent, when one RIO is the master,
and another RIO is the slave, and array[] contains [$40A0,$0000,$4040,$0000], communicating over handle
A, port 502(Modbus). MI is set to 0 on the slave.
Request
Response
32-Bit Floating Point
Field Name
(hex)
Field Name
(hex)
Function
10
Function
10
Starting Address Hi
0
Starting Address Hi
0
Starting Address Lo
2
Starting Address Lo
2
Quantity Outputs Hi
0
Quantity of Registers Hi
0
Quantity Outputs Lo
4
Quantity of Registers Lo
4
Byte Count
8
RegVal0 High
40
A0
0
RegVal0 Low
0
RegVal1 High
40
40
0
RegVal1 Low
0
The slave RIO will have analog output 1 set to 5V and analog output 2 set to 3V
Example 2
The command MBA= ,16,2,2,array[] results in the following packets being sent, when one RIO is the master,
and another RIO-47100 is the slave, and array[] contains [$FFFF,$9999,$6666,$3333], communicating over
handle A, port 502(Modbus). MI is set to 1 on the slave.
Request
Response
Counts
Field Name
(hex)
Field Name
(hex)
Function
10
Function
10
Starting Address Hi
0
Starting Address Hi
0
Starting Address Lo
2
Starting Address Lo
2
Quantity Outputs Hi
0
Quantity of Registers Hi
0
Quantity Outputs Lo
2
Quantity of Registers Lo
2
Byte Count
4
RegVal0 High
FF
RegVal0 Low
FF
RegVal1 High
99
RegVal1 Low
99
The slave RIO will have analog output 2 set to 5V and analog output 3 set to 3V
RIO-47xxx
Chapter 3 Communication
●
37
Содержание 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...