207
12.6. Program address for UIO20 Modbus device
There is a separate Write address button to program address for UIO20 device. Press
programming button and click save afterwards. Programming LED will turn off after successful
write operation.
Once script is added, you can add the code in the Script Editor. There are lots of predefined
code blocks in the Helpers.
12.7. Modbus Slave examples
Add the following code to Common functions
1.
-- modbus proxy
2.
mbproxy ={
3.
-- supported function list
4.
functions ={
5.
'readdo',
6.
'readcoils',
7.
'readdi',
8.
'readdiscreteinputs',
9.
'readao',
10.
'readregisters',
11.
'readai',
12.
'readinputregisters',