Checking a 4 line ST code. (For TOFR Timer)

karthhic

Member
Join Date
Jun 2016
Location
Tampere
Posts
3
[FONT=&quot]TRIGGER.PRESET := 1000;[/FONT]
[FONT=&quot]TRIGGER.TIMERENABLE := (TAG1=TAG2);[/FONT]
[FONT=&quot]TOFR(TRIGGER);[/FONT]
[FONT=&quot]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? 🤞🏻
 

Similar Topics

Hello, can someone share/explain How to check comms between PC and PLC via TeamViewer? TIA
Replies
14
Views
379
Hello, I have a question on an OCR application I am doing. I am reading in 16 characters that come from a camera into the plc in its input words...
Replies
4
Views
1,262
I have some questions about MSG Type checking Does a MSG instruction care if the name of the UDT type are different on each PLC as long as...
Replies
6
Views
3,373
I just finished making my 3rd service call to a large machine shop, troubleshooting PLC issues. I can see that none of the PLC or HMI programs are...
Replies
11
Views
3,039
All of these processes are taking all day to run. When doing the same operation in a stand alone intouch application it only take a few minutes to...
Replies
0
Views
1,600
Back
Top Bottom