01.05.2021, 23:34
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
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