Skip to main content

Testing in Simulation Mode

Use simulation mode for testing and debugging your program when you do not have a physical target device. In this mode, the application is started on a simulated device.

The command is available only when you are logged out.

Requirement: Your program contains no errors (compiler error messages or compile errors) and you are not logged in.

  1. Activate simulation mode.

    • Click Online → Simulation.

    • In the device tree, select the PLC and in the context menu click Simulation.

    The name of the PLC in the device tree is displayed in italics. In the status line, "Simulation" is highlighted in red. The Simulation option is selected in the menu bar.

  2. Click Online → Login.

  3. When logging in for the first time with the active application, you will be prompted whether the "Sim.<device name>.<application name>" application should be created and loaded. Click Yes to confirm.

    The application is logged in to the controller. This is marked in the device tree by a icon_device_not_connected.png warning symbol in front of the PLC.

  4. Now you can check and correct the program flow. The corresponding commands are available in the Debug menu for this.

  5. Logout from the PLC and end the simulation mode.