Modbus Configuration Details
Modbus Settings :- Modbus RTU is implemented in this module.
Slave ID
Any 1 byte Integer Value
Slave id is mentioned on the case of DI8-O4 module. (default is 99)
Function Code
1,3,5,6,15
1 - To read input and output status. 3 - To read holding register.
5 - To write single output.
6 - To write holding register.
15- To write multiple output.
Offset
1
-
Register Addresses :-
DI Status Bits
10001 - 10008
Read Digital Inputs status from X1 to X7 respectively.
DO Status Bits
20000 - 20003
Read / Write Digital Output Status from Y0 to Y3 respectively.
Slave ID
43001
To read current or to set new slave ID.
Reset Module
43002
Write 1 on this address to restart DI8-O4.
Modbus Read Request Example
Read Input status
1
1
10001
8
Read Output Status
1
1
20000
4
Read Slave ID
1
3
43001
1
Modbus Write Request Example
Change State of Single Output
1
5
20000
1
0- LOW 1 - HIGH
Change State of Multiple Output
1
15
20000
4
0 - LOW 1 - HIGH
Change Slave ID
1
6
43001
1
Any Integer Value
Restart Module
1
6
43002
1
1
Last updated