7/30/2013 10:48 AM | |
Joined: 1/28/2009 Last visit: 9/10/2024 Posts: 6849 Rating: (1365) |
Hello, I can't figure out why you have problem with using TON in your SCL program.If you want the function re-usable , I suggest using a function block with multi-instance capability to use IEC timers inside.There is another method to implement so by using the clock of CPU.See here: help on SCLI hope you can tell us more about the CPU you are using plus shareing codes you have developed. Best regards Hamid Hosseini |
This contribution was helpful to1 thankful Users |
7/30/2013 12:22 PM | |
Posts: 4 Rating: (0) |
Hi Hamid, thanks for the quick reply. I am using CPU1212C AC/DC/RLY. Both of the attached files are called in OB1. As you can see in the file "timer.jpg" I have commented //Q=> and I am setting my flag "Data_control".timer_end := 1; in a function, where I look if the delay time has elapsed. If I don't do this the delay function doesn't work. thanks regards
Attachmentcode.zip (466 Downloads) |
Follow us on