Command ‘SimulationΒΆ

Function: This command switches the development system to simulation mode.

Call: Menu bar: Online

In simulation mode, you can start and debug the active application an on a simulated target device. A physical target device is not necessary for testing the online behavior of an application. When logging in for the first time, you are prompted whether the application should be created or loaded. For a simulated device, you do not have to configure the communication settings. In CODESYS simulation mode, the controller entry in the device tree is shown in italics.

Hint

No C code for simulation mode In simulation mode, C code is not generated and loaded to the runtime system. To simulate the code contained in the C modules anyway, you can implement it for this purpose in the respective IEC objects of the C code module.

After successful login, the red triangle symbol () in the device tree indicates simulation mode. You can use the corresponding online commands for testing the application.

To switch off simulation mode, log out of the controller and execute the Simulation command again.

This command affects the active application only.

See also