AdvancedHMI Software
General Category => Support Questions => Topic started by: MEDALI1TN on July 24, 2018, 02:57:31 PM
-
Hello All,
I need to count the number of hours of operation of a machine.
I have a bit (0: off; 1: on), when this bit is set to 1: the counter starts counting and when this bit is set to 0: the counter is paused.
and it waits for the bit set to 1 to start counting again.
if it is possible to have two counters, one can do resert and the other without reset.
-
That is a great task for a PLC, not an HMI.
-
you're absolutely right, but I asked this question because I can't change or do anything on the plc program
-
Where are you going to store this value, database, text file, etc.? I would address that first. That is the tricky part.
-
I use AdvancedHMI + OpcDaCom + kepserverex + connection to database MySQL in order to read and store all tag that i need.
all these steps are OK for me.
I need to count the number of hours of operation of a machine.
-
Google is a wonderful thing...
https://stackoverflow.com/questions/3984831/create-a-simple-timer-to-count-seconds-minutes-and-hours (https://stackoverflow.com/questions/3984831/create-a-simple-timer-to-count-seconds-minutes-and-hours)
-
You might also check this topic:
https://www.advancedhmi.com/forum/index.php?topic=1295.0
Do note that Archie's odometer control is included in the AHMI solution.