Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I capture elapsed run time? 1

Status
Not open for further replies.

db4452

Electrical
Dec 12, 2003
4
Hi all,
I am using RSlogix 500 programming software. I am using the Micrologix 1200 controller with a micro 300 panelview. Is there an easy way to program this so I can view elapsed run time of multiple motors and write this back to be displayed on the panelview. The controller I am using has a RTC onboard. I have no problem triggering events with the real time clock I just want to be able to use the above devices and not have to simply add an hour meter to my project. Can this be done. Thanks for your help
 
Replies continue below

Recommended for you

Should be simple to do using retentive timers and floating point timer accumalators.



 
Im not familiar with floating point timer accumulators. More information would be greatly appreciated. Thanks
 
I was wrong about the floating point accumalators. However,
a possible solution would be to use a retentive timer with a preset of one hour, then have the done bit index a counter and reset the timer, the counter value would represent hours of run time for your motors. If you require greater resolution than whole hours, you would have to set up a minute timer, that indexed a minute counter, which would then index an hour counter.

Ken
 
Thanks Ken,
I still have a bit of a problem. How do I get the Hours to read as an Integer so i can view them on the panel view display.
 
On every project I program hour run meters for every motor. Using the real time clock is not the way to do it.

The simple way, is use the RTC:0.sec/0 which is the LSB for seconds. Each time it changes produce a pulse. This is a reliable 1 second pulse. You could also use S:4 if you don't have an RTC. If S:4 > 10000, Set pulse bit, then S:4 = S:4-10000.

These methods produce a reliable 1 second pulse, which will not be effected by scan times.

When the motor is running, increment an integer. If it is greater than 3600, reset to 0 and increment the hours integer. Or just use a Long integer with accumulated seconds. Scale in the panelview. The panelview will scale integer to floating point.

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor