beckhoff TE1120 — 4.1 Importing topology

Workflow | Importing topology 4 Workflow | Workflow Using the plugin concept of the XCAD interface, you can enrich both the AML file and the TwinCAT project to generate the highest possible added value in the exchange between the ECAD software and TwinCAT. Each plugin can be enabled or disabled and configured as needed in the XCAD Interface Options [ } 20] . The basis of the plugins is, among others, the so-called tag tables in AutomationML. They represent lists of variables (tags) that are derived on ECAD side from the information of the channels configured there. These tags are connected to the channels of the hardware components via links in the AutomationML.

Enriching the I/O topology in the TwinCAT project It is possible to automatically adjust the channel variables of the I/O topology, which are associated with a tag in the AutomationML, in TwinCAT when importing the AutomationML file. This means that the standard variable names, such as "Input" for an EL1008, are replaced by the tag name. In addition, the comment of the tag can be adopted for the channel variable. This allows the user to draw conclusions about the use of the channels more easily and quickly. (Plugin:

Rename channel variables [ } 31] ) Using the template identifier attribute in AutomationML, a preconfigured template in .xti format for one of the hardware components can also be loaded during import. In this way, certain settings that cannot otherwise be made on the ECAD side can be set automatically. Generating TwinCAT PLC project content Based on the tag tables, one or more global variable lists (GVLs) can be created in a PLC project and corresponding variables can be generated from the tags, which are assigned to the GVLs. The names of the variables are derived from the tag names and can be adapted to a valid PLC variable name using a converter, if necessary.

In addition, the tag comment is written over the corresponding PLC variable. (Plugins: Convert PLC variable names [ } 27] , Create global PLC variable list [ } 29] ) These variables of the PLC project can finally be automatically linked to the corresponding channel variables of the I/O topology. (Plugin: Create PLC variable links [ } 30] ) Time-consuming manual linking is therefore no longer necessary. See also Concept [ } 9] 4.1 Importing topology | Importing topology 1. Create a new TwinCAT project. 2. Right-click the TwinCAT project entry in the Solution Explorer. 3. Select the command Import via XCAD... [ } 17] . 4.

In the drop-down menu for the file formats, select one of the two formats AML or Beckhoff-ECAD-XML in the default browse dialog. 5. Select the desired file in the standard browser dialog. 6. Confirm the dialog with Open . See also Command: Import via XCAD... [ } 17] TE1120 10 Version: 1.3.1