Packets:
The command MBA=,4,2,4,array[] results in the following packets being sent, when one RIO is the master,
and another RIO-47100 is the slave, communicating over handle A, port 502(Modbus). When MI is set to 0
the response is given as volts in 32-bit Floating Point. When MI is set to 1 the response is given as counts in
16-bit decimal notation. Assume analog outputs in ascending order from 0-7 are: .5, 1, 1.5, 2, 2.5, 3, 3.5, 4
Slave MI0 Slave MI1
Request Response
Response
32-bit Floating Point
Real Value 16-bit decimal
Real Value
Field Name
(hex)
Field Name
(hex)
(volts)
Field Name
(hex)
(counts)
Function
04
Function
04
Function
04
Starting Address High
00
Byte Count
08
Byte Count
08
Starting Address Low
02
RegVal2 High
3F
1.0000
RegVal2 High
4C
19661
Quantity of Registers High 00
80
RegVal2 Low
CD
Quantity of Registers Low 04
00
RegVal3 High
66
26214
RegVal2 Low
00
RegVal3 Low
66
RegVal3 High
3F
1.5000
RegVal4 High
80
32768
C0
RegVal4 Low
00
00
RegVal5 High
99
39321
RegVal3 Low
00
RegVal5 Low
99
With the slave MI set to 0, the master RIO’s arrays will look like this:
array[0]=16256
array[1]=0
array[2]=16320
array[3]=0
With the slave MI set to 1, the master RIO’s arrays will look like this:
array[0]=19661
array[1]=26214
array[2]=32768
array[3]=39321
26 Chapter 3 Communication
RIO-47xxx
Содержание 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...