Allen Bradley SLC5/02 timer problems?

welshman1

Member
Join Date
Aug 2009
Location
Barry
Posts
15
Hello chaps i wonder if someone could have a look at the attached file and try to guide me in the right direction as to a problem I have with the functionality of the program. In Ladder 7 there are 3 timers that should shut the plant down after 40 hours. What is happening is the plant shuts down immediatley when the input that triggers the timers is activated. Any help would be greatly appreciated. Thanks in advance. Mike.
 
The thing about TOF timers, is that the DN bit will be true when the rung conditions are true, and the DN bit will stay true for the preset amount of time after the rung goes false.

You could get around the problem you face by switching to TON style timers.

Also, the timers are 1 hour timers, not forty hours. If you want a forty hour delay, then you should be using the counter done bits from C5:3, 4, and 5
 
Eventaully had the time to try changing timers and using the accumalator bits, but alas when the the reset is pressed the timers reset and the shutdown bit resets. Am i right in assuming that if I remove the timer resets in ladder 2 it will work? Thanks in advance Mike
 
please find attached the up to date program being used. The presets for the timers and accumalator have been changed for ease of testing. Thanks in advance. Mike
 
It looks to me like the shutdown rung dropped out because I:12.2 is greater than 310, which causes T4:4 to timeout, then C5:5 gets done.

Note that C5:5. with a preset of 1, and being driven by T4:4 is not a 40 hour timer, rather a 100 second timer.

I don't see any reason why pressing the reset button would cause the shutdown to occur. Of course, I am only able to see the logic, not the wiring of the machine. Are there multiple contacts on that button?
 
Last edited:
Morning, the reset pushbutton I:3 resets the timers and accumalators in Ladder 5 rungs 15 to 20. It then in turn resets the shutdown bit in ladder 7 rung 0. It doesnt actually cause the shutdown until the timer and accumalators had done their bit, but during the timing sequence they can be reset back to zero. So there could be the possibility that it would have counted 39hours then an operator would press reset and the timers would start again. The way it should operate is that until the TE's in Ladder 5 rungs 15,17 and 19 are operational again the timers should carry on until shutdown after 40 hours. The presets in the timers have been adjusted for testing purposes to alleviate the need for waiting the 40 hours. I appreciate your help very much. Thanks in advance Mike.
 
Okay, I understand better now.

In order to fix this, you can't just remove the resets from the reset oneshot rung or you'll be stuck in shutdown mode.

You could only reset those that are done (counters), or reset them all if a shutdown occurs. It depends on what you want. For example, suppose one counter gets done and shuts the system down, while another one is at 38 hours and still in an alarm condition. Do you want to be able to reset both of them, or do you want to only reset the one that is done, and then have another shutdown two hours later when the other fault timer/counter gets done?

Also, do you want to be able to reset a counter if the fault condition still exists?
 
Thanks for the response, the scenario we need is if any of the temperature elements in ladder 5, rungs 15-20 fail, after 40 hours if the fault is not rectified the plant would shutdown. If in that time the element is repaired and therefore not in alarm then we will need to be able to reset it and the plant not shutdown after the 40 hours. The alarm for the elements failing stay in alarm until the fault is rectified and in essence this is what we need for the timers and shutdown. Thanks in advance Mike
 
aLRIGHTY tHEN...

Here's what I think you need...

I believe you would want the counters to reset when the fault condition is no longer true?

So, I would add a rung below each affected CTU instruction, and remove the counter and timer reset instructions from the reset oneshot rung. The TON timers will automatically reset when the fault condition goes away, but the counters would be retentive unless you reset them seperately something like this:

000_000.jpg
 
Okay some progress but what is happening now is the counter does not count up. I wasnt sure whether it was anything to do with the RES instruction across the CTU instruction so i removed this and tried. The counter did increment but the timer did not reset. Any ideas?
 
You need the reset for the timer or you'll only get one count.

Did you use code like my example? Did you use the EN bit of the timer (not the DN bit!)?
 
I have copied the program as per your example using the EN bit. I thought the reset deletion would cause the timer not to reset, but I wanted to see if it was the reset causing the accumalator not to count up.
 
Just a thought, but is it possible to use one of the alarm bits for the same TE's to reset the counters instead of the timer EN bits?
 

Similar Topics

Hey Everyone, I need to Interface Ignition SCADA ethernet network to an Allen Bradley SLC5/04 Serial RS232 DF1. Has anyone out there found a low...
Replies
4
Views
964
I have a Allen Bradley SLC5/03 processor. I have a RTU connected to port 0. The RTU is configured as DF1 half duplex master, 9600 baud (these...
Replies
7
Views
3,396
Hi Guys, I've not used one of these PLCs for a while so am a little rusty, but a customer has one on an old machine that he needs help with. I...
Replies
6
Views
1,900
Hi. We have mashine with AB SLC5/04CPU PLC and Proface AGP3500. I need transfer data AB SLC5/04CPU PLC to TSX momentum PLC using ethernet...
Replies
0
Views
6,342
Iam having a problem with a program Iam trying to download to a new processor.I can connect with df1 download the program but then the comm port...
Replies
16
Views
3,183
Back
Top Bottom