TwinCAT Simulation Manager

TwinCAT Simulation Manager 1:

The 'TwinCAT Simulation Manager' is a powerful tool for simulating machines or machine systems.

There is a requirement in various scenarios for the partial or complete simulation of a production machine or plant:

All these scenarios are supported by the TwinCAT Simulation Manager, which places an extensive range of tools for the creation and administration of simulation environments at the fingertips or the developer / plant operator:

Principle of operation

I/O devices and axes are initially connected to the PLC. If parts of the machine are to be simulated, then the devices in question must be deactivated. The performance of the relevant inputs and outputs must be replicated as exact as possible so that the machine PLC – henceforth referred to as the original PLC – can continue to perform its functions. This is carried out by the simulation PLC, which connects itself to the system in place of the inactive I/O devices.

For coupling, the mapping from the original PLC to the inactive device must be broken and rerouted to the simulation PLC. Deactivated axes are replicated by a simulation axis; any latch functionalities in the simulation PLC are implemented. Simulated axes are switched over to 'free running' in the 'TwinCAT Simulation Manager'.

TwinCAT Simulation Manager 2:
Figure 1: Principle of the TwinCAT Simulation Manager

The replication of the I/O functionality in the simulation PLC is simplified by a set of simulation blocks. Complex performance can be easily replicated by the mapping of these blocks and encapsulated in the POUs or reused.

TwinCAT realizes the data transfer between PLC and I/O typically via IO-Mappings. The TwinCAT System Manager creates these mappings and initializes the adequate memory copy instructions within the TwinCAT Runtime system (task-synchronized memory copy between process-images). This sort of mapping is only useable within a local scenario, which means within one single Resource / TwinCAT System or CPU where in-resource memory access to the process images is available.

In a distributed system environment - where several resources / CPUs are involved a different technology for the data exchange must be used. This could be realized via discrete wireing, a fieldbus or common network technology.

To support distributed as well as local scenarios the TwinCAT Simulation Manager uses internally an abstract mapping model that transparently hides the data-exchange protocol. The TwinCAT Simulation Manager chooses the appropriate protocol dependent on the location of the communication start- and endpoint.

Actually, the following protocols are supported:

By the transparent usage of remote devices, it is possible to deploy and execute the machine software (original software) and the simulation software freely on the available resources/CPUs. The system smoothly scales from local to highly distributed scenarios.