On/Off percentage

TheWaterboy

Lifetime Supporting Member + Moderator
Join Date
May 2006
Location
-27.9679796,153.419016
Posts
1,905
Disclaimer: This might be simple - about to have my first grandkid any day now so I'm up late with my daughter and VERY sleepy during the day so my brain is lagging way behind its usual substandard.

Working with a PLC-5. Trying to calc Duty percentage of a pump. Looking for short cycling, not looking for a runtime.

The math is easy: duty% = [Running time] / [cycle time]
Haven't had to do this particular thing before and it caught me that this isn't dead simple, but again, substandard brain.

I haven't tried an OSR yet, I will while I wait for an easier answer, but how else can you time a single bit from true transition to true transition to get the entire cycle time?
 
For the run time use a tl timer while it is running and copy the accumulated value when the timer is deenergized. Perhaps a retentive timer.

For the total time it depends. Is the process cyclical or is it 24/7 Like a water treatment plant.?
 
That would catch the running time, But I need to get the cycle time (On time + Off time)

Its 24x7 as needed, no regularity to it. I also have to have 2 time scales depending on which process it being done. One takes minutes, the other takes
 
So you want time between true transitions. You are dead on using a OSR.
Rung 1 - OSR Logic
Rung 2 - OSR bit true = MOVE Run Timer.ACC to Storage to capture data
Rung 3 - OSR bit false = Run Timer

This will capture time between OSR Pulse. When OSR transitions to true it will capture data. The next rung will reset timer. The next Scan Cycle Timer starts accumulating next cycle time.


P.S. Congratulations!! May it be healthy and happy.
 
Rung 1- XIC Pulse trigger - ONS - OTL (Latch Bit)
Rung 2- XIC Latch Bit - MOVE Cycle Time.ACC to Storage to capture data
Rung 3- XIO Latch Bit run TON Cycle Timer
Rung 4- XIC Latch Bit - OTU Latch Bit

This will keep latch bit true for 2 rungs to Move Data and reset Timer.
 
That should do it. I got the idea. I kept thinking bits didn't resolve until the end of the ladder (like I/O) I know better so thats my problem today.
Man I need a nap !

Thanks for the help.
 
That should do it. I got the idea. I kept thinking bits didn't resolve until the end of the ladder (like I/O) I know better so thats my problem today.
Man I need a nap !

Thanks for the help.

Don't be afraid to. Yea, there are times you have to push through, but I've done it. 19 hours into a job I told them I'm going to take a nap. Wake me in an hour. No point to continue if my brain is useless.
 

Similar Topics

Hi, I have a 1500 that controls a station with diferents warehouses, but i also have a 1200 that controls one of those warehouses, i have been...
Replies
9
Views
208
A couple days ago I accidentally toggled an alwasyoff bit. The issue is it was set up as a single OTU on a rung, nothing else, and used as XICs...
Replies
3
Views
194
Hi everyone, This is my first time posting, so please forgive any omissions or mistakes. I am attempting to control the velocity of a stepper...
Replies
18
Views
741
How i Can connect Delta plc, with Beckoff remote IO cards?
Replies
1
Views
55
Good day everyone. if you have a logic for 3 pumps (lead/lag/off), would you please email it to me? I really appreciate it!
Replies
7
Views
157
Back
Top Bottom