Step into/Step over

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.

NOTE

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.

  1. Set PLC into PROG mode
  2. Debug > Step mode on startup
  3. Switch to TEST mode
  4. Online > Change PLC mode (TEST-RUN mode)
  5. Debug > Step into

    Use Step into if you diverge into the sub-program after reaching a function block or a user-defined function and wish to process it in steps. When the end of the FB/FUN is reached, the loaded program is continued.

  6. Debug > Step over

    Use Step over if you do not want to test the sub-program. The PLC will process the FB or FUN but not in step mode.

  7. Continue step mode
Related topics:

Modified on: 2019-12-10Feedback on this pagePanasonic hotline