This program/timer shown in the images below measures elapsed time in 1.0 second intervals and save it in an accumulator. This is equivalent to TelePACE T1 timer.
%S6 is System Status Bit that gives 1 second clock tick (bit toggles every 500 ms). By changing System Status Bit (e.g. %S4 10ms, %S5 100ms, %S7 1 minute) elapsed time can be measured in different time intervals.
When PIO_SP575_DI1.VALUE is ON accumulator seconds_Counter.VALUE increments by 1.0 second to the time of the limit.
2147483647 is time of limit (the largest value for a signed 32-bit integer in this case)
When the RESET INPUT (PIO_SP575_DI3.VALUE) is ON the accumulator is reset to zero.
When the seconds_Counter.VALUE < 2147483647 => output Q is OFF.
When the seconds_Counter.VALUE = 2147483647 => output Q is ON.
Output from DIV gives elapsed time in hours.
%S6 is System Status Bit that gives 1 second clock tick (bit toggles every 500 ms). By changing System Status Bit (e.g. %S4 10ms, %S5 100ms, %S7 1 minute) elapsed time can be measured in different time intervals.
When PIO_SP575_DI1.VALUE is ON accumulator seconds_Counter.VALUE increments by 1.0 second to the time of the limit.
2147483647 is time of limit (the largest value for a signed 32-bit integer in this case)
When the RESET INPUT (PIO_SP575_DI3.VALUE) is ON the accumulator is reset to zero.
When the seconds_Counter.VALUE < 2147483647 => output Q is OFF.
When the seconds_Counter.VALUE = 2147483647 => output Q is ON.
Output from DIV gives elapsed time in hours.