how to retain values of bits when PLC lose the power then power up again

MaGoOoDy

Member
Join Date
Jan 2016
Location
Saudi Arabia
Posts
34
hi,

i have a lift station project which consists of 2 pumps working in Lead/lag every 7 days or duty switch cycle when one of the pumps have 200 working Hours more than the other one.

i have almost completed the project when i realized that how could i rely on my timers and counters when the PLC lost the power , how could be sure that the values/Accumulators retain their values when the PLC power up again, exactly i am using retentive timers, counters and some Math functions.

the second question, for calculating the 7 days duty cycle, i am just putting a retentive timer directly on the rung so if the PLC powered up it will keep timing regardless the mode of the HOA switch, is this a proper way to implement this 7 days duty cycle?
and i am wondering how others program the 7 days duty cycle ?



i am using AB 1100 PLC .
 
Did you purchase the Realtime Clock module for your Micrologix1100? If you have the module, you can use the realtime clock to set your cycle instead of depending on timers. That way you can make the change happen at 8:00 AM every Monday morning instead of every 604800 seconds.
 
hi,

i have a lift station project which consists of 2 pumps working in Lead/lag every 7 days or duty switch cycle when one of the pumps have 200 working Hours more than the other one.

i have almost completed the project when i realized that how could i rely on my timers and counters when the PLC lost the power , how could be sure that the values/Accumulators retain their values when the PLC power up again, exactly i am using retentive timers, counters and some Math functions.

the second question, for calculating the 7 days duty cycle, i am just putting a retentive timer directly on the rung so if the PLC powered up it will keep timing regardless the mode of the HOA switch, is this a proper way to implement this 7 days duty cycle?
and i am wondering how others program the 7 days duty cycle ?



i am using AB 1100 PLC .

I am thinking that you don't need to account for periods of time that the processor is off, since neither pump will be running anyway. On that basis, you probably want to changeover your pumps after 7 days of cumulative run time, not at a specific time each week. I'm also thinking you don't really need this to be that accurate, a few seconds, or even minutes, either way isn't going to make much difference to the pumps !!

Without the real-time clock module, you can generate a pulse every 168 hours (7 days), using the attached logic.

The timer will never time-out, so the internal storage of elapsed time will take care of any scan issues.

Another thing to consider when "balancing" the run-times of pumps is that you increase the chance of them requiring some maintenance, servicing, or repair at the same time. Whenever I've done this sort of thing, I have introduced an offset in the run-hours, by running one pump continually for xxxx hours, then kick-in the "balancing" software. In a perfect world, let's say the bearings on the pumps fail at 10,000 hours, you don't want both pumps failing at the same time.

2017-04-25_141735.jpg
 

Similar Topics

How to retain Values in CCW software? I am using CCW software and I can not find the Retain function in this software. Not even local or global...
Replies
2
Views
211
Hello everyone, I am currently having a problem retaining values that i changed. Lets say today i ran my programme and i put my max motor speed...
Replies
6
Views
2,168
In a data block, if the tag is ticked in the "Retain" column", is it meant to be retained after cycling the power to the PLC? I'm finding that...
Replies
2
Views
784
The PLC in question is a S7-1212C. The PLC will be transportable on a wheeled trolley and used wherever it's needed in the factory. I've been...
Replies
14
Views
1,396
I've got a bunch of tags in my code & there's a column called "Retain" (by default they were all un-ticked) - see pic. "LaserN mm" is a distance...
Replies
10
Views
1,723
Back
Top Bottom