Hour meter programming in Rockwell

I tried this program without reset only to see the hour meters . Please find my attachment


Why do you ONS both the rising and falling edge of the Seconds ? There is no need to... just XIC seconds.0 and CTU to 360 instead of 180. The counter has a built-in ONS
 
he counter has a built-in ONS


The CTU's built-in ONS gets reset with the CTU reset, which means it will think it sees another rising edge of the RTC seconds bit on the next scan. So instead of reset it is probably better to set .ACC, to 0, or Reset the CTU and then Latch the .CU.
 
I always use Mike Lamond's method, and have for years.
Every program I write, I start by dropping in a Utility Routine to generate a global, base one second pulse off of the WallClockTime. In each separate Task, I also one-shot that to a task-local one second time pulse.


In Utility, I also generate a string version of the time/date (05/20/20 - 15:18), an integer for Day of the Week, and convert the WallClockTime into UTC Time (based in seconds)


What is Mike Lamond's method?
 

Similar Topics

B
Does anybody know a way to program in ti505 logic for a hour meter on a pump? We are doing studys on pumps (how long they run for PM's) I was just...
Replies
1
Views
3,959
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
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