Elapsed time of a run condition

kandymann

Lifetime Supporting Member
Join Date
Jan 2011
Location
Virginia
Posts
168
Hello

Using RSLogix5000 v.19


I have an application where I would like to keep track of the elapsed time of a motor's run time. I know there is probably an add-on somewhere that can help me but I am unable to find one.

How do you all keep track of time of a particular condition?

I need to keep track of how long a certain motor's output has been enabled in order to schedule maintenance. My head tells me I need a GSV along with a bunch of counters, timers and move instructions. I am just unsure how to put it all together.

Any advice would be very beneficial!
Thanks
 
Depends how accurate you want this to be...

Could create a periodic task w/ a cycle of say, 1000ms,
use a retentive timer that times when the motor is 'on', use a preset of say 1 minute, increment counter(use a dint) when the timer elapses, reset timer, and display the counter value/60 for hours.
 
Thank you for the reply. The customer wants to simply see hours and minutes.

Whenever they want, they would like to be able to clear the elapsed timer.


Thank you for your input!

Much appreciated!
 
Reset the counter using some input.

Display Hours and Minutes - Counter Value/60 = hours, (counter Value % 60) = minutes

% is modulus
 
I did this recently with a timer with a Pre of 1/10th of a hour or 6 min or 360,000 ms. Every time it was done I would add .1 to a Counter with a Real data type. That gave the customer hours and tenths of a hour run time for the pump.
I put a button on the HMI so the operator could reset the counter after maintenance.
 
I'd do it this way

PUMP%20TIMER_zpsas2jppkj.jpg
 
Thank you all very much for the replies. I'm gonna work on this in the morning. If I have questions along the way, I will ask.

Thanks again for the help!
 
Just an observation, you have included a reset for T4:0 but the timer is given as a TON.

Yes. Without the reset, when the timer finishes it will stay at the done value until the rung goes false. B3:10/0 stays high for as long as the pump is running so you need to reset the timer when it goes done.
 

Similar Topics

So I'm assuming this is a rounding issue somewhere, but I don't know for sure so I figured someone else would. Made an AOI that just gives me a...
Replies
12
Views
3,970
Hi group, I am trying to figure out how to calculate time elapsed during a power failure. If the PLC is off for more than 30 minutes, when the...
Replies
9
Views
2,283
I have some code that is going to trigger calculations to happen either when "A" happens, or every 1 second. For the 1second trigger, I am...
Replies
3
Views
1,628
For better or worse the project I am working on has specified several equipment elapsed time meters that are supposed to have their values...
Replies
7
Views
2,107
I have not been able to get the elapsed time from a timer in a Siemens Simatic S7-1200 to display correctly on a Red Lion G315 HMI. I have...
Replies
18
Views
8,578
Back
Top Bottom