beckhoff TE1000 TwinCAT 3 — 6.3.4 From offline to online configurations

Samples | System Creating an offline configuration Switching to an online configuration General Information Two scenarios are common when creating a TwinCAT configuration: Scenario 1: This scenario is based on the real physical device on which the TwinCAT configuration is to run later. For this reason, all I/Os are online , already available and connected to the device. Scenario 2: This scenario may involve creating the configuration offline (i.e. without any I/O connected to the device) and later switching to an online configuration once the I/Os are available. This scenario is the main focus of this article. Both scenarios are possible with the TwinCAT Automation Interface.

However, because important information about some of the I/Os is missing in the case of scenario 2, e.g. their physical addresses, the latter is somewhat more sophisticated because the required (address) information has to be passed later. The familiar TwinCAT XAE functionality "Scan Devices" plays an important role in this use case because it scans all available I/O devices and automatically connects them to the configuration, along with any additional information required, e.g. the physical addresses.

In the case of a physical controller, this functionality can also be called up via the Automation Interface, in which case it returns an XML representation of all I/O devices found, including their corresponding address information. If a TwinCAT configuration is to be activated on a controller, the required address information must be set for all I/O devices belonging to the configuration. This can be done by calling up the "Scan Devices" functionality via the Automation Interface and defining the address information of the I/O devices in the configuration. This will now be explained in more detail.

Creating an offline configuration There are several articles which explain how to create an offline TwinCAT configuration. Please refer to our Product Description [ } 14] page to get an overview. Switching to an online configuration If you finally have created a TwinCAT configuration that should now be activated on the physical controller, the following steps need to be taken to ensure that all required address information is available before downloading the configuration: Step 1 [optional]: Connecting to the target device TE1000 201 Version: 1.7.0