Script and relay

Hello Team,

Is it possible create a script that pings a relay connected to the I/O of the RUT241 every minute. If there are 10 consecutive non-responses, the script should activate the relay for a period of 1 minute, then deactivate it, and resume pinging after the relay is deactivated.

Regard

Hi GALATECH,

It should be possible by utilizing the I/O pins of RUT241.

Digital Input - Will read voltage level of relay to determine if it is on/off.
Digital Output - Will be used to power up the relay and turn it on/off.

Kindly refer to this link as a guide.

Most likely, sleep [duration] (i.e. sleep 60) will be used keep relay status for a minute.

Regards,

Hi Janmiguel,

thank for your reply !

Regards

This topic was automatically closed 40 hours after the last reply. New replies are no longer allowed.