It sounded to me like he has one timer, with parallel instructions enabling the timer, but he may very well be using two timers with the same address.are you using the same address (for example T4:0) for both of the timer instructions? ... if so, the FALSE rung is resetting the timer ...
I have a program running in an SLC 5/01. I have two rungs in the same ladder that can enable a timer. When either rung goes true, the timer EN goes green, but the timer never starts timing.
This is likely Gdsodrnk's issue, BUT, the "I have two rungs in the same ladder that can enable a timer" could also be interpreted as this:That is your problem. You are enabling it with one rung, and the other is resetting it. You should not use the same timer address on different rungs.
| Condition A
|---] [---] [----------(A)
|
| Condition B
|---] [---] [----------(B)
|
| A +-----+
|---] [---+--------| TON |
| | +-----+
| B |
|---] [---+
This is likely Gdsodrnk's issue, BUT, the "I have two rungs in the same ladder that can enable a timer" could also be interpreted as this:
| Condition A
|---] [---] [----------(A)
|
| Condition B
|---] [---] [----------(B)
|
| A +-----+
|---] [---+--------| TON |
| | +-----+
| B |
|---] [---+
-Eric
Wow! I think you may have covered just about every possible cause for a 'non-timing' timer!...Very true... But he also said the .EN goes green, but the timer doesn't time... That would not happen with your construct.
There could, as already stated, be a RES somewhere that doesn't know about the 2 enabling conditions, but I doubt it... Who RESet's TONs ??
Then again, he didn't say they were TONs, they could be TOFs, in which case that would explain why they don't time when enabled.
Or they could be RTOs....
Or something could be writing to the Timer's .ACC register.
Or the timer could get enabled, and then other logic executes a JMP/LBL to take it out of the scan.
Or the timer could get enabled, and then other logic stops calling the subroutine file it is in.
Lots of things to consider... My money is on the duplicate use of the same timer on more than one rung