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.

grp.checkwrite() with delay
#1
is there such a function grp.checkwrite() after a specified delay time has expired?

I have some inputs and outputs for the associated inputs
I need to flag an error if after i turn the on an output, and after a delay of 30 sec or less depending on each input,  if the input dose not activate.

What is the best way to achieve this?
Currently i have event script on the output to check the state of the input but it is happening to fast and the input hasn't had time to change before i read it.
i can use os.sleep(), but i need this to be a blocking read, and it is only a short delay just long enough to allow time for the input to change before i read it again.

Or is it possible to in the output/s event script to wait until '1/1/12' (input address) changes state before continuing with the event script? 

Many Thanks
Reply


Messages In This Thread
grp.checkwrite() with delay - by benanderson_475 - 01.05.2021, 23:34
RE: grp.checkwrite() with delay - by Daniel - 04.05.2021, 07:23
RE: grp.checkwrite() with delay - by Daniel - 04.05.2021, 09:40

Forum Jump: