This program counts from 0 to 255, depending on input I0.0. If input I0.0 is set, the program counts down. If input I0.0 is not set, the program counts up.
If this input is switched on or off, an input/output interrupt routine is triggered. This I/O interrupt routine sets or resets the “count down” memory bit M0.0.
If this input is switched on or off, an input/output interrupt routine is triggered. This I/O interrupt routine sets or resets the “count down” memory bit M0.0.
Program Flowchart :

Download Project Example :

















