This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

check slave tcp/IP modbus device status
#4
You should use checkwrite and also send false when there's no error. This will send true when delta is more than 4 minutes, false otherwise:
Code:
grp.checkwrite('1/1/1', delta1 > 240)

Status is not updated because there's a response from the gateway. "Illegal data address" is not a connection error. There's a special error code 11 (Gateway Target Device Failed to Respond) that should have been used for this.
Reply


Messages In This Thread
RE: check slave tcp/IP modbus device status - by admin - 23.11.2020, 08:35

Forum Jump: