AdvancedHMI Software

General Category => Support Questions => Topic started by: MEDALI1TN on July 24, 2018, 02:57:31 PM

Title: I need to count the number of hours of operation of a machine
Post 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.
Title: Re: I need to count the number of hours of operation of a machine
Post by: Phrog30 on July 24, 2018, 07:30:49 PM
That is a great task for a PLC, not an HMI.
Title: Re: I need to count the number of hours of operation of a machine
Post by: MEDALI1TN on July 25, 2018, 03:17:38 AM
you're absolutely right, but I asked this question because I can't change or do anything on the plc program
Title: Re: I need to count the number of hours of operation of a machine
Post by: Phrog30 on July 25, 2018, 06:23:49 AM
Where are you going to store this value, database, text file, etc.? I would address that first. That is the tricky part.
Title: Re: I need to count the number of hours of operation of a machine
Post by: MEDALI1TN on July 25, 2018, 09:05:29 AM
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.
Title: Re: I need to count the number of hours of operation of a machine
Post by: Phrog30 on July 25, 2018, 09:19:32 AM
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)
Title: Re: I need to count the number of hours of operation of a machine
Post by: Godra on July 25, 2018, 06:15:06 PM
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.