(09.10.2017, 14:06)sorin Wrote: Hi,
I need a resident script that ping an IP , and if does not receive any reply to open a actuator.
Please help
Thanks a lot!
I have tried using this script to ping an Iphone but I always get back the same result regardless of it's presence in the network or not. The Iphone have a static IP.
I have tried using this script to ping an Iphone but I always get back the same result regardless of it's presence in the network or not. The Iphone have a static IP.
I have an IPAD an I have tried to ping from windows. If it is looked, doesn't reply to ping, if I unlocked start to reply.
Maybe it is a issue of replying to ping of the Iphone.
This will never work as the iOS device is not reachable when lock is enabled, also for power saving the wifi is not always available.
There is a script from admin on this forum that seeks the iOS devices by multiple trigger on a port, but this script is also facing issues with unreachable state of iOS devices.
Maybe IFTTT with geofencing can give you more trustfull input for your task..
Hi,
I use LM as supervisor for a Wago PLC in modbus TCP-IP.
I would like to establish a modbus watchdog connection as security. From LM side what do you suggest?
Thanks
functioncheckrtu(slave)
localres = db:getone('SELECT active FROM modbus_devices WHERE proto="rtu" AND slave=?', slave)
returntoboolean(res)
endfunctionchecktcp(ip, port)
localsettings, ressettings = tostring(ip) .. ':' .. tostring(port) res = db:getone('SELECT active FROM modbus_devices WHERE proto="tcp" AND settings=?', settings)
returntoboolean(res)
end
07.11.2019, 18:56 (This post was last modified: 08.11.2019, 06:47 by PassivPluss.)
I have two json modbus profiles on a LM5 lite. One rtu 9600 baud and one tcp. Tcp working great but rtu sometimes failing. (Red in modbus window)
I am using pts cable. About 30 meters.
Has the LM built in eol resistors?
Will try to put in this tommorow and not sure if i have to have in both ends.
Does the new rc of firmware have improvements in modbus rtu?
And the scripts above to check TCP and RTU status. Can they make the RTU connection go bad.
08.11.2019, 09:24 (This post was last modified: 08.11.2019, 09:27 by PassivPluss.)
Yes. I have error/red color in modbus tab from time to tine. But not sure why. I think it is better when the script is not running but only had a day to test.
Gnd connected. But slow connection with modbus40 from nibe. 3 sek read delay and 3 sek timeout in script
Should I have a resistor at the eol with the equipment and by the LM? Or just in end?
I can see that the error reason is operation timed out and there have been no change when disabling script.
Do you have a script running together with the mapper sharing the same RS485 port? This will cause a lot of errors. If you want to use script then you should switch to modbus proxy: https://forum.logicmachine.net/showthrea...53#pid1953
Which LM model do you have? Some of them have EOL on-board though it's higher than 120ohm. EOL should be placed on both line ends.
08.11.2019, 09:45 (This post was last modified: 08.11.2019, 10:04 by PassivPluss.)
Lm5 lite
No script. I had the ip ping from the posts on this page pinging ip modbut earlier but no difference in disabling it
Lm5Lp2
Should i use resistors in both ends or just at the slave?
Ok. Then I will connect the 150 ohm resistors at both ends.
The gnd is connected at both ends. To increase mm2 i doubled the pair. Is this ok? I thought it didnt go any data on this? Or can that make problem?