If you choose the step mode to test your program you can observe the effect of each individual step on the registers, and, if applicable, find possible errors. From a function block or a user-defined function you may branch to the subroutine and process it step by step.
Depending on the programming language, step mode is executed as follows:
IL/ST: a command line is processed.
LD/FBD: a network is processed.
SFC: a selected program step is processed.
The POUs entered in the task are loaded automatically and processed in step mode.
In the procedure, we assume that you have already downloaded your project into the PLC.