SLC 5/01 Timer

Gdsodrnk

Member
Join Date
Jun 2012
Location
Baltimore
Posts
7
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.
 
What file contains this timer rung (is it being scanned)?

Is it possible that the rung in conditions go false for just long enough to keep the timer reset, but not long enough for it be be detected and displayed on screen?
 
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 ...
 
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 ...
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.

Any chance you're using a reset (RES) instruction with this timer? Is it ON?.. :oops:

🍻

-Eric
 
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.

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.

If the rest of the logic is sound, just make a parallel input branch on the first rung, of the conditions that enable the timer on the second rung. Delete the second rung after doing so.

This will enable the timer when either of the conditionals is true.
 
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.
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
 
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

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
 
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
Wow! I think you may have covered just about every possible cause for a 'non-timing' timer!... (y)

🍻

-Eric
 
Didn't I show the same insight :hurt: , lol

And i'll put the odds at 23% - who's keeping the book?
 
Last edited:
problem fixed

Thanks for all the replies. I ended up deleting all the permissives and adding them back in one at a time. One of them must have been cycling, but as stated in OkiePC's reply, it was to fast to be detected. I found the one that was resetting the timer, and made a programming change. Thanks for all the responses.

Gdsodrnk

"Gods Own Drunk"
 
The more that a PLC programmer knows about the underlying process, the less they are to bring up these problems. Ron has been great about trying to remove the 'smoke and mirrors' from the process. But it leaves the individual programmer the duty to 'think' about what they are doing.

I have come from a microprocessor programming background so little about the PLC setup has come as a surprise. But as fewer and fewer have had this background, it becomes even more difficult to explain the seeming 'quirks' of number storage and program scan activity.

I don't see a way around it. I encourage everyone to play with a low level microprocessor, programming in its actual assembly language environment, learning the low level processes, to gain an actual low level understanding and to BLOW AWAY the casual PLC newbie. You will quickly become 'THE PLC GURU' if you take a few weeks to gain a low level understanding.

That, and that alone, has been enough to set me apart as 'www.theplcguy.com'
 

Similar Topics

I want to start off by saying that this is not really good programming practice, but after looking through some PLC's that were causing equipment...
Replies
21
Views
4,751
Good day all. I have attached two ladder diagrams. What I'm attempting to do with the one named "lift timers" is to lift a basket out of an acid...
Replies
11
Views
3,745
Trying to control some outputs using AB SLC 150 1745-LP151, 1745-E103, and 1745-E105 Trying to control outputs using an RTF timer as I want the...
Replies
22
Views
6,186
____internal______backup _____________________one scan ____pulser________function_____________________pulse at ____50ms...
Replies
2
Views
3,475
Anybody out there know exactly where a timer's time base data is stored in memory for a SLC 500? Is it in the reserved portion of the timer...
Replies
5
Views
5,091
Back
Top Bottom