Coil Mapping
Coil Addresses
Coil Addresses
0
Digital Output 0
8
Digital Output 8
1
Digital Output 1
9
Digital Output 9
2
Digital Output 2
10
Digital Output 10
3
Digital Output 3
11
Digital Output 11
4
Digital Output 4
12
Digital Output 12
5
Digital Output 5
13
Digital Output 13
6
Digital Output 6
14
Digital Output 14
7
Digital Output 7
15
Digital Output 15
Examples:
For the following example, array[] contains [0,0,0,0,0,6,1,6,0,0,$55,$AA]
MBA= -1,12,array[]
Request to write digital outputs 15-0 to $55AA
MBA= ,6,0,$55AA
Request to write digital outputs 15-0 to $55AA
Note: writing digital outputs 15-0 to $55AA results in digital outputs 15-0 in descending order, being
0,1,0,1,0,1,0,1,1,0,1,0,1,0,1,0.
Packets:
The command MBA= ,6,0,$55AA results in the following packets being sent, when one RIO is the master,
and another RIO is the slave, communicating over handle A, port 502(Modbus).
Request
Response
Field Name
(hex)
Field Name
(hex)
Function 06
Function
06
Starting Address High
00
Starting Address High
00
Starting Address Low
00
Starting Address Low
00
Register Value High
55
Register Value High
55
Register Value Low
AA
Register Value Low
AA
30 Chapter 3 Communication
RIO-47xxx