runtime

panel1

Member
Join Date
Nov 2004
Location
North Carolina
Posts
24
I need a better way to capture elapsed runtime on a motor? Im using a Micrologix 1200 with real time clock onboard. How can the RTC be used in this function. Thanks for your help. Im new to PLC's and this forum.


PS... how can I count past 32767 on my counter?
attached file is RSlogix 500
 
One way is to use multiple counters, 1 for each digit...ie counter 1 counts up to 10 then resets and puts 1 count in counter 2, counter 2 counts to 100 puts a 1 in counter 3 then resets. The numbers can then be manipulated to show whatever is needed.

I just realized you mentioned ML1200, the newer ones support 32 bit signed numbers which gives you 2,147,483,647. See if yours wont work with Long Integers.
 
Last edited:
Best way to capture run time depends on a few factors:

- End Usage
- Required accuracy
- Normal mode of operation and duty cycle.

A few methods I've seen or used are:

1, have a minute tick timer, each minute the motor is checked and if it is running, the counter is incremented. This is best for plants where the motor runs for extended time periods.
This could also be changed to single second increments. One note of caution, you should try to use a real time source for the tick, since the PLC timers aren't always accurate for this type of application.

2, Log start/Stop event to a SCADA PC. Then write a program to extract and summarise this information. I find this one works well if you also use Citect, since it is fairly easy to extract the information this way. The main problem you can have is PC crashing, but this can be reduced by creating a log buffer in your PLC.
 
Martin T. said:
panel1,

Try to do a search on hour meters. If you don't find something I have a program with 11.41 years worth.


I didn't have much luck with hour meters search. I would appreciate a copy of your program. Thanks
 
rsdoran said:
One way is to use multiple counters, 1 for each digit...ie counter 1 counts up to 10 then resets and puts 1 count in counter 2, counter 2 counts to 100 puts a 1 in counter 3 then resets. The numbers can then be manipulated to show whatever is needed.

I just realized you mentioned ML1200, the newer ones support 32 bit signed numbers which gives you 2,147,483,647. See if yours wont work with Long Integers.


Do you have an example on how to use Long Integers.. Im not clear.
 
Here is what I'm using. It running on a SLC5/04. Had to change the CPT to MUL's and ADD's. IF I messed this up someone will correct me.

Had to write this out, I couldn't transfer it from my laptop to my desk top, CD drive is giving me fits, need to replace the dang thing.
 
Thanks for the help

Thanks Ron and Martin for your help. I like the idea of not being limted to only 32767 .....however i have one more question concerning the F8 file. Will I be able to read this value same as an integer N7 file when using a Panelview interface. Thanks again for your help.
 
I like the idea of not being limted to only 32767

Assuming that you would display runtime in 1/10 hours, do you anticipate 37 years of continuous operation? I'm not following where the problem is with using a standard counter for the runtime. Don't read this as a challenge to the thought...I feel like I may be missing something.
 
(.)(.) said:


Assuming that you would display runtime in 1/10 hours, do you anticipate 37 years of continuous operation? I'm not following where the problem is with using a standard counter for the runtime. Don't read this as a challenge to the thought...I feel like I may be missing something.

Why not 37 years!! Acutal with a float it would be 114years if my math is right.
I don't expect a compressor to run that long but why program something that your going to have to change later on down the road
because it ran longer then expected.

I've got runtimes at 5 years plus, 32767 only last 3.74years.

Most hour meters run at 1/10 of an hour as well as most car show 1/10 of a mile. It's just giving you something your use to looking at.
 

Similar Topics

hello s7-400h and wincc are connected to each other via Ethernet. I need help on how to do time synchronization
Replies
0
Views
53
when i tried to go online, why its showing lie this
Replies
1
Views
88
I have been trying to add a button to an HMI Panelview version 5.1 for a couple days. Each time I download I get no data in my buttons, only...
Replies
0
Views
206
Hi there! I got a HMI terminal Panelview Plus 7 (PN-332439 / CAT 2711P-T12W21D8S) which work on a APP 8.00 i'm trying to modify with my FT View...
Replies
9
Views
681
Hello ladies and gents I’ve hit a road block on a project, it’s AB for preface this is a converting line including Winder tailsealer and...
Replies
4
Views
769
Back
Top Bottom