Watch this video and more on RealPars
We will open the program that we saved in the last section of this course, and add additional rungs of logic to complete the simple example.
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”.
Output instructions set data table values based on the input logic.
Input instructions make logical comparisons or monitor the states of data table entries. When the input logic is true, the output instructions execute.
If a rung only has an output instruction, it will execute each time the pr...
We append another rung so that we can add the logic to increment or add 1, to “N7:0” when the timer times up.
We navigate to the “Compute/Math” tab, and click on “ADD”.
We want to execute the “ADD” instruction when the timer times out.
The bit “DN” is set when the timer times out.
To add thi...