[FONT="]TRIGGER.PRESET := 1000;[/FONT]
[FONT="]TRIGGER.TIMERENABLE := (TAG1=TAG2);[/FONT]
[FONT="]TOFR(TRIGGER);[/FONT]
[FONT="]ANOTHER_TAG := TRIGGER.DN[/FONT]
I want to compare two tags and when those tags become equal it should trigger another tag for 1 second
Ex: Tag1= set value, Tag2= live relay, Another tag= notification
Can anyone check the code if it is correct?
[FONT="]TRIGGER.TIMERENABLE := (TAG1=TAG2);[/FONT]
[FONT="]TOFR(TRIGGER);[/FONT]
[FONT="]ANOTHER_TAG := TRIGGER.DN[/FONT]
I want to compare two tags and when those tags become equal it should trigger another tag for 1 second
Ex: Tag1= set value, Tag2= live relay, Another tag= notification
Can anyone check the code if it is correct?