← Timers

Run Hours

medium

Totals a machine's run time as hours, minutes, and seconds, retaining the total through stops, with a manual reset.

What it teaches

The real hour meter: run one retentive timer continuously and bank a second each time its accumulator passes a moving 1000 ms target, then cascade the rollovers — seconds into minutes, minutes into hours. Self-resetting timers lose a little time at every rollover on real controllers; the free-running meter with a moving target is the drift-free production pattern.

Parameters

TagDirectionTypeDefaultDescription
In_RunInputBOOL0Signal to track run time
In_ResetInputBOOL0Clears the accumulated total
Out_SecondsOutputDINT0Seconds portion of the total, 0-59
Out_MinutesOutputDINT0Minutes portion of the total, 0-59
Out_HoursOutputDINT0Whole hours of accumulated run time

Required behavior