Modbus connection status (mbproxy) - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Modbus connection status (mbproxy) (/showthread.php?tid=1335) |
Modbus connection status (mbproxy) - leonidas - 09.04.2018 Hello, I have this code for reading modbus values. It is in resident script ~20s. Now I need to make an alarm if there is no modbus connection and we are not getting new values. How can I do it? Code: mbproxy = require('mbproxy') Thanks. RE: Modbus connection status (mbproxy) - admin - 09.04.2018 mb:read... function will return nil when device cannot be reached. |