Beckhoff Automation GmbH & Co. KG — 5.2.2 From offline to online configurations

Configuration The tag needs to specify the exact number of terminals plus the device itself. Activate the EtherCAT configuration To activate a created TwinCAT configuration via Automation Interface, the ITcSysManager [ } 30] :: ActivateConfiguration() [ } 33] method may be used. However, the previous chapters only explained how to create an offline configuration, which means that every device created does not have real addresses, e.g. the EtherCAT Master has not been linked to a physical network interface card yet. Before activating the configuration, you therefore need to configure each device with online addresses.

To determine the real addresses, you can run a ScanDevices on the online system, determine the real addresses via the XML description ( ITcSmTreeItem [ } 37] :: ProduceXml() [ } 60] ) and then import the address information via ITcSmTreeItem [ } 37] :: ConsumeXml() [ } 61] into the created (offline) configuration. There are two HowTo samples which help you exactly with this kind of configuration: Scan Devices [ } 77] via Automation Interface 5.2.2 From offline to online configurations This article explains how to convert a TwinCAT configuration, which has been created 'offline', via TwinCAT Automation Interface to an online configuration.

The term "offline" means that no physical I/Os are present at the time of configuration creation and therefore the real address information is not available, e.g. for an EtherCAT Master . The following topics are part of this article: General information Creating an offline configuration Switching to an online configuration General information When creating a TwinCAT configuration, there are two common scenarios: Scenario 1: this scenario is based on the real physical device, on which the TwinCAT configuration should run later. Therefore, all I/Os are online and already available and attached to the device. Scenario 2:

this scenario could involve creating the configuration offline (that means without any I/Os attached to the engineering device) and later switch to an online configuration when the I/Os are available. This is the scenario which will be the primary focus of this article. Both scenarios are possible via TwinCAT Automation Interface. However, as scenario 2 lacks some important information about some of the I/Os, e.g. their physical addresses, this scenario could be slightly more complex because you need to hand in the required (address) information later.

The familiar TwinCAT XAE functionality "Scan Devices" plays a significant role in this use-case because it scans for all available I/O devices and automatically attaches them to the configuration - together with all needed additional information, e.g. physical addresses. Automation Interface 27 Version: 1.2