Is there a possibility to query a signal state, as soon as it becomes HIGH, a timer of e.g. 20s should expire. After this time, the signal should be switched off.
However, if the signal or another air output is activated again, the time should start counting from zero again.
I have tried this in a pc.program:
SOUT 2009 = 9 OR 10 OR 11 OR 12
STIM 3010 = 2009, 20
IF SIG (3010) THEN
the time is not reset if one of the signals mentioned is switched HIGH again in the meantime.