Ep Io Configuration en
Ep Io Configuration en
IO configuration in TwinCAT
EtherCAT Box modules
Table of contents
1 Foreword .................................................................................................................................................... 5
1.1 Notes on the documentation.............................................................................................................. 5
1.2 Safety instructions ............................................................................................................................. 6
1.3 Documentation issue status .............................................................................................................. 7
2 Introduction................................................................................................................................................ 8
4 Offline IO configuration........................................................................................................................... 10
5 Online IO configuration........................................................................................................................... 12
7 Appendix .................................................................................................................................................. 23
7.1 Support and Service ........................................................................................................................ 23
1 Foreword
This description is only intended for the use of trained specialists in control and automation engineering who
are familiar with the applicable national standards.
It is essential that the documentation and the following notes and explanations are followed when installing
and commissioning these components.
It is the duty of the technical personnel to use the documentation published at the respective time of each
installation and commissioning.
The responsible staff must ensure that the application or use of the products described satisfy all the
requirements for safety, including all the relevant laws, regulations, guidelines and standards.
Disclaimer
The documentation has been prepared with care. The products described are, however, constantly under
development.
We reserve the right to revise and change the documentation at any time and without prior announcement.
No claims for the modification of products that have already been supplied may be made on the basis of the
data, diagrams and descriptions in this documentation.
Trademarks
Beckhoff®, TwinCAT®, EtherCAT®, EtherCAT G®, EtherCAT G10®, EtherCAT P®, Safety over EtherCAT®,
TwinSAFE®, XFC®, XTS® and XPlanar® are registered trademarks of and licensed by Beckhoff Automation
GmbH. Other designations used in this publication may be trademarks whose use by third parties for their
own purposes could violate the rights of the owners.
Patent Pending
The EtherCAT Technology is covered, including but not limited to the following patent applications and
patents: EP1590927, EP1789857, EP1456722, EP2137893, DE102015105702 with corresponding
applications or registrations in various other countries.
EtherCAT® is registered trademark and patented technology, licensed by Beckhoff Automation GmbH,
Germany.
Copyright
Exclusion of liability
All the components are supplied in particular hardware and software configurations appropriate for the
application. Modifications to hardware or software configurations other than those described in the
documentation are not permitted, and nullify the liability of Beckhoff Automation GmbH & Co. KG.
Personnel qualification
This description is only intended for trained specialists in control, automation and drive engineering who are
familiar with the applicable national standards.
Description of instructions
DANGER
Serious risk of injury!
Failure to follow this safety instruction directly endangers the life and health of persons.
WARNING
Risk of injury!
Failure to follow this safety instruction endangers the life and health of persons.
CAUTION
Personal injuries!
Failure to follow this safety instruction can lead to injuries to persons.
NOTE
Damage to environment/equipment or data loss
Failure to follow this instruction can lead to environmental damage, equipment damage or data loss.
Tip or pointer
This symbol indicates information that contributes to better understanding.
2 Introduction
The IO configuration is the prerequisite for the use of the functions of IO modules in a PLC program. It
covers the appending and parameterization of IO modules in TwinCAT.
This quick start guide describes the basic IO configuration in TwinCAT 3 for IO modules of the type:
• EtherCAT Box (EPxxxx)
• EtherCAT P Box (EPPxxxx)
Link
The complete documentation for TwinCAT 3.
If the configuration is to be prepared in advance of the system configuration as a programming system, e.g.
on a laptop, this is only possible in "Offline configuration" mode. In this case all components have to be
entered manually in the configuration, e.g. based on the electrical design (as described under TwinCAT
configuration setup, manual).
If the designed control system is already connected to the EtherCAT system and all components are
energized and the infrastructure is ready for operation, the TwinCAT configuration can simply be generated
through "scanning" from the runtime system. This is referred to as online configuration.
In any case, during each startup the EtherCAT master checks whether the devices it finds match the
configuration.
To ensure that the latest features/settings of the master can be used, always download the latest ESI file.
Please note the following information.
4 Offline IO configuration
The manual configuration of an EtherCAT Box/EtherCAT P Box in TwinCAT is described in this part of the
documentation.
1. Open the section "I/O" in the "Solution Explorer".
2. Right click on „Devices“ and click on „Add new Item“.
5 Online IO configuration
The configuration of a physically existing EtherCAT Box/EtherCAT P Box in TwinCAT is described in this part
of the documentation.
The scan with existing configuration can also be carried out for comparison.
The online device search can be used if the TwinCAT system is in Config mode (blue TwinCAT icon or blue
indication in the System Manager).
Right-clicking on "I/O Devices" in the configuration tree opens the search dialog.
This scan mode not only tries to find EtherCAT/EtherCAT P devices (or Ethernet ports that can be used as
such), but also NOVRAM, fieldbus cards, SMB etc. However, not all devices can be found automatically.
Ethernet ports with installed TwinCAT real-time driver are shown as "RT Ethernet" devices. An EtherCAT
frame is sent to these ports for testing purposes. If the scan agent detects from the response that an
EtherCAT/EtherCAT P device is connected, however, then the port is immediately shown as an "EtherCAT
Device".
After confirmation with "OK" a device scan is suggested for all selected devices (see the illustration below).
If an EtherCAT device was created in the configuration (manually or through a scan), the I/O field can be
scanned for devices/slaves.
The configuration was established and switched directly to the online state (operational). The EtherCAT
system should be in a cyclic operational state, as shown in the following illustration.
Please note:
• All Boxes should be in OP state
• "frames/sec" should match the cycle time taking into account the sent number of frames
• no excessive "LostFrames" or CRC errors should occur
The configuration is now complete. It can be modified as described under manual procedure.
As can be seen in the illustration below, the connected EtherCAT/EtherCAT P Box (in this case:
EPP1322-0001 and EPP1008-0002) is shown in the TwinCAT tree.
Troubleshooting
If a scan is initiated for an existing configuration, the actual I/O environment may match the configuration
exactly or it may differ. This enables the configuration to be compared.
If differences are detected, they are shown in the correction dialog, so that the user can modify the
configuration as required.
It is recommended to check the "Extended Information" box, in order to show differences in the revision.
Color Explanation
green this EtherCAT/EtherCAT P device has a counterpart on the other side. Both type and revision
match.
blue this EtherCAT/EtherCAT P device is present on the other side, but in a different revision. If the
found revision is higher than the configured revision, the use is possible provided compatibility
issues are taken into account. If the found revision is lower than the configured revision, it is
likely that the use is not possible. The found devices may not support all functions that the
master expects based on the higher revision number.
light blue this EtherCAT/EtherCAT P device is ignored ("Ignore" button)
red this EtherCAT/EtherCAT P device is not present on the other side.
Once all modifications have been saved or accepted, click "OK" to transfer them to the real *.tsm
configuration.
From TwinCAT 3 Build 4020 TwinCAT has the tab “EtherCAT P”. This tab contains a planning tool to
calculate voltages, currents and cable lengths of EtherCAT P system. The figure below shows the tab
EtherCAT P when no device is connected to the junction device (A).
If a device is connected to the junction device (A), you can set the cross-section and the length of the
EtherCAT P cable in the Tab „EtherCAT P“ of the device. See figure below, B).
Are three devices connected to the three ports of the junction device (A), they are displayed as shown in the
figure below.
Wire Gauge Selection of the wire cross-sectional area of the cable which is to be used
AWG 22 = 0.34 mm²
AWG 24 = 0.22 mm²
If you click on the button “Check EtherCAT P System”, all devices that are attached to your TwinCAT tree
are listed as shown in the following figure.
The following figure shows the planning of the EtherCAT P system without a problem. All voltages in the
column “Supply Voltage (V)” are highlighted in green.
The following figure shows the planning of the EtherCAT P system with a problem. The “Supply Voltage (V)”
of Box 5 drops below the “Min. voltage (V)”. The corresponding field is highlighted in red. The error occurs
because longer cables (adjustable in Cable Length (m)) and also AWG 24 instead of AWG 22 cables
(adjustable in Wire Gauge) be used.
This area offers the following three options to adjust the system so that there is no error:
• Provide a higher voltage: There are max. 28.8 V possible.
• Use an EtherCAT P cable with a larger wire cross sectional area (AWG 22 instead of AWG 24).
• New voltage feed.
You can view the topology of your EtherCAT P system, as described in the figure below:
1. In the Click on "Device 1 (EtherCAT)" in the "Solution Explorer"
2. Click on the "EtherCAT" tab
3. Click on the "Topology" button
ð The topology of your EtherCAT P system is displayed.
2.
3.
1.
Fig. 17: Example: Three devices are connected to the three ports of the distributor device.
7 Appendix
Please contact your Beckhoff branch office or representative for local support and service on Beckhoff
products!
The addresses of Beckhoff's branch offices and representatives round the world can be found on her internet
pages:
http://www.beckhoff.com
You will also find further documentation for Beckhoff components there.
Beckhoff Headquarters
Huelshorstweg 20
33415 Verl
Germany
Phone: +49 5246 963 0
Fax: +49 5246 963 198
e-mail: [email protected]
Beckhoff Support
Support offers you comprehensive technical assistance, helping you not only with the application of
individual Beckhoff products, but also with other, wide-ranging services:
• support
• design, programming and commissioning of complex automation systems
• and extensive training program for Beckhoff system components
Hotline: +49 5246 963 157
Fax: +49 5246 963 9157
e-mail: [email protected]
Beckhoff Service
The Beckhoff Service Center supports you in all matters of after-sales service:
• on-site service
• repair service
• spare parts service
• hotline service
Hotline: +49 5246 963 460
Fax: +49 5246 963 479
e-mail: [email protected]