04.09.2020, 03:18
Is there a way in lua to return true or false if a specific modbus device is online? say modbus device at address 3?
Many thanks
Many thanks
is modbus device online
|
04.09.2020, 03:18
Is there a way in lua to return true or false if a specific modbus device is online? say modbus device at address 3?
Many thanks
04.09.2020, 07:29
You can check it like this
Code: -- First parameter is slave ID, second is optional RTU port number (1, 2 or 3; default is 1)
------------------------------
Ctrl+F5
08.09.2020, 04:46
(04.09.2020, 07:29)Daniel. Wrote: You can check it like this Many Thanks, it works perfectly
13.09.2020, 15:08
(04.09.2020, 07:29)Daniel. Wrote: You can check it like thisHi As i can get the result in a group address?? Thanks in advance
13.09.2020, 17:57
(This post was last modified: 13.09.2020, 18:17 by Erwin van der Zwart.)
grp.checkwrite('1/1/1', checkrtu(1, 1))
or grp.checkwrite('1/1/1', checktcp('192.168.0.11', 502))
13.09.2020, 19:28
|
« Next Oldest | Next Newest »
|