Tutorials Requirements Table 2: Process Steps to change mode from Simulation Mode --> Original Mode If all steps succeeded the wizard looks like shown in Figure 2. TS1110 30 Version: 1.0 Step Name Description 1 Set System(s) to 'Config' mode All participating systems will be set to 'Config' mode. If the local system is one of these systems, the TwinCAT Simulation manager first sends the 'Reconfig' command to this system. If the local system reaches the 'Config' mode, the 'Restart' command is send to all other remote systems at the same time. The Step succeeds if all systems are in 'Config' mode.
2 Process original settings The current I/O mappings are removed (locally or remotely) from the simulation PLC, axes are switched back to original mode and deactivated devices enabled again The created original profile is not used if it is not activated and until the TwinCAT system has performed a restart. The step is succeeded when no error occurred setting the configurations. 3 Save TwinCAT Configuration(s) Saves the locallly cached TwinCAT System Manager Configuration files of all participating systems. 4 Activate Configuration(s) Activate the configurations on the targets. The configurations will remain inactive until a TwinCAT restart is carried out on the target.
The command will succeed if the activating processes ran through without errors. 5 Restart the target system(s) Restarts the TwinCAT target systems with the activate configurations. Like in Step 1, first the (optional) local system will be restarted and as second step all 'remote' ones in parallel. This step is succeeded if all targets are in 'Run' mode. 6 Write the simulation state Resets the 'dwSimState' Global PLC Variable to '0' for all participating PLCs. This Symbol is the indicator for the PLCs that the system is in "Original" or "Simulation" mode.
The step succeeds if the targets are reachable, the Symbol (TcSimManager.lib) is contained in the PLC project and the value could be written with success.