9/13/2010 5:13 PM | |
Posts: 38 Rating:
|
Hi You need make a cascate of timer , or can use the OB interrupts and make a inside a control logic time. Nilton Junior |
9/13/2010 7:35 PM | |
Posts: 43 Rating:
|
Hi , take an impuls generator1 min. and an counter , so you can count every minut 1 pulse higher. now you can count up to 999 minutes . good luck. AttachmentTimer and counter.pdf (58 Downloads) |
Last edited by: logo4ever at: 9/13/2010 8:27 PM |
|
9/15/2010 8:41 AM | |
Posts: 71 Rating:
|
Hi logo4ever I've tried your code that you've sent, but it has not been working, Ive also tried it by S7 with FBD and there is no change on counter. |
9/15/2010 10:41 AM | |
Joined: 10/7/2005 Last visit: 6/7/2023 Posts: 2966 Rating:
|
Hello ercanbozi There seems to be a bit of a "glitch" in logo4ever's example logic which will make it"miss" most T1 minute expired events (S5 Timers are updated (counted down) by the Operating system asynchronously to the program scan, i.e. the counting down of the time value happens if and when needed during the scan). Anyway, try the logic below which will give you a one shot bit every 6hours(is this the functionalitythat you are after?) AT 1 // IF T1 expired =F 7.7 //set Flag CUC 1 // and increasehour count by 1 ANF 7.7 LKT 360.3 //1 hour timer preset SDT 1 LC 1 LKF +6 >=F RC 1 // reset hour counter every 6 hours = F x.y // oneshot bit every 6 hours I hope this helps |
Cheers |
|
Follow us on