TechTip PLC Data Exchange
TechTip PLC Data Exchange
TechTip PLC Data Exchange
Contents
1. Use ............................................................................................................................... 3
2. Exchanged data ........................................................................................................... 3
3. Recommended workflow in EPLAN ........................................................................... 4
3.1. Physical rack layout ............................................................................................. 4
3.1.1. Head station .................................................................................................... 4
3.1.2. Extension racks ............................................................................................... 5
3.1.3. Passive devices .............................................................................................. 5
3.2. I/O interconnection ............................................................................................... 6
3.3. Network structure ................................................................................................. 6
3.3.1. Connections between racks ............................................................................ 9
3.3.2. Automatic connections between associated bus ports................................... 10
4. Export from EPLAN ................................................................................................... 12
4.1. Hardware data ..................................................................................................... 12
4.2. Assignment list ................................................................................................... 13
5. Import in EPLAN ........................................................................................................ 14
5.1. Devices ................................................................................................................ 14
5.2. Connections ........................................................................................................ 14
6. Recommendation for preparation of the master data ............................................. 15
7. AutomationML AR APC............................................................................................. 15
7.1. Settings for different bus systems .................................................................... 17
7.2. PC station ............................................................................................................ 18
7.3. Switches .............................................................................................................. 18
7.4. Bus adapter ......................................................................................................... 19
7.5. IO-Link systems .................................................................................................. 20
7.5.1. IO-Link master and IO-Link devices within a rack structure ........................... 21
7.5.2. IO-Link devices outside a rack structure ........................................................ 21
7.6. PLC subdevices .................................................................................................. 21
7.7. Accessories......................................................................................................... 22
1
TechTip: PLC data exchange
EPLAN Platform Version 2024
Status: 01. September 2023
2
TechTip: PLC data exchange
EPLAN Platform Version 2024
Status: 01. September 2023
1. Use
The multiple entry of data is avoided through the PLC data exchange. This reduces the work
load across departments and avoids typing errors. The configuration is accelerated overall
and the planning quality is improved.
For the fundamental description of a property please refer to the current EPLAN help:
• Edit PLC Information > PLC > Basics
Further notes and specifications for individual properties can also be found in the TechTip
"TechTip-Overview-of-the-PLC-properties".
With Version 2.7 of EPLAN Electric P8 numerous new check runs which help you in
configuring the data exchange were implemented in the PLC field.
You can find details on the PLC data exchange with specific PLC configuration programs in
separate TechTips.
2. Exchanged data
1. Hardware data
Rack structure with part information.
3. Network structure logical view (association of the devices to networks), not the exact
cabling.
The PLC data exchange is based on a file that can be exchanged simply between the
EPLAN designer and the PLC programmer. Data that an editing program does not find in the
exchange file because the other editing program does not know them, are supplemented
during importing. EPLAN supplements the further required data from the parts management.
PLC configuration programs and EPLAN are based on different points of view.
EPLAN configures electrical engineering hardware details such as voltage supply, etc.
PLC configuration programs have a logical view for the software programming.
Through the different views of the programs and the current developments on the hardware
and software sector, the PLC data exchange cannot always cover all the requirements.
The applies for example to passive items in the bus bundle and used field bus systems.
3
TechTip: PLC data exchange
EPLAN Platform Version 2024
Status: 01. September 2023
Advantages:
1. The hardware data of the used devices is planned through the rack layout. All the main
functions exist in the single-line representation. When this representation is copied, the
parts entered there are copied as well.
2. Individual functions (I/O connection points, power supply, bus ports, etc.) can be placed
via drag & drop from the PLC navigator.
The following properties must be filled at PLC cards that represent modules and / or racks:
ID Property
20427 Rack at a rack
20410 PLC card is placed on rack ID at modules on a rack
20411 Position (slot / module) at modules on a rack. As a rule this
field remains empty at racks or head stations.
EPLAN assumes that devices on the same rack are connected by means of a "backplane".
This is not configured separately.
Tip:
Use the "edit in table" function to achieve effective editing of the specifications. Special
schemes are available here.
A head station is identified by being a rack and either has the Bus coupler / head station
check box, is not placed on a rack, or the CPU check box is activated.
PLC cards which are directly placed on the head station or are integrated into it, are
identified by the check box PLC card is placed on head station. For the corresponding
position on the head station, the Position (slot / module) property is used.
4
TechTip: PLC data exchange
EPLAN Platform Version 2024
Status: 01. September 2023
For PLC cards that are adjoined next to the head station the PLC card is placed on head
station check box remains deactivated. For the corresponding position next to the head
station, the Position (slot / module) property is used.
The property PLC card is placed on head station is used during the PLC data exchange in
AutomationML AR APC format.
Extension racks have to be connected with the main rack via bus ports. Enter the
configuration project that belongs to the PLC box, use the "Local-Bus: Extension" bus system
at the bus port (see also chapter "Connections between racks"). Further properties are not
required in the AutomationML AR APC format. To suppress the check run 004037 activate
the check box Ignore missing bus ID at the bus port.
Passive devices as well as devices that should not or cannot be exchanged with the PLC
configuration program can be used for the configuration of the network structure.
a) When using a PLC box: The PLC structure data tab remains completely empty,
no PLC-specific properties are required.
b) When using a black box: The settings for bus capable devices are not required
and remain empty. Details on the individual properties can also be found in the
TechTip "TechTip-Overview-of-the-PLC-properties", Chapter "Settings at bus-
capable devices".
c) Bus ports are configured as "Network / Bus cable connection points, switch
connection point". Since these bus ports are treated as busbar connection points,
no specifications are required on the Bus data tab.
5
TechTip: PLC data exchange
EPLAN Platform Version 2024
Status: 01. September 2023
Use bitwise representation (meaning one macro per channel) with functional grouping of the
devices.
Advantages:
1. Once macros have been created they can be used repeatedly for similar machine
functions.
2. I/O connection points or channels can be placed via drag & drop from the PLC navigator
or assigned.
3. You can check the assignment in the PLC navigator or on a PLC overview page.
Advantages:
1. The network structure can be documented clearly by connecting the single-line bus
ports.
2. The network structure can be exchanged with PLC configuration programs. The logical
view (association of the devices to networks), is always exchanged. The export / import
of the exact cabling depends on the bus system and the exchange format used.
ID Property
20406 Plug designation
20308 Bus system
20311 Physical network: Bus ID / item number
20413 Physical network: Name
20414 Logical network: Name
20447 Bus interface: Name at Ethernet-based bus systems
6
TechTip: PLC data exchange
EPLAN Platform Version 2024
Status: 01. September 2023
For the bus ports the Plug designation is identifying together with the Bus interface: Name
property.
In Ethernet-based bus systems, associated bus ports are combined to a bus interface via the
bus interface name. You can recognize this by the respective specifications in the manual or
through labels on the PLC card.
An exact overview of the properties to be filled for the PLC data exchange in AutomationML
AR APC format can be found in chapter "Settings for different bus systems".
Identify connection point 1 and 3 as main bus ports (activate Bus interface: Main bus port
property) and enter the relevant bus data here.
7
TechTip: PLC data exchange
EPLAN Platform Version 2024
Status: 01. September 2023
EPLAN treats the following bus systems equivalently during exporting / importing, because
they have the same hardware topology (Ethernet-based bus systems):
• BACnet
• CC-Link IE
• CC-Link IE Control
• CC-Link IE Field
• CC-Link IE Field Basic
• EtherCAT
• EtherCAT G
• EtherCAT P
• Ethernet
• EtherNet/IP
• Modbus TCP
• Powerlink
• PROFINET
• SERCOS III
• SSCNET III
• VARAN
8
TechTip: PLC data exchange
EPLAN Platform Version 2024
Status: 01. September 2023
Special features of the bus systems "Local-Bus: Extension", "DRIVE-CLiQ", "IO link",
"PortToPort" and "ET connection"
• These bus systems do not form a network.
• For these bus systems only the connection between the bus ports is exported (port-
specific interconnection).
• The property Bus interface: Name (ID 20447) must be identical at all associated bus
ports of a device, an empty entry is permissible as well here.
• No bus address is required. The associated check run 004037 can be suppressed by
activating the property Ignore missing bus ID (ID 20412) for this bus port.
Note:
A port-specific interconnection is only exported in the AutomationML AR APC format. If
necessary, you can deactivate this setting in the dialog Settings: AutomationML AR APC
export.
Use the bus ports of the type "Network / bus cable connection point, general" for the
connection of racks with each other. The "Local-Bus: Extension" bus system must be set at
these bus ports.
In addition take into account the special features described in the previous section for the
bus system "Local Bus: Extension".
9
TechTip: PLC data exchange
EPLAN Platform Version 2024
Status: 01. September 2023
Network / bus cable connection points of the type "Network / bus cable connection point,
general" are considered as belonging together and are automatically connected to each
other through an internal connection if they have the same DT, belong to the same bus
system and have the same bus interface name. Enter further data, such as Physical
network: Bus ID / item number only at the main bus port of the bus interface.
Note:
A "Network / bus cable connection point, general" with empty bus interface name cannot
establish an internal connection to another "Network / bus cable connection point, general".
The check run 004040 can be used to find contradictory data.
Note:
During the PLC data exchange in the AutomationML AR APC format bus ports within the
same bus system and the same physical network (Physical network: Name property) are
considered as connected with each other even if they have different DTs. This is, however,
not evident during net tracking. The 004104 check run reports such bus ports as not
connected to each other. This message can be ignored if the network structure was
consciously configured like this due to the physical conditions.
It is mandatory that the following properties be filled at the PLC bus port:
ID Property
20006 DT
20406 Plug designation
20308 Bus system
20447 Bus interface: Name *
*: Must always be filled for Ethernet-based bus systems, for other bus systems only if
automatic connections are to be generated between general network / bus cable
connection points.
10
TechTip: PLC data exchange
EPLAN Platform Version 2024
Status: 01. September 2023
The check run 004040 outputs a message when one of the following properties is different:
ID Property
20334 MasterSystemID
20312 Subslot
A check is carried out if the property to be checked is not empty at the second bus port.
If the property to be checked is empty at the first bus port and is filled at the second bus port,
a message is also output.
11
TechTip: PLC data exchange
EPLAN Platform Version 2024
Status: 01. September 2023
1. Check the project by means of the check runs from the 004 range. EPLAN makes
schemes available to you here that you use or adjust according to you requirements.
2. Delete the data not required at the auxiliary functions (File > Extras > Command group
Organize > Project > Command group Optimize > Compress project > Field
Settings, Button [...] > Remove project data > Remove PLC structure data at PLC
auxiliary functions).
3. For an optimum PLC data exchange always configure all I/O connection points and bus
ports of a device, even when they are not connected.
2. The bus ports are represented in single-line and are connected with each other. During
the PLC data exchange in the AutomationML AR APC format, multi-line representations
and bus ports connected to each other are also taken into consideration.
b) a device description file (e.g. GSD / GSDML / EDS file, property Device
description: File name property) and the Object description or
c) a device description file (e.g. GSD / GSDML / EDS file, property Device
description: File name) and the Device description: Index in file during the data
exchange in AutomationML AR APC format.
The PLC type designation as a rule corresponds to the order number in the hardware
catalog of the respective PLC configuration program. The exact spelling is important.
Each PLC card can only have one device identification. A combination of several parts by
entering several PLC type designations, device description files or indexes is not supported.
PLC connection points of the following categories are not exchanged:
12
TechTip: PLC data exchange
EPLAN Platform Version 2024
Status: 01. September 2023
- General
- 2 connection points
- Power supply
- Card power supply.
2. A PLC connection point, multi-function is treated with its logic like the corresponding I/O
connection. For example
PLC connection point, multi-function, type of signal digital input corresponds to PLC
connection point, DI
4. The symbolic address is specified. The symbolic address must be unique within a
CPU.
6. The associated PLC box is assigned through specification of the property CPU: Name
of a CPU.
The correct and full specification of the CPU name at the PLC box is required so that
the assignment list (designation in the AutomationML AR APC format: "TagTable") can
be exported fully.
13
TechTip: PLC data exchange
EPLAN Platform Version 2024
Status: 01. September 2023
5. Import in EPLAN
5.1. Devices
During importing EPLAN supplements item data such as inputs / outputs from the parts data.
b) a GSD / GSDML / EDS file (Device description: File name property) and the
Object description or
c) a GSD / GSDML / EDS file (property Device description: File name) and the
Device description: Index in file during the data exchange in AutomationML AR
APC format.
2. If items with placeholder characters (such as "*" and "?") are found in the PLC type
designation in the parts database during an import into EPLAN, the first suitable part is
used (PLC configuration programs do not always differentiate between parts that are
equivalent electrotechnically).
3. If multiple parts with the same PLC type designation are found during the import in
EPLAN, the first of those parts with the matching Object description (in as far as this
import file is available) is assigned. If no part has a matching object description, the first
found part is assigned.
In these cases messages are output so that the imported devices can be checked
subsequently.
Device and PLC connection points that are available in the project but not in the import file,
have the Marked for deletion property assigned during import. These objects can be filtered
in the PLC navigator and subsequently be edited. Deactivate this property after the check or
editing.
5.2. Connections
EPLAN detects existing connections during the import.
New or changed connections are listed via the message management and have to be
created or changed by the user in EPLAN. To this purpose the corresponding functions have
to be placed and connected to each other.
14
TechTip: PLC data exchange
EPLAN Platform Version 2024
Status: 01. September 2023
7. AutomationML AR APC
Details on the individual properties can be found in the TechTip "TechTip-Overview-of-the-
PLC-properties".
Free symbolic addresses (which are not assigned to any PLC connection point) can be
exported and imported in AutomationML AR APC format via the PLC data exchange. After
the import of an AML file, the free symbolic addresses existing there are available in EPLAN.
The export in the AutomationML AR APC format can take place in the following AR APC
versions: V1.0.0 / V1.1.0 / V1.2.0
Features in the export format for AutomationML AR APC Version 1.1.0:
• Through extensions in the AutomationML AR APC format longer device tags can be
replaced.
• An improved exchange of free symbolic addresses is possible through extensions in the
AutomationML AR APC format regarding the assignment list.
• The assignment of the PLC cards to your CPUs is replaced. This way you can restore the
association of the PLC cards to "their" CPU during the data exchange.
• The bus system "PortToPort" can be used if you do not want to export the logical network
but only the connection between the bus ports (port-specific interconnection).
• The bus systems "DRIVE-CLiQ", "IO Link", "PortToPort" and "ET connection" are
exchanged correctly with port-specific interconnection.
• The connections between racks are exchanged with port-specific interconnection.
• Safety addresses at the bus systems are exchanged.
• The manufacturer name at the devices can be replaced. In EPLAN the manufacturer
name is saved in the part reference data.
15
TechTip: PLC data exchange
EPLAN Platform Version 2024
Status: 01. September 2023
The following sections contain information about the bus systems and special features of
different devices.
16
TechTip: PLC data exchange
EPLAN Platform Version 2024
Status: 01. September 2023
*1: Only required if the value deviates from that of the associated PLC box.
*2: Can be filled if it is an ASI dual device.
*3: Can be activated to ignore bus ports that do not require a bus address during the
execution of the 004037 error checking.
17
TechTip: PLC data exchange
EPLAN Platform Version 2024
Status: 01. September 2023
Non-identified fields are not required for the PLC data exchange. If the optional fields (o) are
left empty, the import to the PLC configuration program is possible but post-processing is
required.
Note:
The properties Logical network: Name and Logical network: Bus port is master determine
the association of a station to the DP master or the IO controller.
Within an IO system, there is always a master that is designated through the check box
Logical network: Bus port is master.
7.2. PC station
1. The PC is a separate station and is configured as Rack "0". All other fields of the rack
assignment remain empty.
7.3. Switches
1. The switch is an own station and is configured as Rack "0". All other fields of the rack
assignment remain empty.
3. Bus ports:
All bus ports have the function definition "Network / bus cable connection point, general"
and have the same bus interface names.
a) All the required interface data are entered at the bus port that represents the
input (including Physical network: Bus ID / item number, Bus interface: Main
bus port)
b) At all other bus ports the specifications Physical network: Name, Logical
network: Name and Physical network: Bus ID / item number, amongst others.
can be empty.
18
TechTip: PLC data exchange
EPLAN Platform Version 2024
Status: 01. September 2023
1. The device with the adapter shafts only has one function template for the PLC box
(main function) and if necessary further function templates for PLC inputs and outputs.
2. The "Bus adapter" device has one function template for the PLC box (main function) as
well as function templates for the bus ports.
Ensure that if the bus adapter is used on a head station, the check box PLC card is placed
on head station (ID 20444) is activated in the device properties (PLC structure data tab) at
a bus adapter.
In addition the device identification for the device with the adapter ducts and the "Bus
adapter" device must be carried out in the same way. Either both must be identified by
means of the PLC type designation or both through the specification of a device description
file.
19
TechTip: PLC data exchange
EPLAN Platform Version 2024
Status: 01. September 2023
Identify the first bus port as Bus interface: Main bus port and enter the relevant bus data
here.
20
TechTip: PLC data exchange
EPLAN Platform Version 2024
Status: 01. September 2023
IO-Link devices can also be located as autonomous devices at any point in the network (for
example a motor or sensor) without rack structure.
The property dialog of a device depends on the function category. The property dialog of a
PLC box thus contains the PLC structure data tab. This tab is missing for non-PLC devices.
In this case the required properties can be filled into the property table of the first tab.
Settings at PLC box
ID Property
20161 Configuration project Not empty
20408 PLC station: ID Not empty
21
TechTip: PLC data exchange
EPLAN Platform Version 2024
Status: 01. September 2023
Note:
If a PLC card has no PLC subdevices (meaning that it only consists of one module),
definitions for these can be omitted. The value "0" is entered at the PLC subdevice: Index
property at the associated PLC connection points.
You obtain further information on the definition of PLC subdevices from your PLC
manufacturer or in the TechTip "TechTip-Configuring-PLC-devices-with-device-
description-files".
7.7. Accessories
A PLC card can have accessories.
The requirement for a data exchange is:
• The accessory is defined in the parts management.
• The accessory has a PLC type designation.
• The number of units used is larger than 0.
Note:
You can deactivate the export of the accessories, in the Settings: AutomationML AR APC
export dialog, if needed.
22
TechTip: PLC data exchange
EPLAN Platform Version 2024
Status: 01. September 2023
7.10. Drives
As of AutomationML AR APC version 1.2.0, you can also specify drive components. To do
this, activate the Export drives check box in the Settings: AutomationML AR APC export
dialog.
If this check box is selected, drive components are exported as well. This means all other
functions that have a drive assigned are exported in addition to the PLC devices and bus-
capable devices.
If the check box is deactivated, only PLC devices and bus-capable devices are exported.
Note: During import the corresponding devices must be available in the parts management,
otherwise an empty PLC box is created.
For the export the following properties, amongst others, have to be filled at the drive
components:
ID Property
20576 [1… Drive
64]
20415 Device description: File name
20381 Device description: Index in file
20577 Device type
20161 Configuration project
20417 Object description
20408 PLC station: ID
20416 PLC type designation
23
TechTip: PLC data exchange
EPLAN Platform Version 2024
Status: 01. September 2023
3. Rack → If the device is used as the basis for other devices, this property has to be filled
numerically.
A rack is numbered consecutively with the Rack property.
A CPU or a bus coupler is numbered consecutively with a Rack if the device itself is not
placed on a rack.
PLC devices that can add other PLC devices are also numbered consecutively with
Rack.
4. All PLC devices that are placed on a rack or assigned to a rack receive the number of
the rack via the PLC card is placed on rack ID property.
5. If the PLC card is placed on rack ID property is filled, the position at which the device
is located has to be defined. This is done via the Position (slot / module) property.
24
TechTip: PLC data exchange
EPLAN Platform Version 2024
Status: 01. September 2023
Note:
If necessary, you can create part variants in the EPLAN parts management.
25
TechTip: PLC data exchange
EPLAN Platform Version 2024
Status: 01. September 2023
PLC card:
Data input
ID Property
A M P
20437 PLC card name - - x
20164 Bus coupler / head station x x x
20381 Device description: Index in file x x x
26
TechTip: PLC data exchange
EPLAN Platform Version 2024
Status: 01. September 2023
Data input
ID Property
A M P
20548, 20605, PLC subdevice x: Data length (inputs) x x x
20547, 20551foll.,
20570
20550, 20604, PLC subdevice x: Data length (outputs) x x x
20549, 20560foll.
20607, PLC subdevice x: PLC type designation x x x
20582 foll.
20606, PLC subdevice x: Device description: x x x
20593 foll. Index in file
20417 Object description x x x
20550 PLC device: Data length (outputs) x x x
20548 PLC device: Data length (inputs) x x x
20289 Integrated module - x x
20444 PLC card is placed on head station x x x
20312 Subslot - x x
20439 Safety address: Target *1 - - x
20615 Safety address: Source *1 - - x
20616 Safety address: Upper value *1 - - x *3
20617 Safety address: Lower value *1 - - x *3
20409 PLC station: Type x x x
20580 PLC device: TemplateIdentifier *2 x x x
20614 PLC station: TemplateIdentifier *2 - x x
20576 Drive *2 - x x
*1 Exchange as of AutomationML AR APC Version 1.1.0
*2 Exchange as of AutomationML AR APC Version 1.2.0
*3 Values in EPLAN are write-protected and are only filled via the PLC data exchange
27