EasyManua.ls Logo

Embedded Systems LogiMachine5 Power - 12.6. Program Address for UIO20 Modbus Device; 12.7. Modbus Slave Examples

Embedded Systems LogiMachine5 Power
254 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
181
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',

Table of Contents