Hi,
I browsed through the programming guidance and found that TSET and ONTIMER can create a delay.
For my task, i need to check an input tag(TAG1) and activate my output tag(TAG2) for a delay of 5 seconds, could i do like the coding below?
Init:
Onchange “TAG1”, "GOTO Trigger"
Ontimer 1, "GOTO @DELAY()"
Trigger:
IF TAG1@ > 100 THEN
TAG2@ = 1
TSET 1,5
END
FUNCTION DELAY()
TAG2@ = 0
TSET 1,0
ENDFN
Thank you!