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: You program contains no errors (compiler error messages or compile errors) and you are not logged in.
-
Activate simulation mode as follows:
-
Click “Online Simulation”, or
-
Right-click the controller in the device tree and click “Simulation”.
The name of the controller in the device tree is displayed in italics. In the status line, "Simulation" appears highlighted in red. The “Simulation” command is selected in the main menu.
-
-
Click “Online Login”.
-
When logging in with the active application, you will be prompted whether the application "Sim.<device name>.<application name>" should be created and loaded. Click “Yes” to confirm.
The application is logged onto the PLC.
-
Now you can check and correct the program flow with the commands provided in the main menu in “Debug”.
-
Log out from the controller and end the simulation mode.
See also
Limitations
-
The focus of the simulation mode is testing and debugging your program of the PLC. That means the functionality of the simulated PLC is limited. Keep in mind that some POUs have no function. They are not creating any compile or download errors, they will simple not work.
-
Without an extra available “Virtual Commissioning” license the “Online mode” of the simulated PLC is limited to 2 hours. After 2 hours starting from the “Login”, the “Online mode” is automatically terminated and the PLC is logged out.
-
It is not possible to create a “Boot Application” in the simulated PLC. Every “Login” starts with an empty simulated PLC and a download of the application is required.
-
When logging in to a simulated PLC the first time a “Windows Security Alert” is displayed. Depending on the application, e.g. if any network communication is implemented, it might be necessary to allow the “Virtual AC500” to communicate on one or multiple network types.