ijustdunnoaname
Member
I'm trying to set up an annual hour meter on a piece of equipment that will only reset at midnight on January 1.
(picture 1) I've set up a sub block taking 41004 [value of 14 (current year)] and subtracting register 41755 from it.
(picture 2) 41755 is just taking a snap shot of 41004 and subtracting zero from it so that I can compare any changes of 41004's value and execute accordingly.
I am then using both the greater than and the less than output to energize coil 01755, which in turn I'm using a normally closed 01755 contact to reset my accumulated value. So in theory the middle output (equal to) of my first sub block will always be energized except for one scan when the year changes. Which also means that both the greater than (top rung) and less than (bottom rung) will be de-energized except for one scan when the year changes.
However, it seems that my accumulated value has already reset itself (more than once). Is there a better way to achieve an annual reset? We're using Proworx 32.
(picture 1) I've set up a sub block taking 41004 [value of 14 (current year)] and subtracting register 41755 from it.
(picture 2) 41755 is just taking a snap shot of 41004 and subtracting zero from it so that I can compare any changes of 41004's value and execute accordingly.
I am then using both the greater than and the less than output to energize coil 01755, which in turn I'm using a normally closed 01755 contact to reset my accumulated value. So in theory the middle output (equal to) of my first sub block will always be energized except for one scan when the year changes. Which also means that both the greater than (top rung) and less than (bottom rung) will be de-energized except for one scan when the year changes.
However, it seems that my accumulated value has already reset itself (more than once). Is there a better way to achieve an annual reset? We're using Proworx 32.