Simulate an Application
Simulating running an application signifies that virtual machines execute the code of the device and the Windows platform performs aspects like program organization unit (POU) execution. Virtual machines ignore inputs and outputs.
The compiler generates different code for simulation than for online.
Prerequisite
Build the project code before simulating an application. Simulation executes code in real-time mode. The programmed cycle timing triggers target cycles.
To simulate an application
- Select the device, then set theEnable Simulationproperty toTruefrom the list in thePropertieswindow.
- For applications using functions and function blocks from the global library, set the global library for simulation.
- In theApplication View, expandLibraries, thenGlobal.
- SelectFunctions, then set theTargetsproperty toSimulatefrom the list in thePropertieswindow.
- SelectFunction Blocks, then set theTargetsproperty toSimulatefrom the list in thePropertieswindow.
- From theProjectmenu, point toConnect Mode, and then clickSimulationto set the connection mode for the project.TheSimulationmenu category appears with the simulation command options.
- In theApplication View, select the project.
- Build the project code, then selectSimulation>Start Simulation.
Provide Feedback