AML Dataexchange

AML data exchange with EPLAN P8

From version 2.7, EPLAN P8 supports the data exchange via AutomationML (AML). If the macros provided by Beckhoff are used, most of the information required for the AML data exchange is already preset. The tabular representation “Rack” is suitable for the setting of the remaining information.

AML data exchange with EPLAN P8
General
CPU
Coupler
Terminal
Bus connections
PLC connections
 

Hierarchical elements in EPLAN

In assigning the hardware to the topology, EPLAN uses a hierarchy consisting of

Configuration project – a configuration project includes all components that are to be exported together. Each configuration project must contain exactly one CPU for the AML data exchange with TwinCAT 3.
Station – a station includes all components that are located on a common terminal segment.
Rack – EtherCAT and KBus have exactly one rack per station. It has the number "0".
Position/slot – components in a rack are sorted in accordance with this specification.

The following drawing illustrates the use of these hierarchical elements in the AML data exchange with TwinCAT 3.

Hierarchy
 
 

General

Property
Description
Preset in the macro
Configuration project
One configuration project is to be created per CPU for the AML data exchange with TwinCAT 3.
Project1
PLC type designation
Type designation of the hardware, if necessary with version and revision number
Entered suitably
e.g.: CX5020/EL2008
With some components the full version and revision number needs to be added (e.g. AX8620-0000-0101).
Module name
Optional: Name of the hardware in the System Manager. If no module name is specified, then the BMK is used for naming the hardware.
<empty>
Version
Optional: If a configuration that has previously been saved as a .xti file is to be loaded for the hardware, then the full path to the saved configuration can be specified as the version.
<empty>
Bus system
The AML data exchange is presently restricted to EtherCAT and KBus components. The setting "Other bus systems" is used for KBus.
EtherCAT
Segment/network
If several EtherCAT segments/EtherCAT Masters are in use, the components must be assigned to their respective EtherCAT segment. This property can also be empty if only one EtherCAT segment exists.
<empty>
 
 

CPU

For IPCs and Embedded PCs, the macros can generally be used without further adjustments.

Property
Description
Preset in the macro
PLC station name
Each terminal segment in the control cabinet corresponds to a station.
S0
Rack
EtherCAT has exactly one rack per station. This is defined at the head of the station (coupler/ CX/…).
0
Module is plugged into rack
One station and thus a new rack belongs to each CPU and each coupler. The entry for "plugged into rack" can therefore remain empty.
<empty>
At position / slot
This entry specifies the position in the rack. It starts in each rack with the head of the station (CPU or coupler) at "0".
0
Bus Coupler
 
No
CPU
Exactly one CPU is intended per configuration project for the AML data exchange with TwinCAT 3. This is marked by setting the corresponding option.
Yes
CPU: Name[1]
Number of the CPU
1
 
 

Coupler

The property "PLC station name" must be adjusted for couplers. Otherwise the macros can be used without further adjustments.

Property
Description
Preset in the macro
PLC station name
Each coupler is the head of a new station. All terminals in the same terminal segment must use the same station name.
X
Rack
EtherCAT has exactly one rack per station. This is defined at the head of the station (CPU or coupler).
0
Module is plugged into rack
One station and thus a new rack belongs to each CPU and each coupler. The entry for "plugged into rack" can therefore remain empty.
<empty>
At position / slot
This entry specifies the position in the rack. It starts in each rack with the head of the station (CPU or coupler) at "0".
0
Bus Coupler
 
Yes
CPU
 
No
CPU: Name[1]
Reference to the CPU via <Configuration project>.<Station name>.<CPU name>
Project1.S0.1
Station type
Optional: EPLAN expects the specification of a station type. It is not necessary to specify the station type for the initial import. However, if the data are transferred to EPLAN by means of an incremental export, the absence of the station type can lead to the coupler being displayed as "new".
Entered suitably
e.g. Coupler, Switch, PortMultiplier
 
 

Terminal

For terminals, the station name must correspond to that of the associated coupler. In addition, the slot in the rack must be entered.

Property
Description
Preset in the macro
PLC station name
Each coupler is the head of a new station. All terminals in the same terminal segment must use the same station name.
X
Rack
EtherCAT has exactly one rack per station. This is defined at the head of the station (CPU or coupler). This entry can therefore remain empty for the terminals.
<empty>
Module is plugged into rack
With EtherCAT there is exactly one rack per station. All terminals are therefore plugged into rack "0".
0
At position / slot
This entry specifies the position in the rack. It starts in each rack with the head of the station (CPU or coupler) at "0".
X
Bus Coupler
 
No
CPU
 
No
CPU: Name[1]
Reference to the CPU via <Configuration project>.<Station name>.<CPU name>
Project1.S0.CPU
 
 

Bus connections

The bus connections are generally configured completely in the macro. EPLAN expects there to be a bus connection in a PLC box and that no visible BMK is entered for the bus connection.

Property
Description
Preset in the macro
Plug BMK
Name of the connection according to the documentation
Entered suitably
e.g. X001, X1, X2 Out
Configuration project
One configuration project is to be created per CPU for the AML data exchange with TwinCAT 3.
Project1
Bus Master/ Bus Coupler
Optional: If the option "Is Master" is selected, the master to be created is given the name specified here.
<empty>
Is Master
If the option "Is Master" is selected, a new EtherCAT segment with an associated EtherCAT Master is opened on this bus connection. The terminal segment on a CX also opens a new EtherCAT segment, even if no explicit bus connection with the option "Is Master" exists for this.
Entered suitably
Bus system
The AML data exchange is presently restricted to EtherCAT and KBus components. The setting "Other bus systems" is used for KBus.
EtherCAT
Bus interface name
For EtherCAT components, the bus connections must be given different interface names, provided they are not EtherCAT distributors.
Entered suitably
e.g. EC1, EC2, LAN1
Function definition
 
Network/bus cable connection, general
Segment/network
If several EtherCAT segments/EtherCAT Masters are in use, the components must be assigned to their respective EtherCAT segment. This property can also be empty if only one EtherCAT segment exists.
<empty>
 
 

PLC connections

The PLC connections are generally configured completely in the macro. EPLAN expects there to be a PLC connection in a PLC box and that no visible BMK is entered for the PLC connection.

During the AML data exchange a system task with image is generated, which contains the variables referenced via the symbolic addresses. The creation of the task variables as well as the linking between task variable and process object takes place automatically during the AML import.

Property
Description
Preset in the macro
Channel name
The channel name describes the process object for which a variable linking should be created. Various options are available for referencing.
Entered suitably
e.g. Channel 1.Input
Function text
Optional: If the variable or the process object is to be provided with a comment, this can be stored as a function text.
<empty>
Symbolic address
Optional: This property specifies the name of the variable with which the input/output is to be linked.
<empty>
Data type
Data type of the variable to be created.
Entered suitably
e.g. Bool