how to make an hour meter

sas11

Member
Join Date
Mar 2008
Location
Virginia
Posts
36
I am using directsoft5 software. Trying to make an hour meter,at first I tought about using a .1 timer setting it to close everyminute triggering a counter then the minute counter triggering an hour counter. I soon realized that the timing/counting limits would not allow me to have a continous counter/hour meter. Obviously by now you can tell i am just learning. Any suggestion , help?
Thanks
sas11
 
sas11,

Use a TMRA (accumulating timer) to count up to 2777 hours (9999999.9 seconds). Be sure to not use the next higher timer address because it uses it also.
 
If its for something like accumulating motor hours then 2777 hours is about three months - might not long enough for an application where a motor runs for years. If milldrones suggestion isn't long enough, then try using a 360 second retentive timer, and count tenths of an hour - you can count them with a float by adding .1 to the float evertime the timer reaches 360 seconds. The retentive timer retains its value in between "tenths" so that you don't loose the time in the overall accumulation. If your processor doesn't have floating point numbers then you can use a DINT or a double BCD, just remember to insert a decimal.
 
Thanks! got it going. On a similar problem what if i just need to count dump cycles, but I need to go up to 22,000 counts. I do not know if it makes a difference but i will be looking at the counts on an operator screen

Thanks
 
Concerning your last request let me note something - what does a 'counter' do?

1. It performs a one-shot of the input line
2. Based on the one shot it increments an accumulator location
3. It compares the accumulated value to a 'preset' to set a 'done' (or in AD case a contact with the same name as the counter).

But the standard AD counters only count to 9999. What are your options?

1. Use an UDC - it has three inputs, the Count Up, the Count down and the reset. Set the Count Up to your 'dump cycle' bit. Set the Count Down to an always off (SP1 NC), use the reset line to clear it when needed. Remember that the Preset, accumulator and counter assignment take up the next location also. But it can count up to 99999999

2. Just one-shot (PD) your 'dump cycle' signal. Use this one-shot to increment (INCB) a location. This may be a lot easier but you have to remember that the accumulated location is in binary not BCD.
 
Bernie thanks for the help. I have got the counter working? Counting up ok i do not want it to ever reset so i just put an open contact on the reset?. But on my Cmore I have set it up to display my counts. I am watching the counter in the program and it is counting fine, but as it counts my display sometimes skips for example my counter reads 30 my display reads 48. while typing this i cyled watching the display went from 51 to 64?? Any ideas?

Thanks a bunch
 
I had made a mistake on my tag unassigned BCD 32 instead of BCD int 32
Now that i am making headway/learning I cannot stop
Thanks to all
 
There is one problem I have with PLC generated hour meters on machines. That is if you are constantly going in and changing the program there is a very good chance that you can/will over write the valve when you do a download to the controller.

I think the only exception to this is some of the European controllers that have RETAIN PERSISTANT memory that is retained even over a program download.

Sometimes the KISS principle is best and throwing a non resettable hardware hour meter on the machine is the way to go.
 
there is a very good chance that you can/will over write the valve when you do a download to the controller.

That is also a problem with the Direct Logic PLCs if you don't save the ladder program to disk before you download it.

Tommy
 
On the AD PLCs if you only make a change to the logic then 'Save Program To PLC' (as opposed to 'Write Project To PLC') will only write the ladder and not send the data tables to the PLC.
 

Similar Topics

Hi team, I am setting up my first E200 overload unit. I came across parameter 205 StartsPerHour. The default setting is 2. I presume, the motor...
Replies
2
Views
469
Hi all , Good day to everyone. Can any one suggest how to program for hour meter In Rockwell L72 processors. I’m using power flux 527 in...
Replies
64
Views
19,790
Hello all, I have been tasked with moving a mechanical run hour meter of a pump motor to a panelview. I have a slc 5/04 and an allen bradley PV...
Replies
6
Views
2,655
I am trying to record the run times and on-load times of 3 pumps in TIA Portal as hour meters. I want to monitor these on my HMI. I'm not familiar...
Replies
10
Views
8,561
Hi, I am using GE Fanuc PLC to calculate the Flow rate in cubic meter per hour from pulses output. i.e. Pulses per second. But the method i used...
Replies
10
Views
12,649
Back
Top Bottom