beckhoff TE1000 TwinCAT 3 — 6.6.4 Creating and handling AX5000 devices

Samples | I/O Overview XML description The XML description of an AX5000 device consists of the following parts (references to an XML node written as XPath). /TreeItem/EtherCAT/Slave/Mailbox/SoE/InitCmds/ Mailbox startup list for drive, including the power management and motor configuration. /TreeItem/EtherCAT/Slave/ProcessData/TxPdo PDO configuration /TreeItem/EtherCAT/Slave/ProcessData/RxPdo Mailbox startup list The mailbox startup list therefore includes many different types of init commands, which are identified via their IDN. Please note that the IDN that is displayed in TwinCAT XAE does not equal the IDN in the XML description, which is why a mapping needs to happen. For example:

The IDN P-0-0050 (Motor construction type) equals 32818 (0x800A hex). To make this mapping and the identification which init command belongs to which type (drive, motor, power management), the tools that are mentioned below already include a sample mapping for an AX5000_0000_0210. Import of startup list Please note that the startup list always needs to be imported as a whole (including all init commands). This is also true if only one or two init commands have been changed. PDO configuration The PDO configuration is straight-forward and consists of a TxPdo (Inputs) and RxPdo (Outputs) section. Each PDO entry is identified by its Index (hex) and contains a name, bit length and data type.

The optional property “Fixed” describes whether this entry can be deleted via TwinCAT XAE. AdsInfo When creating a template, the section does not need to be present and can be removed from the template file because this information is generated by the TwinCAT XAE. Import of PDO configuration Please note that the PDO configuration always needs to be imported as a whole. This is also true if only one or two PDO entries have been changed. Parametrization and template generation It is recommended to create templates for different AX5000 configurations and also a different template for each channel (A and B) of a drive.

These templates can then be assembled to a full AX5000 XML description, which can be imported either via the XAE menu entry “TwinCAT -> SelectedItem -> Import XML description” or via the Automation Interface method ConsumeXml(). In order to make the template generation process easier, several tools and samples for the Windows Powershell and C# are available for download. All of these tools are further described below. Available tools and samples The following table provides an overview about the available tools and samples that provide help with handling AX5000 configurations via Automation Interface. TE1000 255 Version: 1.7.0 Part Description