The timer, “T4:0”, runs once and times out. Because the “Done” bit remains true, the “ADD” instruction continues to execute and increment the value of “N7:0”. When it reaches 10, it does reset.
However, the “ADD” instruction runs every scan instead of just once every 5 seconds.
This is not what we want the program to do.
So, what should we do to fix this?
If we were connected to a physical CPU, we could make changes to the program while it is running in the “REMOTE RUN” mode.
However, when the program runs in the Emulator, online editing is not possible.
We must go offline, make the program changes, and then re-download the program.