Running hour program in Step 7

apolionman

Member
Join Date
Nov 2013
Location
Dubai
Posts
47
Hello Guys, Good day.

I am just wondering if you could help me how to program a "running hour" in step 7, for example, I have activated a light then I want to know how many seconds , minutes, or hours does the light has been activated. By the way I am using WinCC as a visual runtime of a light an the "running hour".

Hope to hear from you soon.
:nodi::nodi::nodi:
 
Use the built-in Timer MB (see the CPU specs for its address) and use the one second impulse to count up seconds and then divide by 60 as required to get minutes, hours, etc.
 
What I regularly do is run a self-resetting run-time pulse timer of 6.0 seconds.

When that timer is DN I count up a counter to 10 - 10 counts of 6 seconds = 1 minute.
When that counter is done I count a Minutes counter to 60 & reset the 1st counter.
When the Minutes counter is DN, count an Hours counter & reset the Minutes counter.
With this method you can cascade counters for thousands hours, million hours, and more (if you want to get ridiculous.)
 

Similar Topics

We have 6 pumps for which we calculated running hours from run feedback. We need to start these pumps based on demand in auto sequence for a day...
Replies
4
Views
1,554
I have a micrologix 1100 plc. I am having problems with the hr counter i am using to keep up with the machine running. The setup is as...
Replies
6
Views
5,025
I have no experience with Eaton HMIs. I downloaded the Galileo software and I am trying to get the file on a HMI (XV-102-H3-70twrl-10) to modify a...
Replies
5
Views
109
How to fix if appears code “$115 plc-restart running” on the screen OP17
Replies
5
Views
247
Here's what happened, Operator turned on the disconnect for an auger while it was still running to cut power. Auger DID in fact turn off, but the...
Replies
8
Views
335
Back
Top Bottom