We want to add the logic to start a timer, which we will configure to run for 5 seconds. When the timer times out, we want to increment the integer.
There are several timers to choose from.
“TON” is a “Timer On-Delay”.
“TOF” is a “Timer Off-Delay”.
“RTO” is a “Retentive Timer On-Delay”.
A very helpful guide to all the instructions available can be found by selecting “Instruction Help”.