EtherCAT - PC-based Automation - v3-1 - EN
EtherCAT - PC-based Automation - v3-1 - EN
PC-based automation
L
2 L DMS 3.1 EN 01/2011 TD17
Control technology | EtherCAT communication manual
Contents
1 About this documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.1 Document history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.2 Conventions used . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.3 Terminology used . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
1.4 Notes used. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2 Safety instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
5 Technical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
5.1 General data of the EtherCAT bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
5.2 MC-ETC communication card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
5.3 Communication times and drive-specific data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
11 Diagnostics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
11.1 Diagnostics with the »EtherCAT Configurator«. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
11.1.1 "Diagnostics" tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
11.1.2 Representation in the online mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
11.2 Diagnostics with the »PLC Designer« . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
11.2.1 VISU_ETHERCATMaster visualisation template . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
11.2.2 VISU_ECATDiagnostic visualisation template . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
11.2.3 The global variable wState . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
11.2.4 Error scenario (example) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
11.3 Diagnostic codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
11.4 Logbook of the IPC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
11.4.1 Displaying the EtherCAT entries of the logbook. . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
11.4.2 Messages in the logbook of the industrial PC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
13 Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198
Note!
For industrial PCs of the EL 1xx, EL x8xx, CS x8xx and CPC x8xx series in control
technology release 2.5, EtherCAT is not supported.
Documentation Subject
System manuals • Control technology - system structure & configuration
"PC-based automation" • Control technology - system structure & components
Communication manuals • CANopen control technology
"PC-based automation" • Control technology PROFIBUS
• EtherCAT control technology
(Software) Manual • Industrial PC - parameter setting & configuration
"PC-based automation"
Operating Instructions • EL x7xx - built-in panel-PC with TFT display
"Embedded Line Panel PC"
Operating Instructions • CS x7xx - stand-alone operator terminal
"Command Station"
Operating Instructions • CPC x7xx - control cabinet PC
"Control Cabinet PC"
Operating Instructions • EL 1xx - HMI with Windows® CE
"HMI EL 100"
Further software manuals • »Global Drive Control« (»GDC«)
– IPC as gateway - parameter setting & configuration
• »Engineer«
• »PLC Designer« / »PLC Designer« / »PLC Designer - CANopen for Runtime
Systems«
• »VisiWinNET® Smart«
Programming
SW 9400 function library
Creating a network
KHBs for communication modules
Tip!
Manuals and software updates for Lenze products can be found in the download
area at:
http://ww.Lenze.com
Target group
This documentation is intended for all persons who plan, install, commission and maintain
the networking of devices in the field of control technology.
This documentation uses the following conventions to distinguish between different types
of information:
Term Meaning
»Engineer« Lenze engineering tools supporting you during the entire life cycle of a machine
- from the planning phase to maintenance.
»EtherCAT Configurator«
»Global Drive Control« (GDC)
»PLC Designer«
Code "Container" for one or several parameters used for Lenze Servo Drives parameter
setting or monitoring.
Subcode If a code contains several parameters, they are stored in "subcodes".
In the documentation the diagonal slash "/" is used as a separator between the
designation of the code and subcode (e.g. "C00118/3").
IPC Industrial PC
PLC Programmable Logic Controller
AT-EM EtherCAT master
CoE CANopen over EtherCAT
DC Distributed clocks (distributed synchronised clocks)
EoE Ethernet over EtherCAT
FoE File access over EtherCAT
MCF Master configuration file (XML file for EtherCAT bus configuration)
SoE Servo drive profile over EtherCAT
FB Function block (contained in a function library)
FUN Function (contained in a function library)
The following signal words and symbols are used in this documentation to indicate
dangers and important information:
Safety instructions
Structure of safety instructions:
Application notes
2 Safety instructions
Please observe the following safety instructions when you want to commission a controller
or system using an industrial PC.
Danger!
According to our present level of knowledge it is not possible to ensure the
absolute freedom from errors of a software.
If necessary, systems with built-in controllers must be provided with additional
monitoring and protective equipment according to relevant safety regulations
(e.g. law on technical equipment, regulations for the prevention of accidents) so
that an impermissible operating status does not endanger persons or facilities.
During commissioning persons must keep a safe distance from the motor or the
machine parts driven by the motor. Otherwise there would be a risk of injury by
the moving machine parts.
Stop!
If you change parameters in an engineering tool during an existing online
connection to a device, the changes are directly added to the device!
A wrong parameter setting can cause unpredictable motor movements. By
unintentional direction of rotation, too high speed or jerky operation, the driven
machine parts may be damaged!
Note!
Moreover, the HMI series EL 1xx PLC belongs to the "PC based automation"
system. These devices differ considerably from the industrial PCs in performance
and various other details. However the devices of the HMI series EL 1xx PLC are
able to fulfil smaller control functions.
Note!
For industrial PCs of the EL 1xx, EL x8xx, CS x8xx and CPC x8xx series in control
technology release 2.5, EtherCAT is not supported.
Tip!
More detailed information about EtherCAT can be found on the Internet website of
the EtherCAT Technology Group under:
www.EtherCAT.org
4.1.1 Features
Basic structure
Physical structure
An EtherCAT master can communicate with one or more nodes ("slaves").
Internally, the EtherCAT bus has a ring topology. Since Ethernet cables are provided
with a going and a return conductor within one cable, for the installer the topology
seems to be a line. The last slave closes the ring.
Switches, hubs or other infrastructure components known from the Ethernet standard
must not be used because they impair the real-time performance.
4.1.3 Communication
Compared with the conventional Ethernet, the collision-free transfer of telegrams on the
bus makes EtherCAT a real-time capable bus system.
Communication is always initiated by the EtherCAT master, i.e. the industrial PC. A
telegram sent by the master passes through all EtherCAT slaves. The last slave of the
communication chain sends the telegram back to the EtherCAT master. On the way back,
the telegram is directly sent to the EtherCAT master, without being processed in the slaves.
With EtherCAT, telegram processing completely takes place on the hardware level. The
slaves take the data intended for them from the Ethernet frame and write their data back
to the Ethernet frame. Every datagram can be passed on with a minimum delay.
Init
Pre-Operational
Safe-Operational
Operational
E94AYCET009
Status Description
Init • Initialisation phase
• No SDO/PDO communication with the slaves
• Device can be detected by fieldbus scan
Pre-Operational • The fieldbus is active.
• SDO communication (mailbox communication) is possible.
• No PDO communication
Safe-Operational • SDO communication (mailbox communication) is possible.
• PDO communication:
– The input data is transmitted to the master and evaluated.
– The output data have the "Safe" state. It is not forwarded to the basic device.
Operational • Normal operation
– SDO communication
– PDO communication
– Fieldbus synchronisation has been successful (if used)
Note!
• Scanning of the EtherCAT fieldbus is possible in all states:
Determining the physical EtherCAT configuration (fieldbus scan) ( 47)
• SDO communication via the EtherCAT fieldbus is only possible when at least
the Pre-Operational state has been reached.
Auto-increment addressing
The auto-increment addressing is based on the bus topology. Each slave can be addressed
by means of its physical position within the fieldbus.
Slave 1 = address 0
Slave 2 = address -1
Slave 3 = address -2 etc.
The master transmits a telegram to the slave address. Each slave increments the address
during the telegram cycle. A slave to which a telegram is addressed recognises the
telegram by means of the address 0.
A configuration example is given under:
Determining the physical EtherCAT configuration (fieldbus scan) ( 47)
Fixed-address addressing
With the fixed-address addressing, the slaves are addressed via the station address
distributed by the master in the start-up phase.
In the EtherCAT bus topology in the »PLC Designer«, the first slave gets the address 1001,
the second slave the address 1002, etc. The EtherCAT addresses cannot be changed.
The EtherCAT address of the master is 0. Master objects with this address can also be
accessed via CoE.
Example
The first slave of a configuration obtains the following addresses:
0 by the auto-increment mode
1001 by the fixed addressing mode (default address of the first slave in the »EtherCAT
Configurator«).
The Lenze control system supports the following EtherCAT-capable logic and motion
components:
Field devices of other manufacturers can be integrated as logic nodes if they provide a
standard-compliant EtherCAT device description.
The product codes serve to assign device descriptions to the corresponding devices. Device
descriptions can be installed via the device repository.
Importing missing field devices ( 59)
The product codes are part of the device ID.
Structure of the device ID: <Manufacturer ID>_<Productcode><Revision number
Identification Meaning
Manufacturer ID Clear identification for the manufacturer, for Lenze devices: 0x3Bhex (59dec)
Product code Product code of the product range/the device
Revision number Revision number, consists of Major Revision (CANopen behaviour) and
Minor Revision (device version)
If, for instance, a device available at the fieldbus witout an installed device description is
detected during a Fieldbus scan with the »EtherCAT Configurator« ( 47) , a message with
the device ID as hexidecimal value is displayed.
In the example, the device description for a Lenze Servo Drive 9400 HighLine, actuator –
speed, is not installed (0x38079CD9hex = 940023001dec).
Applications:
0 0 0 Empty application
0 0 1 Actuating drive speed
0 0 2 Actuating drive torque
0 0 3 Electronic gearbox
0 0 4 Synchronism with mark synchronisation
0 0 5 Table positioning
0 0 6 Positioning sequence control
0 0 7 PLC application
0 0 8 Reserved
... ...
0 9 9 Reserved
1 x x Reserved for device profiles
1 0 1 CiA402
2 x x Reserved for Lenze applications
2 0 1 Regenerative power supply module application
Note!
In case of a correct connection to the field devices, the LEDs of the
communication card are lit.
Connection RJ45 socket / LEDs ( 34)
A Front panel
B Board
C Coding
D Connection
E EtherCAT connection
Connection RJ45 socket / LEDs
( 34)
MC-ETC-001
Possible applications
Note!
The industrial PC only supports one communication card MC-ETC!
MC-ETC_ELx7xx
Legend
EL x7xx Industrial PC of the EL x7xx series
ETC1 EtherCAT network connection
MC-ETC MC-ETC communication card
The engineering tools required for configuration and parameter setting are installed on
the engineering PC.
»Engineer«, »EtherCAT Configurator« and »PLC Designer« are engineering PC tools
which are independent of each other.
The EtherCAT bus, the industrial PC and the EtherCAT-capable field devices are
configured with the engineering tools highlighted in grey.
L-force »Engineer«
With the »Engineer«, you can ...
parameterise, configure and diagnose ...
– Servo Drives 9400;
– Inverter Drives 8400;
– the I/O system 1000.
access the supported field devices via the gateway function of the industrial PC.
In the Lenze control technology, the states of the PLC and the EtherCAT fieldbuses are
coupled. The PLC controls the fieldbus.
After switch-on the system automatically powers up if the following conditions are
fulfilled:
The IPC is provided with the configuration file for the EtherCAT master (master-XML
file), the contents of which corresponds to the real bus topology.
The IPC is provided with an executable PLC boot project.
The slaves at the fieldbus can be accessed.
The following illustration shows the linkage of the states in the state machine of the Lenze
control technology when the conditions for the automatic acceleration of the system are
fulfilled (boot project with EtherCAT BusInterface and EtherCAT master configuration):
PLC: Original
EtherCAT: Unknown
PLC: Original
EtherCAT: Init
PLC: Original
EtherCAT: Pre-Operational
PLC: Running
EtherCAT: Safe-Operational
PLC: Running
EtherCAT: Operational
Legend
Transitional state, automatic change to next state
Stationary state, change to next state by external actions
PLC State of the PLC
EtherCAT State of the EtherCAT fieldbus
Detailed information about the possible bus states and the required commissioning steps
can be found here:
Commissioning of the system ( 42)
For commissioning of the field devices, an online connection is required between the
engineering PC and the corresponding field device. Depending on the state of the EtherCAT
bus, there are two options:
EtherCAT bus not in operation ( 32)
Condition:
Serial communication:
– You require the E94AZCUS diagnostic adapter.
– Field device and engineering PC (USB interface) must be connected via the diagnostic
adapter.
Communication via CANopen
– You required the EMF2177IB USB system bus adapter .
– Field devices and the engineering PC are connected via the system bus adapter -
either via a point-to-point connection or via the bus system.
Advantage:
Quick option of communication without commissioning of the EtherCAT bus.
Disadvantage:
You require additional hardware.
Tip!
As soon as the fieldbus has been commissioned and at least achieved the Pre-
Operational state, this communication path comes second. We recommend to
commission the EtherCAT bus as soon as possible to be able to use the gateway
function.
Note!
A PLC program does not need to run to be able to use the gateway function.
Condition
The bus configuration has been created using the »PLC Designer« and corresponds to
the hardware configuration.
The bus configuration has been loaded onto the industrial PC using the »PLC Designer«
and is active.
The fieldbus state is at least Pre-Operational.
Advantage:
You do not require any additional hardware.
The entire communication (process data, parameter data, and diagnostic data) are
transferred at the same time using a single bus connection.
5 Technical data
Field Values
Communication medium S/FTP (Screened Foiled Twisted Pair, ISO/IEC 11801 or EN 50173), CAT5e
Network topology Line
Number of nodes Max. 65535 ( in the entire network )
Max. cable length 100 m between two nodes
Baud rate 100 Mbit/s
EtherCAT module Direct mode
Communication profile CoE (CANopen over EtherCAT)
Synchronisation Distributed clocks
Field Values
Possible baud rate 100 Mbit/s
Type within the network Master
Connection RJ45 socket in accordance with EN 50173
Pin assignment
Field Values
User data per frame 1344 bytes
Process data words (PZD) for Servo max. 32 words (64 bytes)
Drives 9400 HighLine
Parameter data (SDO) transfer Max. 128 bytes
Permissible EtherCAT cycle times 1 … 10 ms
Max. number of Servo Drives 9400 User data of the frame (1344 bytes) divided by the process data length
HighLine per frame resulting from setpoints and actual values of the drives:
• for 32 Tx/Rx bytes: 1344 bytes / 64 bytes = 21 drives
• for 16 Tx/Rx bytes: 1344 bytes / 32 bytes = 42 drives
Total signal runtime for a cycle time 5 ms
of 1ms
Drive Control Drive
Runtime of the setpoints 2 ms
Control Drive
Runtime of the actual values 3ms
Drive Control
Cross communication Not possible
Cycle synchronisation with locked +/-1 μs
PLL (jitter)
Note!
• Motion applications always require DC synchronisation.
• DC synchronisation can also be used for Logic applications.
• Some slaves do not support the DC functionality.
– To be able to use the DC function, the first slave connected to the EtherCAT
master (IPC) must be DC-master-capable.
– In the arrangement of the slaves following then, DC-capable and non-DC-
capable devices can be mixed.
• The first EtherCAT node connected to the IPC must be the DC master which
provides the other EtherCAT nodes (including the IPC) with the exact time.
The settings for the DC synchronisation are made with the »EtherCAT Configurator«.
Adjusting task cycle time and DC cycle time ( 38)
Setting the DC synchronisation with the »EtherCAT Configurator« ( 39)
Note!
State change and DC synchronisation for Servo Drives 9400 HighLine
During the state change from Operational to Pre-Operational, the DC
synchronisation is deactivated (C13883/C14883 = 0).
In order to re-activate the sync pulses adjust your PLC program in the following
way:
• Call the function block ResetAxisGroup.
– In this way, the EtherCAT fieldbus is reinitialised.
– The DC synchronisation is active again (C13883/C14883 = 1).
The industrial PC is the fieldbus master in the EtherCAT network. The clock pulse of the
EtherCAT bus system is determined by the cycle time of the task which is assigned to the
drives (slaves) in the »PLC Designer«.
The task settings in the »PLC Designer« only support integer millisecond cycles and the
smallest possible bus cycle is 1 millisecond. This cycle time can be defined via the task
configuration of the »PLC Designer«.
Note!
• The DC cycle time to be set in the »EtherCAT Configurator« must comply with
EtherCAT task cycle time set in the »PLC Designer«.
• Select the cycle times, according to the technical data, between 1 and 10 ms.
Note!
The manual configuration of the slave DC features requires a detailed
knowledge of EtherCAT and the field device. Thus, DC settings should only be
made by experts.
A faulty configuration can cause maloperation and negative influences on the
system.
• The DC cycle time to be set in the »EtherCAT Configurator« must comply with
the EtherCAT task cycle time set in the »PLC Designer«.
• Select the cycle times, according to the technical data, between 1 and 10 ms.
• The (basic) cycle time set here is valid for all Logic and Motion nodes
synchronised by distributed clocks.
• For field devices with communication modules (e.g. Servo Drives 9400 or
Inverter Drives 8400), a synchronisation source must be selected via code
C01120. If the DC setting and the selection of the sync source differ from each
other (C01120 = MXI1 and "DC nused"), the devices cannot be set to the
Operational state.
• For Servo Drives 9400, code C13892/C14892 = 1 must be set (process data
mode = "deterministic mode").
2. Activate the DC functionality for the first slave (DC master) connected to the bus
master (select "DC for synchronization"):
3. Also activate the DC functionality (select "DC for synchronization") for all other
slave devices which are to use the DC synchronisation.
Note!
Maintain all other basic DC settings for the slaves to ensure a correct DC
synchronisation.
More detailed information about how to work with the Lenze engineering tools
can be found in the corresponding manuals and online helps.
Before you start to set up an EtherCAT network, first create a plan of your EtherCAT bus.
Brief description of EtherCAT ( 16)
For the installation of a field device, follow the mounting instructions for the respective
device.
Note!
• The EtherCAT interfaces of all devices must be wired according to the planned
topology. The inputs (IN) and outputs (OUT) must not be reversed because
otherwise the topology changes.
Communication ( 18).
• The structure of the EtherCAT configuration must be identical with the order
of the devices in the »EtherCAT Configurator«.
• The master automatically assigns the node addresses to the slaves.
Therefore, a manual address assignment is not required.
Tip!
Create a separate project folder for every EtherCAT configuration and store the
project and configuration files in this folder.
You can execute a fieldbus scan with the »EtherCAT Configurator« on the IPC in order to
check the physical EtherCAT configuration. Alternatively, the command line tool »scandf«
( 51) is also available on the IPC.
Note!
• Scanning of the EtherCAT fieldbus is also possible without an appropriate
EtherCAT configuration.
• Communication to field devices via the EtherCAT fieldbus is only possible if at
least the Pre-Operational state has been reached.
• Enter the IP address of the industrial PC which should serve as control unit of the
configuration into the Online access configuration dialog box in the Master
configuration area:
2. Execute the Login command in the context menu of the L-force Controller:
After a successful login, the L-force Controller (the industrial PC) is connected to the
engineering PC:
3. After a successful login, execute the Start Search command in the context menu of
the L-force Controller :
Further information on the Start Search dialog box can be found here:
Inserting devices available on the fieldbus into the »EtherCAT Configurator«
project ( 55)
The device cannot be interpolated into the project as the corresponding device
description has not been installed.
In order to install the device in the device repository, the corresponding device
description file from the manufacturer is required. The device identification (device ID)
can be helpful to identify the device (see also EtherCAT product codes ( 24)).
Importing missing field devices ( 59)
After executing the scanfd.exe file, the console displays the result of the fieldbus
scan. The first output line contains the number (x) of slaves found on the fieldbus:
x devices at interface ´ecat´!
The further output lines provide informationen on each slave:
Information Function
DeviceID Node address of the slave:
• Display of the auto-increment address.
• The first slave has the node address 0.
Vendor Name of the manufacturer
ProductCode Product designation in hexadecimal format
(see also EtherCAT product codes ( 24))
Examples:
#x38079cd9: Lenze Servo Drive 9400 HighLine TA speed acuating drive
#x38079d3d: Lenze Servo Drive 9400 HighLine CiA402
RevisionNumber Version number in hexadecimal format
SerialNumber Serial number in hexadecimal format
Troubleshooting
If the fieldbus scan does not find any field devices at the selected interface, the following
error message appears:
The »Engineer« is used to configure and parameterise the Lenze field devices connected to
the EtherCAT bus.
Note!
PDO mapping settings
The mapping required for a cross communication must be created in the
»EtherCAT Configurator«/»PLC Designer«.
During start-up of the PLC, the complete configuration/PDO mapping is written
into the EtherCAT slaves. Mapping entries, e.g. from the »Engineer«, are not
overwritten.
Executing PDO mapping ( 65)
Editing the EtherCAT I/O image ( 66)
7.2.6 Inserting devices available on the fieldbus into the »EtherCAT Configurator« project
After a Fieldbus scan with the »EtherCAT Configurator« ( 47) the EtherCAT nodes are
listed according to their physical order at the fieldbus in the Start Search dialog box:
Note!
We recommend to copy all devices into the project.
After pasting you must check if the order of the devices in the project
corresponds to the physical order in the network.
The »EtherCAT Configurator« is used to set up the EtherCAT configuration. During this
process, the ECAT_PLC_CFG_1.XML and ECAT_MASTER_1.XML configuration files are
created.
These files...
illustrate the physical structure of the EtherCAT configuration;
contain synchronisation settings, SoftMotion parameter values (only of SoftMotion
nodes) and the variable mapping of the EtherCAT nodes.
At a later time, you have to
import the ECAT_PLC_CFG_1.XML file into the control configuration using the »PLC
Designer«.
write the ECAT_MASTER_1.XML file to the IPC.
Note!
• The order of the EtherCAT slaves in the device tree must correspond to the
physical order of the EtherCAT configuration.
• In order that the system works properly, end terminals must not be used
when setting up the system configuration in the device tree.
• For the integration of external devices, the »EtherCAT Configurator« only
supports device descriptions meeting the standards.
• Select the cycle times, according to the technical data, from 1 ... 10 ms. The
cycle times are carried out by the configurations in the »EtherCAT
Configurator« and »PLC Designer«.
Observe the following conditions before you lay out a topology in the »Engineer«:
SoftMotion operation is only possible with Servo Drives 9400 Highline CiA402.
The »EtherCAT Configurator« supports Lenze EtherCAT slaves and EtherCAT devices of
other manufacturers. The integration of third-party devices requires the respective
manufacturer's device descriptions.
Importing missing field devices ( 59)
Note!
The order of the devices in the »EtherCAT Configurator« must correspond with
the physical structure of the EtherCAT configuration.
3. Select the device in the selection list of the Add Device dialog box:
4. Enter the device name in the Name input field (example: X_axis_vertical),
• Click the Add Device button.
5. Add more slaves of the configuration to the device tree:
• Select the device to which a slave is to be added. Select the Insert Device
command from the device context menu.
• Devices missing in the selection list can be added by importing the
corresponding device description file.
Importing missing field devices ( 59)
6. Close the dialog box by clicking the Close button.
Note!
The manual configuration of the slave DC features requires a detailed
knowledge of EtherCAT and the field device. Thus, DC settings should only be
made by experts.
A faulty configuration can cause maloperation and negative influences on the
system.
2. Activate the DC functionality for the first slave (DC master) connected to the bus
master (select "DC for synchronization"):
3. Also activate the DC functionality (select "DC for synchronization") for all other
slave devices which are to use the DC synchronisation.
Note!
Maintain all other basic DC settings for the slaves to ensure a correct DC
synchronisation.
Note!
The SoftMotion Drive: Basic tab is only available for Lenze EtherCAT slaves using
the CiA402 application (SM_Drives).
Not all parameters required for operating a Motion drive acan be set automatically via the
control.
Set the following parameters for the Servo Drives 9400 HighLine CiA402 manually via the
»Engineer« or the »Global Drive Control«:
Homing mode (C02640, to be set machine-dependent)
Touch-probe interface (to be set machine-dependent)
Control of a holding brake (0x60FB/2 | Brake control)
– Depending on the setting of this parameter, the holding brake is applied for a short
time after the conclusion of the home position path. In order to avoid this, set bit 2
in this parameter (disable stop => does not apply the brake in standstill).
Note!
The PDO mapping must only be set for the Servo Drives 9400 HighLine CiA402.
Set the PDO mapping via the process data tab (standard setting for Servo Drives 9400
HighLine CiA402):
Note!
• Always use the system variables within the PLC program in order to access the
input and output objects or assign values to them.
• When copying a device in the »EtherCAT Configurator«, you must rename the
variables for the device copy, otherwise there will be a compiler error during
the compilation in the »PLC Designer«.
In the example, variable names have been assigned to the first three output objects.
Moreover, an offset of ’1000’ has been entered for the first output object (%QW...) and the
first input object (%IW...).
The »EtherCAT Configurator« does not work with byte addresses. The objects are
addressed with the byte address in the control configuration:
2. A directory tree appears. Select the prepared project folder for storing.
3. Confirm the selection by clicking the OK button.
The configuration files ECAT_PLC_CFG_1.XML and ECAT_MASTER_1.XML is now
saved to the project folder.
The »PLC Designer« serves to illustrate the field device topology in the control
configuration.
Tip!
Nodes at other fieldbus systems can be configured in the »PLC Designer«.
EtherCAT with CANopen or PROFIBUS ( 91)
4. Create a block:
Note!
The program organisation unit must contain at least one instruction to function
properly.
Setting Description
Automatic calculation of addresses Every newly added module automatically gets an address which results from
the address of the module integrated before and the size of this module. If a
module is removed from the configuration, the addresses of the subsequent
modules are adapted automatically.
The ExtrasCalculate addresses menu command serves to recalculate the
addresses starting with the currently selected node (module).
Check for overlapping addresses During the compilation of the project, a check for address overlapping is
carried out and overlapping addresses are indicated.
Save configuration files in project The data of the configuration file(s) *.cfg and device files on which the
current control configuration is based are stored in the project.
Note!
We recommend to keep the standard setting. In case of a manual address
allocation, you must ensure that each object address is non-ambiguous in the
entire control configuration.
Detailed information on this can be found in the documentation for the »PLC
Designer«.
• Select the file ECAT_PLC_CFG_1.XML from the project folder and Open:
Note!
• The EtherCAT components of the control configuration (device and variable
names) may only be changed in the »EtherCAT Configurator«!
Changes made in the »PLC Designer« will get overwritten at the import of the
ECAT_PLC_CFG_1.XML file.
• The Axis_IO_Group/IO_Group must not be renamed!
• The Axis_IO_Group/IO_Group is overwritten at every import of the
ECAT_PLC_CFG_1.XML file.
• The Axis_IO_Group/IO_Group is created automatically at every import of the
ECAT_PLC_CFG_1.XML file and assigned a default name.
3. Select the Append Task command from the Task Configuration context menu.
4. Create a new task and make the settings relevant for the respective configuration:
Note!
The task cycle time must be identical with the DC cycle time set in the »EtherCAT
Configurator«.
Use of breakpoints
Note!
The setting of breakpoints in the PLC task assigned to the EtherCAT bus is
permissible.
Please observe:
• When reaching a breakpoint this task will be stopped.
• No new setpoints are calculated (Motion drives come to a standstill), no
deceleration ramp is generated.
• The control still sends EtherCAT frames. After restarting the PLC task, the
interrupted processing is resumed.
• Motion drives continue the interrupted motion, no acceleration ramp is
generated.
• Enter the designation of the new channel in the Name input field.
• Confirm the entry by clicking the OK button.
2. Enter the parameters in the Values column in the Communication parameters
dialog box.
• Double-click the respective value to edit the default values:
• Select the TCP/IP connection type from the Connection selection field.
• Confirm the selection by clicking the OK button.
Tip!
The OnlineRead file from PLC menu command can be used to reload a file from
the IPC onto the »PLC Designer« project.
Note!
Checking of the system startup is only possible for SoftMotion target systems.
To check whether the system has started up correctly, you can do the following
Evaluation of the boot-up error message of the SM_DriveBasic.lib library ( 80);
Evaluation of the Axis_IO_Group state ( 81);
Evaluation of the axis state ( 82).
To check that the system has started up correctly, you can evaluate the boot-up error. For
this purpose, the scope of the global variables contained in the SM_DriveBasic.lib library
includes the element g_strBootupError. This element displays error messages in text
form:
g_strBootupError = no error
no error indicates that the system has started up correctly:
The global Ax_Ref structure of the Motion axes contains the element bCommunication:
In this chapter you will find typical commissioning scenarios and the corresponding state
diagrams, which will help you to carry out simple analyses of the system behaviour.
Initial situation:
The PLC application has been loaded on the IPC.
The ECAT_Master_1.XML file matching the bus topology is available on the IPC.
System behaviour:
The system starts up automatically.
PLC: Original
EtherCAT: Unknown
Read ECAT_MASTER_1.XML
PLC: Original
EtherCAT: Init
PLC: Original
EtherCAT: Pre-Operational
PLC: Running
EtherCAT: Safe-Operational
PLC: Running
EtherCAT: Operational
System is running
Legend
PLC: Transient state of PLC and EtherCAT Load PLC Load PLC application
EtherCAT: Automatic change to next state
PLC: Steady state of PLC and EtherCAT Start PLC Start PLC application
EtherCAT: Change to next by means of an external
action
Reset Reset the PLC.
(origin) The PLC application is deleted.
Initial situation:
The PLC application has been loaded on the IPC.
The ECAT_Master_1.XML file is not available on the IPC or does not match the physical
bus topology.
System behaviour:
EtherCAT remains in "Unknown" state.
The PLC does not start up.
PLC: Original
EtherCAT: Unknown
ECAT_MASTER_1.XML
NO
available?
PLC: Original
EtherCAT: Unknown
YES
Reset
Load PLC
(Original)
Read ECAT_MASTER_1.XML
PLC: Stop
EtherCAT: Unknown
PLC: Original
EtherCAT: Init Load correct
ECAT_MASTER_1.XML
onto IPC
Reset
ECAT_MASTER_1.XML
NO (Original)
OK?
YES
PLC: Original
EtherCAT: Pre-Operational
Load PLC
PLC: Stop
EtherCAT: Pre-Operational
Start PLC
PLC: Running
EtherCAT: Safe-Operational
PLC: Running
EtherCAT: Operational
System is running
Legend
PLC: Transient state of PLC and EtherCAT Load PLC Load PLC application
EtherCAT: Automatic change to next state
PLC: Steady state of PLC and EtherCAT Start PLC Start PLC application
EtherCAT: Change to next by means of an external
action
Reset Reset the PLC.
(origin) The PLC application is deleted.
7.4.3 Updating the PLC application while the EtherCAT configuration remains unchanged
Initial situation:
PLC and EtherCAT are running.
– PLC state: Running
– EtherCAT state: Operational
PLC: Original
EtherCAT: Unknown
Read ECAT_MASTER_1.XML
PLC: Original
EtherCAT: Init
PLC: Original
EtherCAT: Pre-Operational
Load PLC
PLC: Stop
EtherCAT: Pre-Operational
Start PLC
PLC: Running
EtherCAT: Safe-Operational
Start
PLC: Running
EtherCAT: Operational
System is running
Stop PLC
Legend
PLC: Transient state of PLC and EtherCAT Load PLC Load PLC application
EtherCAT: Automatic change to next state
PLC: Steady state of PLC and EtherCAT Start PLC Start PLC application
EtherCAT: Change to next by means of an external
action
Reset Reset the PLC. Start Beginning of the scenario
(origin) The PLC application is deleted.
7.4.4 Stopping and starting the PLC while the configuration remains unchanged
Initial situation:
PLC and EtherCAT are running.
– PLC state: Running
– EtherCAT state: Operational
Start
PLC: Running
EtherCAT: Operational
System is running
Stop PLC
PLC: Stop
EtherCAT: Pre-Operational
Start PLC
PLC: Running
EtherCAT: Safe-Operational
Call
<SMC_ResetAxisGroup>
POU
from PLC application
Legend
PLC: Transient state of PLC and EtherCAT Load PLC Load PLC application
EtherCAT: Automatic change to next state
PLC: Steady state of PLC and EtherCAT Start PLC Start PLC application
EtherCAT: Change to next by means of an external
action
Reset Reset the PLC. Start Beginning of the scenario
(origin) The PLC application is deleted.
In the following diagram the individual commissioning steps and their processing order
are summarised once again. Detailed information on the individual processing steps can
be found in the chapter Detailed commissioning steps ( 45).
Note!
A mixed operation is only possible with industrial PCs which have two additional
slots for communcation cards. A mixed operation is not possible with the
"Command Station".
The EtherCAT bus system can be combined with CANopen or PROFIBUS. This makes sense
if not all field devices are available for the same bus system or a motion bus is required
parallelly to the PROFIBUS. The bus systems are sychronised in the control.
The following combinations are allowed:
CANopen and EtherCAT
– CANopen configuration in the »PLC Designer«
– EtherCAT configuration in the »EtherCAT Configurator«
PROFIBUS (as logic bus) and EtherCAT (as motion bus)
– PROFIBUS configuration in the »PLC Designer«
– EtherCAT configuration in the »EtherCAT Configurator«
The addresses for input and output objects of the PROFIBUS and CANopen stations are
automatically allocated in the »PLC Designer« (standard setting):
Note!
We recommend to keep the standard setting. In case of a manual address
allocation, you must ensure that each object address is non-ambiguous in the
entire control configuration.
Detailed information on this can be found in the documentation/online help of
the »PLC Designer«.
The addresses for input and output objects of the EtherCAT stations are allocated in the
»EtherCAT Configurator«. Afterwards, the EtherCAT configuration is imported into the
»PLC Designer« control configuration.
There are two cases for the control configuration in the »PLC Designer«:
1. PROFIBUS/CANopen before EtherCAT:
– Keep the standard settings for address allocation for the PROFIBUS/CANopen
stations in the »PLC Designer« control configuration. (The addressing of the
PROFIBUS/CAN stations starts with ’0’.)
– Define a sufficient address offset for the first input and output object in the
»EtherCAT Configurator« at the first EtherCAT slave (> PROFIBUS/CAN addresses).
The addresses of the other input and output objects are updated automatically after
the entry.
Thus, address conflicts can be prevented after the import of the EtherCAT
configuration into the »PLC Designer« control configuration.
2. EtherCAT before PROFIBUS/CANopen:
– Do not define any address offsets in the »EtherCAT Configurator«. (The addressing of
the EtherCAT stations starts with ’0’.)
– For PROFIBUS/CANopen stations, no address offsets must be defined in the »PLC
Designer« control configuration. If address offsets are defined, the offsets must be
greater than the EtherCAT addresses.
Settings in the »EtherCAT Configurator« ( 94)
Note!
Always use the system variables within the PLC program in order to access the
input and output objects or assign values to them.
In the example, variable names have been assigned to the first three output objects.
Moreover, an offset of ’1000’ has been entered for the first output object (%QW...) and the
first input object (%IW...).
The »EtherCAT Configurator« does not work with byte addresses. The objects are
addressed with the byte address in the control configuration:
In the »PLC Designer«, the output and input objects are "byte-addressed". The original
address offset of ’1000’ (word level) for the first output and input objects is set accordingly
to '2000" after the import of the EtherCAT configuration. The addresses of the other input
and output objects are also updated.
Note!
• Changes of the EtherCAT configuration in the »PLC Designer« are overwritten
when the EtherCAT configuration is re-imported.
Always adapt the EtherCAT configuration to the »EtherCAT Configurator«.
• In a mixed operation, it must always be ensured that the CAN-Motion task
has the highest priority. The task assigned to the EtherCAT bus should have
the second-highest priority. The tasks assigned to the Logic bus systems
should be configured with a lower priority.
9.1 Usability
The SM_Ethercat.lib and AtEm.LIB function libraries are integrated in the following target
systems:
L-force Logic x700 from version 6.x
L-force Motion x700 from version 6.x
Via the Library manager of the »PLC Designer« you can integrate the function libraries into
the »PLC Designer« project. They can be found in the library directory of the corresponding
target system in the subdirectory "EtherCAT".
Note!
The integration of the SM_EthercatDrive.lib function library into a »PLC
Designer« project is not required, as the function blocks and the functions of this
library are not relevant.
In the course of this chapter only the function blocks and functions required for
the creation of a »PLC Designer« project are described.
Note!
Use the function blocks and functions of the function library AtEm.lib only if the
master is configured completely. Otherwise it can lead to instabilities of the
control system. A check of the master configuration can be executed with the
ecatMasterIsConfigured (FUN) ( 108) function.
The function blocks are equipped with inputs and outputs for the activation of the POU,
the display of the current POU status, and for the output of error messages:
Note!
The identifiers itemised here cannot be found in IEC 61131. For all state inputs
and outputs, always the numerical values are indicated.
The ECAT_STATE structure describes all possible states of the EtherCAT bus system:
The function blocks and functions described in the following support the setting and
reading of the master/slave states.
ecatStartAsync (FB) ( 100)
ecatStopAsync (FB) ( 101)
ecatSetMasterStateAsync (FB) ( 102)
ecatSetSlaveStateAsync (FB) ( 103)
ecatGetMasterState (FUN) ( 105)
ecatGetSlaveState (FUN) ( 106)
ecatGetSlaveStateAsync (FB) ( 107)
Function: This function block sets the master and all slaves connected to the
Operational status.
Library: AtEm.lib
Visualisation: VISU_ecatStartAsync
Note!
State changes are usually carried out automatically by the control system. By
means of this function block you can change the state manually. Please note
that the bus system may become unstable if the state is changed manually.
Inputs (VAR_INPUT)
Outputs (VAR_OUTPUT)
Function: This function block sets the master and all slaves connected to the
"Initialization" state.
Library: AtEm.lib
Visualisation: VISU_ecatStopAsync
Note!
State changes are usually carried out automatically by the control system. By
means of this function block you can change the state manually. Please note
that the bus system may become unstable if the state is changed manually.
Inputs (VAR_INPUT)
Outputs (VAR_OUTPUT)
Function: This function block sets the master and all slaves connected to the
state requested at the function block (see chapter "The EC_T_STATE
structure" ( 98)).
Library: AtEm.lib
Visualisation: VISU_ecatSetMasterStateAsync
Note!
• State changes are usually carried out automatically by the control system. By
means of this function block you can change the state manually. Please note
that the bus system may become unstable if the state is changed manually.
• The ecatSetMasterStateAsync function block can be used to set the master
and the slaves to the Operationalstate. In this case, however, no re-
synchronisation of the distributed clocks initiated Use the ecatStartAsync
(FB) ( 100) function block for this purpose.
Inputs (VAR_INPUT)
Outputs (VAR_OUTPUT)
Function: This function block sets a specific slave to the state requested at the
block (see chapter "The EC_T_STATE structure" ( 98)). The function
block can only be executed if the master is in the Operational state.
Library: AtEm.lib
Visualisation: VISU_ecatSetSlaveStateAsync
Note!
State changes are usually carried out automatically by the control system. By
means of this function block you can change the state manually. Please note
that the bus system may become unstable if the state is changed manually.
Inputs (VAR_INPUT)
Outputs (VAR_OUTPUT)
Function: This function shows the current state of the master (see chapter "The
EC_T_STATE structure" ( 98)).
Library: AtEm.lib
Visualisation: -
Inputs (VAR_INPUT)
Return value
Function: This function shows the current state of the slave (see chapter "The
EC_T_STATE structure" ( 98)).
Library: AtEm.lib
Visualisation: -
Inputs (VAR_INPUT)
Return value
Function: This function block shows the current state of the slave (see chapter
"The EC_T_STATE structure" ( 98)).
Library: AtEm.lib
Visualisation: VISU_ecatGetSlaveStateAsync
Inputs (VAR_INPUT)
Outputs (VAR_OUTPUT)
Function: This function supplies TRUE if the master has been fully configured,
and FALSE, if not.
Library: AtEm.lib
Visualisation: -
Note!
This function should be evaluated at the start of every cycle requiring EtherCAT
functions. If the master has not been fully configured and functions/function
blocks of an EtherCAT function library are called, the control system may become
unstable.
Inputs (VAR_INPUT)
Return value
Example
Function: This function shows the slave ID of the slave the station address of
which (EtherCAT address/physical address) is configured in the
control configuration file (XML). The slave ID is used by the
ecatGetSlaveProp (FUN) ( 111) function.
Library: AtEm.lib
Visualisation: -
Inputs (VAR_INPUT)
Return value
Example
Function: This function shows the slave ID of the slave the auto-increment
address of which is configured in the control configuration file (XML).
The slave ID is used by the ecatGetSlaveProp (FUN) ( 111) function.
Library: AtEm.lib
Visualisation: -
Inputs (VAR_INPUT)
Return value
Example
dwSlaveId := ecatGetSlaveAtPosition(16#FFFC);
Function: This function shows the properties of the slave with the slave ID
transmitted.
Library: AtEm.lib
Visualisation: -
Inputs (VAR_INPUT)
TYPE EC_T_SLAVE_PROP :
wStationAddress : EC_T_WORD;
wAutoIncAddr : EC_T_WORD;
achName : ARRAY [0..79] OF EC_T_CHAR;
Return value
The function blocks and functions described in the following support the diagnostics of the
network:
ecatGetNumConfiguredSlaves (FUN) ( 112)
ecatGetNumConnectedSlaves (FUN) ( 113)
ECATDiagnostic (FB) ( 113)
ResetMasterStatus (FB) ( 114)
SMC_ETCErrorString (FUN) ( 115)
L_ECAT_ReadErrCnt (FB) ( 116)
L_ECAT_ResetErrCnt (FB) ( 117)
The global EtherCAT master structure ECAT_MASTER ( 118)
Function: This function shows the number of slaves that are configured in the
control configuration file (XML).
Library: AtEm.lib
Visualisation: -
Inputs (VAR_INPUT)
Return value
Function: This function shows the number of slaves that are physically
connected in the control system.
Library: AtEm.lib
Visualisation: -
Inputs (VAR_INPUT)
Return value
Function: This function block is the collection of all FBs of the AtEm.lib function
library.
Library: SM_Ethercat.lib
Visualisation: VISU_ECATDiagnostic
Tip!
Using the VISU_ECATDiagnostic visualisation template ( 136) you can operate all
relevant EtherCAT functions and view all Notifications ( 120) in the
"ETHERCATMaster status" template.
Function: This function block resets the Notifications ( 120). It is typically used
after a bus restart. A bus restart is initiated by executing the following
function blocks in the listed order:
1. ecatStopAsync (FB) ( 101)
2. ecatStartAsync (FB) ( 100)
3. ResetMasterStatus (FB)
(After the bus has been restarted, the distributed clocks are
synchronised and the EtherCAT bus is in the Operational state.)
Library: SM_Ethercat.lib
Visualisation: -
Outputs (VAR_OUTPUT)
Function: On the basis of the error number (ErrorID), this function returns the
corresponding error description as a string with max. 100 characters.
Library: SM_Ethercat.lib
Visualisation: -
Inputs (VAR_INPUT)
Return value
Function: This function block reads the telegram error counters of all connected
slaves (see Error counters of the EtherCAT slaves ( 143)). This block
should be executed cyclically at longer intervals (e.g. every 10
minutes) to evaluate the state of the bus. The values in the
abRedErrCnt array serve to evaluate the cabling quality/EMC
sensitivity of the EtherCAT bus.
Library: SM_Ethercat.lib
Visualisation: VISU_L_ECAT_ReadErrCnt
Inputs (VAR_INPUT)
Outputs (VAR_OUTPUT)
Function: This function block resets the telegram error counters of all connected
slaves (see Error counters of the EtherCAT slaves ( 143)). This block
should be executed before one of the telegram error counters of the
slaves has reached the maximum value of 255.
Library: SM_Ethercat.lib
Visualisation: VISU_L_ECAT_ResetErrCnt
Inputs (VAR_INPUT)
Outputs (VAR_OUTPUT)
How to find the variable in the Library Manager of the »PLC Designer«:
Note!
Only one EtherCAT master instance can be executed on an IPC. (The global
variable g_ecatMaster[1] contains the master state for the ECAT1 interface.)
Status Identifier
Unknown SMC_ECATSTATE_UNKNOWN
Initialization SMC_ECATSTATE_INIT
Pre-Operational SMC_ECATSTATE_PREOP
Bootstrap Mode (Is currently not supported.) SMC_ECATSTATE_BOOT
Safe-Operational SMC_ECATSTATE_SAFEOP
Operational SMC_ECATSTATE_OP
9.7.8.3 Variables
The variables of the EtherCAT master structure ECAT_MASTER provide additional
information besides the state of the EtherCAT bus system:
9.7.8.4 Notifications
If an event (information, warning, error) occurs on the EtherCAT bus system, the user or the
PLC program receives a "notification".
The notifications only provide information about the fact that an event of a certain type
has occurred.
In the »PLC Designer«, the notifications are implemented as boolean elements in the
global EtherCAT master structure ECAT_MASTER ( 118).
Overview of notifications
Notification Description
bEC_NOTIFY_ETH_LINK_ This notification is set when the interrupted connection between the EtherCAT
CONNECTED master and the first slave (see also bEC_NOTIFY_ETH_LINK_NOT_CONNECTED) is
restored.
bEC_NOTIFY_STATUS_ When cyclic frames are processed, the EtherCAT master checks whether the ERROR
SLAVE_ERROR bit has been set in the AL-STATUS register of at least one of the slaves. If this is the
case, the error is indicated.
bEC_NOTIFY_RED_LINEBRK Redundancy support (is currently not supported):
This notification is set for every bus/communication interruption detected by the
master (see also bEC_NOTIFY_ETH_LINK_NOT_CONNECTED).
bEC_NOTIFY_NOT_ALL_ When cyclic frames are processed, the EtherCAT master checks that all slaves are still
DEVICES_OPERATIONAL in the Operational state. If at least one slave is not in the Operational state, this this
notification is set.
bEC_NOTIFY_ETH_LINK_ This notification is set when the connection between the EtherCAT master and the
NOT_CONNECTED first slave is interrupted.
Note: A missing connection can only be detected directly at the master. If, for
instance, a switch or a multi-channel probe is connected downstream of the master
and the connection is interrupted downstream of these devices, missing frames
and/or the error message EC_NOTIFY_CYCCMD_WKC_ERROR are indicated. (This
only applies to the cabling directly at the master.)
bEC_NOTIFY_SB_STATUS Bus state notification:
This notification is set when the EtherCAT bus is scanned.
bEC_NOTIFY_DC_STATUS DC state notification:
This notification is either received after starting the master (ecatStart) or after
loading and then starting the PLC program, if all slave clocks have successfully been
updated with the compensation values for the transmission delay.
bEC_NOTIFY_DC_SLV_SYNC This notification is set when the maximum permissible DC deviation for the
connected slaves (code C1082/2 / C1582/2) has been exceeded.
dwEC_NOTIFY_DC_SLV_ Indicates the limit value of the DC deviation (in nanoseconds):
SYNCDeviation 0: 1 ns
1: 3 ns
2: 7 ns
3: 15 ns
4: 31 ns
5: 63 ns
6: 127 ns
7: 255 ns
...
31:2147483647 ns
32: reserved
bEC_NOTIFY_DCL_STATUS DC latching state notification:
This notification is set after the master has been started (ecatStart) and the DC latch
instance has been initialised correctly.
bEC_NOTIFY_DCL_SLV_ DC latch notification (single mode):
LATCH_EVT This notification is set when a slave generates a latch event in "single latch mode".
Notification Description
bEC_NOTIFY_FRAME_ This notification is set when the response frame currently received by the master
RESPONSE_ERROR does not correspond with the expected frame or when the master has received no
response at all.
bEC_NOTIFY_CYCCMD_ This notification is set if within a cycle the current value of the working counter in
WKC_ERROR the control/PLC does not correspond with the value read back via the fieldbus. (Not
all of the slaves addressed have reached.)
The function blocks described in the following support the upload and download of CoE
parameters:
ecatCoeSdoDownloadReq (FB) ( 122)
ecatCoeSdoUploadReq (FB) ( 123)
Function: This function block activates the download of a CoE parameter to the
slave.
Library: AtEm.lib
Visualisation: VISU_ecatCoeSdoDownloadReq
Inputs (VAR_INPUT)
Outputs (VAR_OUTPUT)
Function: This function block activates the upload of a CoE parameter from the
slave to the master.
Library: AtEm.lib
Visualisation: VISU_ecatCoeSdoUploadReq
Inputs (VAR_INPUT)
Outputs (VAR_OUTPUT)
10.1 Calculating the total access time to the peripheral devices (TCorrection)
The cycle times depend on the number of configured field devices and the IPC hardware
used.
Note!
The LX 800 system is not supported with EtherCAT.
Example
The time TTask utilisation cannot be calculated. It is determined in the running system. For
this the system is commissioned on the basis of cycle times that are sufficiently long, and
afterwards it is optimised.
In order to detect the task utilisation, use the task editor in the »PLC Designer«.
10.2.1 Display of the system utilisation in the »PLC Designer« with the task editor
Note!
In order to be able to display the utilisation for all tasks, the IEC61131
SysTaskInfo library has to be included in the project.
2. Open the task configuration in the online mode of the »PLC Designer«.
Initial situation
A project has been completely created with, for instance, a Motion task and two tasks of
lower priority.
Note!
The safety factor 1.5 is included in the calculation.
The minimum cycle time Tmin for a system results from the sum of the times detected
before, multiplied by the safety factor:
Tmin > Safety factor * ( TTask utilisation + TCorrection )
Example
Configuration: System with Intel Celeron 1 GHz processor and six motion axes
Detected access time Result
Calculated correction value TCorrection 160 μs (= 130 μs + 6 * 5 μs
Value read from task configuration: TTask utilisation 500 μs
Actual required computing time 660 μs
Minimum cycle time including the safety factor 1.5 Tmin 990 μs
Actual cycle time 1000 μs
11 Diagnostics
This chapter provides information about diagnostic tools, error scenarios for the most
frequent user errors and system error messages.
Use the following tools for diagnostics:
Diagnostics with the »EtherCAT Configurator« ( 131)
Diagnostics with the »PLC Designer« ( 134)
Diagnostic codes ( 140) in the »Engineer« and the »WebConfig«
Logbook of the IPC ( 140)
The »EtherCAT Configurator« provides the following tools for system diagnostics:
"Diagnostics" tab ( 131)
Representation in the online mode ( 133)
When an online connection has been established to the IPC, the Diagnostics tab of the
EtherCAT master displays different status information on the master, distributed clocks
and the EtherCAT nodes.
The checkmarks (;) are set at the corresponding status information if this applies.
When an online connection has been established to the Industrial PC, the icon in front of
the single entries in the configuration tree provides the information on the status of the
corresponding EtherCAT node (in the example: two green arrows each):
Icon Meaning
Device is online
• Successful online connection to the L-force controller
• Successful online connection to the EtherCAT node. Status of the node:
Operational (OP)
Device status is unknown
• Status: Unknown
Device is online
Possible states of the EtherCAT node:
• INIT (initialisation)
• PREOP (Pre-Operational)
• SAFEOP (Safe-Operational)
no icon Device is offline
• No connection to the Industrial PC (L-force controller)
The »PLC Designer« provides the following tools for system diagnostics:
The global EtherCAT master structure ECAT_MASTER ( 118)
VISU_ETHERCATMaster visualisation template ( 135)
VISU_ECATDiagnostic visualisation template ( 136)
Function blocks and functions for diagnosing the network ( 112)
The global variable wState ( 137)
Note!
• When the target system is set to L-force_Motion_x700_Vx.xx.xx, the
displays of the "EtherCAT master status" are always correct even if no
instance of ECATDiagnostic (FB) ( 113) is available in the »PLC Designer«.
• When the target system is set to L-force_Logic_x700_Vx.xx.xx, the displays
of the "EtherCAT master status" are only updated if an instance of
ECATDiagnostic (FB) ( 113) is called in the »PLC Designer« project. Without
such an instance, there will be no display.
First, all notification fields are white. If a notification is set or active (TRUE), the
corresponding field is displayed in green or red:
Red fields represents an "error".
Green fields display an "information".
When Motion nodes are used for control, »PLC Designer« displays the current status of the
control acceleration in the global variable wState of the "AxisGroup" structure.
The value of the wState variable has the following meaning:
Additional information on the type of error occurred are provided in the global variables of
the SM_DriveBasic.lib function library.
The g_strBootupError variable, for instance, contains an error text:
Here, an SDO access of the control has not been responded by the slave.
A slave is switched off or removed from the bus system while the system is in operation.
During operation, the master cyclically sends EtherCAT commands to read the process data
from the slave and to write process data to the slave. The working counter (WKC) is
incremented by the corresponding value through the slaves.
When a slave is switched off or removed, the master generates the
EC_NOTIFY_CYCCMD_WKC_ERROR notification to indicate such an event.
The slave can be re-commissioned by calling the function block SMC_ResetAxisGroup
(SM_DriveBasic.lib function library) or by a bus restart within the PLC program . (The
distributed clocks are synchronised and the EtherCAT bus is in the Operational state.)
Bus restart
Since the SMC_ResetAxisGroup function block cannot be used in logic systems, you must
program a bus restart in your PLC program. A bus restart is executed through call sequence
of the following function blocks:
1. ecatStopAsync (FB) ( 101)
2. ecatStartAsync (FB) ( 100)
3. ResetMasterStatus (FB) ( 114)
For a more detailed analysis of a problem, function blocks (see EtherCAT function libraries
( 96)), EtherCAT parameters (see Parameter reference ( 165)) and the IPC logbook ( 140)
are available.
Note!
The ClearLog button deletes the contents of the logbook on the IPC without a
prior confirmation prompt.
Enable the "EtherCAT" checkbox to display only the EtherCAT entries of the logbook.
• Consecutive number • Type of EtherCAT message: CTRL, PRJ, CFG, SLV, PRJ, LLA, RAP, ISW
• Date/time of occurrence (see System error messages ( 157))
• Location of occurrence • Error description
• Message type: error / warning / information
...
00006 14-06-2008 10:47:56 CTRL: Master state change from <init> to <unknown>
EtherCAT Master Stack Communication on bus systems
Information
00004 14-06-2008 10:47:50 CTRL: Master state change from <unknown>to <init>
EtherCAT Master Stack Communication on bus systems
Information
...
The EtherCAT slaves have numerical error counters for detecting and analysing error
states. All error counters have a limited counting range of 0 ... 255. After the maximum
value of 255 is reached, no "wrap-around" takes place. If the PLC application is to make a
sensible evaluation of the error counters, these must be deleted by the application after
the evaluation via a write access.
The EtherCAT differ betweeen errors detected in the slave for the first time (red error) and
forwarded errors, i.e. errors that have already been detected in a previous slave (green
error).
When the corresponding error counters are evaluated, an error in the EtherCAT network
can be clearly assigned in a bus segment or a slave.
The different error counters are assigned to the following IPC parameters:
The L_ECAT_ReadErrCnt (FB) ( 116) function block enables the PLC application to access
the telegram failure error counter by reading.
The L_ECAT_ResetErrCnt (FB) ( 117) function block resets the error counters to the initial
value 0.
Example
Once per minute the PLC reads the error counters and evaluates the contents. If it
recognises a error counter value of 250, the application will reset the error counters.
Depending on the EMC load of the network environment, approx. 1 to 2 frame errors per
day in the bus are normal. The error counters should not reach the value of 255.
In the following sections, the causes and remedies for the most frequent user errors are
described.
The state diagram and the table on the next page serve to localise an error.
PLC: Original
EtherCAT: Unknown
ECAT_MASTER_1.XML
NO
available?
PLC: Original
EtherCAT: Unknown
YES
Reset
Load PLC
(Original)
Read ECAT_MASTER_1.XML
PLC: Stop
EtherCAT: Unknown
PLC: Original
EtherCAT: Init Load correct
ECAT_MASTER_1.XML
onto IPC
Reset
ECAT_MASTER_1.XML
NO (Original)
OK?
YES Reset
(Original)
PLC: Original
EtherCAT: Pre-Operational
YES NO
PLC: Original
EtherCAT: Pre-Operational
Load PLC
PLC: Stop
EtherCAT: Pre-Operational
Start PLC
PLC: Running
EtherCAT: Safe-Operational
PLC: Running
EtherCAT: Operational
System is running
Stop PLC
PLC: Stop
EtherCAT: Pre-Operational
Start PLC
PLC: Running
EtherCAT: Safe-Operational
Call
<SMC_ResetAxisGroup>
POU
from PLC application
Causes Remedies
Logic system: No update task has been created for the Create an update task.
IO_Group.
SoftMotion system: No update task has been created for
the Axis_IO_Group.
During the start-up of the EtherCAT bus, a check is carried out at the transition InitPre-
Operational to determine if the physical bus configuration corresponds to the configured
bus configuration. If theses configurations are different the master does not enter the Pre-
Operational state.
Furthermmore, the slaves are reset during the transition from initialization in Pre-
Operational. If this fails because, for instance, a slave denies the configuration, the master
does not enter the Pre-Operational state.
Causes Remedies
The current master configuration has not been loaded on Load the current master configuration onto the control
the control system or imported into the »PLC Designer« system or import it into the »PLC Designer« project.
project (Axi-IO_Group or IO_Group are missing)
Faulty master configuration Correct the master configuration with the »EtherCAT
• Slaves are missing. Configurator« and load it onto the control system or
• Slaves have been interchanged or their configuration import it into the »PLC Designer« project.
is faulty.
• A wrong slave type has been configured.
Wiring error Check the wiring and correct it.
• Cabling is incomplete or there is a cable break. 1. Stopping the PLC program: Execute the menu
• Faulty cabling of the slave command OnlineStop.
• The inputs and outputs of the EtherCAT 2. Plug in the bus cable.
communication module are reversed (IN/OUT 3. Execute the SMC_ResetAxisGroup function block or a
connections). Bus restart ( 139).
Causes Remedies
Boot project is missing or faulty. • Start the control unit/PLC manually.
• Create a boot project.
• Correct the boot project.
Note: Only save a tested and consistent boot project to
the control unit.
The task and DC-cycle times set in the logic/motion Set identical task and DC cycle times.
system differ. Note: Unlike loading a project and starting the PLC
program via the »PLC Designer«, starting via a boot
project also starts the PLC - even if there is a DC/task
cycle difference!
The control unit/PLC transfers the EtherCAT bus to the Operational state if it set to the RUN
mode.
The EtherCAT bus can only reach the Operational state if the bus has already been set to
the Pre-Operational state.
Causes Remedies
The current master configuration has not been loaded on Load the current master configuration onto the control
the control system or imported into the »PLC Designer« system or import it into the »PLC Designer« project.
project.
The DC cycle time of the master configuration is not Set identical task and DC cycle times.
identical with the task cycle time of the Axis_IO_Group/ Note: Unlike loading a project and starting the PLC
IO_Group. program via the »PLC Designer«, starting via a boot
project also starts the PLC - even if there is a DC/task
cycle difference!
Causes Remedies
The »PLC Designer« project does not access the EtherCAT Check and correct the mapping settings in the master
inputs and outputs via symbolic addresses, but via configuration.
logical addresses. This causes problems if the bus Executing PDO mapping ( 65)
structure, the PDO selection, etc. have been changed. During start-up of the PLC, the complete configuration/
For the Servo Drive 9400 HighLine, the ports are not PDO mapping is written into the EtherCAT slaves.
mapped correctly or not mapped at all in the »Engineer«, Mapping entries, e.g. from the »Engineer«, are not
and parameters have therefore not been transferred to overwritten.
the device.
If the shafts make clicking noises, this is often caused by faulty synchronisation or a shift
of data in the process image.
Causes Remedies
The current master configuration has not been loaded on Load the current master configuration onto the control
the control system or imported into the »PLC Designer« system or import it into the »PLC Designer« project.
project.
Faulty settings in master configuration Carry out the following settings for the master
configuration on the Slave device tab of the »EtherCAT
Configurator«:
• Select "DC".
• Enable "Sync0". (Standard setting)
• Set Sync Unit Cycle "x 1". (Standard setting)
The DC cycle time of the master configuration is not Set identical task and DC cycle times.
identical with the task cycle time of the Axis_IO_Group/ Note: Unlike loading a project and starting the PLC
IO_Group. program via the »PLC Designer«, starting via a boot
project also starts the PLC - even if there is a DC/task
cycle difference!
For a Servo Drive 9400 HighLine, the synchronisation Correct the setting in C01120 (synchronisation source).
source of the EtherCAT communication module has not
been entered correctly in C01120. During the
initialisation, the Softmotion Kernel sets C01120.
If the last 9400 SoftMotion drive makes clicking noises, Check the wiring and correct it.
the wiring of in- and outputs of the communication Especially check the wiring at the input and output of the
module (IN/OUT ports)may have been reversed. EtherCAT communication module (IN/OUT ports).
Note: A bus scan does not indicate this error!
Causes Remedies
The EtherCAT bus could not be set to the Operational See: EtherCAT bus does not enter the Operational state
state ( 148)
The current master configuration has not been loaded on Load the current master configuration onto the control
the control system or imported into the »PLC Designer« system or import it into the »PLC Designer« project.
project.
The process image on the EtherCAT bus does not comply Correct the current master configuration and load it onto
with the one in the control. the control system or import it into the »PLC Designer«
project.
In the EtherCAT Configurator, the increments per Check the following settings and correct them if
revolution are not set for the SoftMotion scaling/ required:
mapping. • Gearbox ratio in the »PLC Designer« project
• Mapping settings in the master configuration
Executing PDO mapping ( 65)
• During start-up of the PLC, the complete
configuration/PDO mapping is written into the
EtherCAT slaves. Mapping entries, e.g. from the
»Engineer«, are not overwritten.
• Tip: In case of the Servo Drive 9400 HighLine Cia402,
65536 increments per revolution are correct.
The »PLC Designer« project does not access the EtherCAT Check and correct the mapping settings in the master
inputs and outputs via symbolic addresses, but via configuration.
logical addresses. This causes problems if the bus Executing PDO mapping ( 65)
structure, the PDO selection, etc. have been changed. During start-up of the PLC, the complete configuration/
For the Servo Drive 9400 HighLine, the ports are not PDO mapping is written into the EtherCAT slaves.
mapped correctly or not mapped at all in the »Engineer«, Mapping entries, e.g. from the »Engineer«, are not
and parameters have therefore not been transferred to overwritten.
the device.
...
xxxxx DD-MM-YYYY hh:mm:ss CTRL: Cannot spawn Remote API Server Communication on bus
EtherCAT Master Stack systems
Error
...
The remote API server enables the access from an engineering tool (e.g. the »Engineer«)
which superimposes the IPC to an EtherCAT slave parameter. The access is made via CoE
(CANopen over EtherCAT).
Causes Remedies
No master configuration or a master configuration not • Create a master configuration with the »EtherCAT
matching the physical bus has been loaded on the Configurator« and load it onto the control system.
control system. SDO communication with the slave field • Load the current master configuration onto the
devices is not possible. control system.
...
...
This error message is entered into the logbook when the error is detected for the first time
and then cyclically every 5 seconds until 65535 messages have occurred or the error is not
active anymore.
Causes Remedies
The bus cable between the IPC and the first node has 1. Stopping the PLC program: Execute the menu
been unplugged. command OnlineStop.
2. Plug in the bus cable.
3. Execute the SMC_ResetAxisGroup function block or a
Bus restart ( 139).
(For this, see also Logbook message: "Ethernet cable
connected" ( 153).)
...
...
When an unplugged bus cable is plugged in again into the first EtherCAT node, this
message is entered into the logbook of the industrial PC. The EtherCAT connection has
been re-established.
As the EtherCAT slave sync managers do not receive any messages, a time-out expires. This
information is sent to the master.
11.6.11 Logbook messages: "Slave at index X missing" with "Cyclic command WKC error ..."
...
xxxxx DD-MM-YYYY hh:mm:ss SLV: Cyclic command WKC error on LWR - Address: 0x10000 -
EtherCAT Master Stack WKC act/set=2/7
Communication on bus systems
Error
...
...
The "Cyclic command WKC error" message is entered cyclically every 5 seconds into the
logbook of the industrial PC until the error is not active anymore.
Causes Remedies
The bus cable between two EtherCAT nodes has been 1. Stopping the PLC program: Execute the menu
unplugged. command OnlineStop.
2. Plug in the bus cable.
3. Execute the SMC_ResetAxisGroup function block or a
Bus restart ( 139).
(For this, see also Logbook message: "Cyclic command
WKC error ..." ( 156).)
The node at position X is deenergised. Switch-on the node and execute the
SMC_ResetAxisGroup function block or a Bus restart
( 139).
...
xxxxx DD-MM-YYYY hh:mm:ss SLV: Cyclic command WKC error on LWR - Address: 0x10000 -
EtherCAT Master Stack WKC act/set=2/7
Communication on bus systems
Error
...
The "Cyclic command WKC error" message is entered cyclically every 5 seconds into the
logbook of the industrial PC until the error is not active anymore.
Causes Remedies
The EtherCAT slave sync managers do not receive any 1. Stopping the PLC program: Execute the menu
messages and a time-out expires. command OnlineStop.
Example: An unplugged bus cable between two 2. Plug in the bus cable.
EtherCAT nodes has been replugged. Afterwards, 3. Execute the SMC_ResetAxisGroup function block or a
however, neither the SMC_ResetAxisGroup function Bus restart ( 139).
block nor a Bus restart ( 139) have been executed.
For system error messages, the following error types are distinguished:
Note!
The WKC error messages (highlighted in blue in the table) are entered into the
logbook when the error is detected for the first time and then cyclically every 5
seconds until 65535 messages have occurred or the error is not active anymore.
In the following table, "[...]" serves as a wildcard for addresses, indexes, message
types, error numbers, etc.
General error codes are provided at the dwErrorCode output of the EtherCAT function
blocks (see chapter "EtherCAT function libraries" ( 96).
In the Logbook of the IPC ( 140) the error messages are output as additional error
information:
...
...
11.7.3 CANOpen over EtherCAT (CoE) SDO error codes (0x98110040 ... 0x9811005Dhex)
Remote API error codes are software-internal errors when the EtherCAT master stack is
accessed. The applications and engineering tools »EtherCAT OPC server«, »EtherCAT
Configurator«, »Engineer« use the remote API.
12 Parameter reference
This chapter complements the parameter list of the online documentation for the
industrial PC by the parameters of the Communication card MC-ETC:
Parameters of the MC-ETC communication card in slot 1 ( 166)
Interface parameters of the MC-ETC communication card in slot 1 ( 167)
Parameters of the MC-ETC communication card in slot 2 ( 182)
Interface parameters of the MC-ETC communication card in slot 2 ( 183)
Note!
• Only one MC-ETC communication card can be installed per industrial PC. The
»WebConfig« designation of the card is MC-ETC1, independently of the slot in
which the communication card has been inserted.
• Depending on the slot used, the code numbers differ by an offset of ’500’. To
obtain the code numbers for a communication card inserted in slot 2, an
offset of ’500’ must be added to the code numbers of a card inserted in slot 1.
Tip!
For general information about parameters please see the online documentation
for the industrial PC.
C1031
Parameter | Name: Data type: VISIBLE_STRING
C1031 | Device: type key Index: 23544d = 5BF8h
C1032
Parameter | Name: Data type: VISIBLE_STRING
C1032 | Device: type version Index: 23543d = 5BF7h
C1033
Parameter | Name: Data type: VISIBLE_STRING
C1033 | Device: name Index: 23542d = 5BF6h
C1034
Parameter | Name: Data type: VISIBLE_STRING
C1034 | Device: software revision Index: 23541d = 5BF5h
C1035
Parameter | Name: Data type: VISIBLE_STRING
C1035 | Device: hardware revision Index: 23540d = 5BF4h
C1036
Parameter | Name: Data type: VISIBLE_STRING
C1036 | Device: serial number Index: 23539d = 5BF3h
C1037
Parameter | Name: Data type: VISIBLE_STRING
C1037 | Device: manufacturer Index: 23538d = 5BF2h
C1038
Parameter | Name: Data type: VISIBLE_STRING
C1038 | Device: manufacturing date Index: 23537d = 5BF1h
C1074
Parameter | Name: Data type: VISIBLE_STRING
C1074 | ECAT MAC address Index: 23501d = 5BCDh
C1080/1
Parameter | Name: Data type: DATE
C1080/1 | ECAT Master Configuration Date Index: 23495.1d =
0x5BC7.0x01h
Date of the master configuration file in the file system of the IPC
The file manager determines the date of the master configuration file in the index ...\storage\IPC\PLC. If this file
does not exist, the date "01/01/1980 00:00:00" is displayed.
; Read access
Write access
CINH
PLC STOP
No transfer
C1080/2
Parameter | Name: Data type: UNSIGNED_32
C1080/2 | ECAT Master Config Checksum Index: 23495.2d =
0x5BC7.0x02h
Checksum of the master configuration file in the file system of the IPC
The data manager determines the checksum of the master configuration file in the ...\storage\IPC\PLC directory. If
this file does not exist, the value "0x00000000" is displayed.
; Read access
Write access
CINH
PLC STOP
No transfer
C1080/3
Parameter | Name: Data type: UNSIGNED_32
C1080/3 | ECAT Stack Master Checksum Index: 23495.3d =
0x5BC7.0x03h
The stack determines the checksum of the loaded/active master configuration file. If there is no loaded/active
master configuration file, the value "0x00000000" is displayed.
; Read access
Write access
CINH
PLC STOP
No transfer
C1080/4
Parameter | Name: Data type: UNSIGNED_8
C1080/4 | ECAT Bus Scan Match Index: 23495.4d =
0x5BC7.0x04h
Brief information whether the master configuration corresponds to the physical bus structure. The master
configuration of the stack is compared with the actual bus structure.
Selection list (Lenze setting printed in bold) Information
0 No match The master configuration does not correspond to the bus
structure.
1 OK The master configuration corresponds to the bus
structure.
; Read access
Write access
CINH
PLC STOP
No transfer
C1081/1
Parameter | Name: Data type: UNSIGNED_32
C1081/1 | ECAT State Change Command Index: 23494.1d =
0x5BC6.0x01h
Note: The parameter should only be set to analyse start problems (e.g. master/bus does not reach the Operational
state). Setting this parameter only sets the state of the master stack. All other nodes remain in their previous states.
Changing the master state via this code may result in an unstable system state.
• A higher bus state than the one initiated by the PLC can never be reached.
• A reload of the master configuration cannot be initiated.
• Loading the PLC program normally stops the bus and sets it to the Pre-Operational state. If this is not possible,
the bus remains in the Unknown or Initialisation state.
• Starting the PLC program normally sets the bus to the Operational state. If this is not possible, the bus remains
in the Pre-Operational or Safe Operational state.
Selection list (Lenze setting printed in bold)
0 No Operation
1 Init
2 Pre-Operational
4 Safe-Operational
8 Operational
; Read access ; Write access
CINH
PLC STOP ; No transfer
C1081/2
Parameter | Name: Data type: UNSIGNED_8
C1081/2 | ECAT Master State Index: 23494.2d =
0x5BC6.0x02h
C1081/3
Parameter | Name: Data type: UNSIGNED_8
C1081/3 | ECAT Master in requested Mode Index: 23494.3d =
0x5BC6.0x03h
The state is usually requested by the PLC. For possible requested states see C1080/1 ( 168).
• Value "0": Master is not in the requested state.
• Value "1": Master is in the requested state.
Display range (min. value | unit | max. value)
0 1
; Read access
Write access
CINH
PLC STOP
No transfer
C1081/4
Parameter | Name: Data type: UNSIGNED_8
C1081/4 | ECAT Slaves in requested Mode Index: 23494.4d =
0x5BC6.0x04h
• Value "0": One or more slaves are not in the state requested by the master.
• Value "1": All slaves are in the state requested by the master.
Display range (min. value | unit | max. value)
0 1
; Read access
Write access
CINH
PLC STOP
No transfer
C1081/5
Parameter | Name: Data type: UNSIGNED_32
C1081/5 | ECAT Master State Summary Index: 23494.5d =
0x5BC6.0x05h
C1081/6
Parameter | Name: Data type: UNSIGNED_8
C1081/6 | ECAT BusScan Index: 23494.6d =
0x5BC6.0x06h
C1082/1
Parameter | Name: Data type: BITFIELD_3
C1082/1 | ECAT Distributed Clocks State Index: 23493.1d =
0x5BC5.0x01h
C1082/2
Parameter | Name: Data type: UNSIGNED_32
C1082/2 | ECAT DC Slave Sync Deviation Limit Index: 23493.2d =
0x5BC5.0x02h
Permitted deviation of the distributed clocks of all devices in nanoseconds. If the permitted deviation is exceeded,
the master initiates a resynchronisation of the distributed clocks.
Display range (min. value | unit | max. value)
0 ns 4294967295
; Read access
Write access
CINH
PLC STOP
No transfer
C1082/3
Parameter | Name: Data type: INTEGER_32
C1082/3 | ECAT DC Current Deviation Index: 23493.3d =
0x5BC5.0x03h
C1086/2
Parameter | Name: Data type: UNSIGNED_32
C1086/2 | ECAT Configuration Checksum CRC-32 Index: 23489.2d =
0x5BC1.0x02h
Checksum of the master configuration file (loaded from stack/active). The stack determines the checksum of the
loaded/active master configuration file. If this file does not exist, the value "0x00000000" is displayed.
; Read access
Write access
CINH
PLC STOP
No transfer
C1086/3
Parameter | Name: Data type: UNSIGNED_32
C1086/3 | ECAT Number of found Slaves Index: 23489.3d =
0x5BC1.0x03h
C1086/4
Parameter | Name: Data type: UNSIGNED_32
C1086/4 | ECAT Number of found DC-Slaves Index: 23489.4d =
0x5BC1.0x04h
C1086/5
Parameter | Name: Data type: UNSIGNED_32
C1086/5 | ECAT Number Slaves in Configuration Index: 23489.5d =
0x5BC1.0x05h
C1086/6
Parameter | Name: Data type: UNSIGNED_32
C1086/6 | ECAT Number Mailbox Slaves in Configuration Index: 23489.6d =
0x5BC1.0x06h
C1086/7
Parameter | Name: Data type: UNSIGNED_32
C1086/7 | ECAT TX-Frames Counter Index: 23493.7d =
0x5BC5.0x07h
C1086/8
Parameter | Name: Data type: UNSIGNED_32
C1086/8 | ECAT RX-Frames Counter Index: 23489.8d =
0x5BC1.0x08h
C1086/9
Parameter | Name: Data type: UNSIGNED_32
C1086/9 | ECAT Lost Frames Counter Index: 23489.9d =
0x5BC1.0x09h
C1086/10
Parameter | Name: Data type: UNSIGNED_32
C1086/10 | ECAT Cyclic Frames Counter Index: 23489.10d =
0x5BC1.0x0Ah
C1086/11
Parameter | Name: Data type: UNSIGNED_32
C1086/11 | ECAT Cyclic Datagrams Counter Index: 23489.11d =
0x5BC1.0x0Bh
C1086/12
Parameter | Name: Data type: UNSIGNED_32
C1086/12 | ECAT Acyclic Frames Counter Index: 23489.12d =
0x5BC1.0x0Ch
C1086/13
Parameter | Name: Data type: UNSIGNED_32
C1086/13 | ECAT Acyclic Datagrams Counter Index: 23489.13d =
0x5BC1.0x0Dh
C1086/14
Parameter | Name: Data type: UNSIGNED_32
C1086/14 | ECAT Clear specific Counters Index: 23489.14d =
0x5BC1.0x0Eh
C1095/1
Parameter | Name: Data type: UNSIGNED_8
C1095/1 | ECAT Slave-Address-Mode Index: 23480.1d =
0x5BB8.0x01h
C1095/2
Parameter | Name: Data type: INTEGER_32
C1095/2 | ECAT Slave-Address Index: 23480.2d =
0x5BB8.0x02h
This code can be used to select a slave and display its parameters.
The addressing mode can be selected in code C1095/1. A maximum of 4096 slave addresses can follow after the
master address.
Setting range (min. value | unit | max. value) Lenze setting
-65536 65536 0
; Read access ; Write access
CINH
PLC STOP
No transfer
C1096/1
Parameter | Name: Data type: UNSIGNED_8
C1096/1 | ECAT Is Entry Valid Index: 23479.1d =
0x5BB7.0x01h
This code indicates whether the entries/values of the subcodes C1096/2 ... /38 are valid.
• Value "0": Invalid entry/value
• Value "1": Valid entry/value (The parameters for an existing slave are displayed.)
Display range (min. value | unit | max. value)
0 1
; Read access
Write access
CINH
PLC STOP
No transfer
C1096/2
Parameter | Name: Data type: UNSIGNED_32
C1096/2 | ECAT Slave Vendor-ID Index: 23479.2d =
0x5BB7.0x02h
C1096/3
Parameter | Name: Data type: UNSIGNED_32
C1096/3 | ECAT Product Code Index: 23479.3d =
0x5BB7.0x03h
C1096/4
Parameter | Name: Data type: UNSIGNED_32
C1096/4 | ECAT Revision Number Index: 23479.4d =
0x5BB7.0x04h
C1096/5
Parameter | Name: Data type: UNSIGNED_32
C1096/5 | ECAT Serial Number Index: 23479.5d =
0x5BB7.0x05h
C1096/6
Parameter | Name: Data type: VISIBLE_STRING
C1096/6 | ECAT Slave Device Name Index: 23479.6d =
0x5BB7.0x06h
C1096/7
Parameter | Name: Data type: INTEGER_32
C1096/7 | ECAT Auto Increment Address Index: 23479.7d =
0x5BB7.0x07h
The auto-increment address is determined by the slave position. The first node obtains the address "0". Consecutive
descending numbers: 0, -1, -2 ...
Display range (min. value | unit | max. value)
-65536 0
; Read access ; Write access
CINH
PLC STOP
No transfer
C1096/8
Parameter | Name: Data type: UNSIGNED_16
C1096/8 | ECAT Physical Address Index: 23479.8d =
0x5BB7.0x08h
C1096/9
Parameter | Name: Data type: UNSIGNED_16
C1096/9 | ECAT Config Physical Address Index: 23479.9d =
0x5BB7.0x09h
C1096/10
Parameter | Name: Data type: UNSIGNED_16
C1096/10 | ECAT Alias Address Index: 23479.10d =
0x5BB7.0x0Ah
Alias addresses are addresses which are set directly on the device (e.g. via DIP switches).
At the moment, our system does not support alias addresses.
Display range (min. value | unit | max. value)
0 65536
; Read access
Write access
CINH
PLC STOP
No transfer
C1096/11
Parameter | Name: Data type: BITFIELD_16
C1096/11 | ECAT Port State Index: 23479.11d =
0x5BB7.0x0Bh
C1096/12
Parameter | Name: Data type: UNSIGNED_8
C1096/12 | ECAT DC Support Index: 23479.12d =
0x5BB7.0x0Ch
C1096/13
Parameter | Name: Data type: UNSIGNED_8
C1096/13 | ECAT DC Support 64-Bit Index: 23479.13d =
0x5BB7.0x0Dh
C1096/14
Parameter | Name: Data type: UNSIGNED_8
C1096/14 | ECAT Mailbox Support Index: 23479.14d =
0x5BB7.0x0Eh
C1096/15
Parameter | Name: Data type: UNSIGNED_32
C1096/15 | ECAT Requested State Index: 23479.15d =
0x5BB7.0x0Fh
This code displays the state specified by the master. At the same time, this code can also be used by the user to
request a state.
Note: This is a debug code. Setting this parameter only sets the state of the currently selected slave. All other nodes
remains in their states. Changing the slave state via this code may result in an unstable system state.
Selection list (Lenze setting printed in bold)
0 Invalid
1 Init
2 Pre-Operational
4 Safe-Operational
8 Operational
; Read access ; Write access
CINH
PLC STOP ; No transfer
C1096/16
Parameter | Name: Data type: UNSIGNED_32
C1096/16 | ECAT Current State Index: 23479.16d =
0x5BB7.0x10h
C1096/17
Parameter | Name: Data type: UNSIGNED_8
C1096/17 | ECAT Is Error Flag set Index: 23479.17d =
0x5BB7.0x11h
C1096/18
Parameter | Name: Data type: UNSIGNED_8
C1096/18 | ECAT Enable Linkmessages Index: 23479.18d =
0x5BB7.0x12h
Debug parameter:
If the parameter is set to the value "1", all state changes of the slave are output as diagnostic frames via the Ethernet
interface. In the event of a fault, this enables error diagnosing by means of a Wireshark recording.
(»Wireshark«: Program for analysing network communication links)
• Value "0": No link messages
• Value "1": Enable link messages
Setting range (min. value | unit | max. value) Lenze setting
0 1 0
; Read access ; Write access
CINH
PLC STOP
No transfer
C1096/19
Parameter | Name: Data type: UNSIGNED_32
C1096/19 | ECAT Error Code Index: 23479.19d =
0x5BB7.0x13h
AL status codes
C1096/20
Parameter | Name: Data type: UNSIGNED_8
C1096/20 | ECAT Is Sync Pulse active Index: 23479.20d =
0x5BB7.0x14h
C1096/21
Parameter | Name: Data type: UNSIGNED_32
C1096/21 | ECAT DC Sync 0 Period Index: 23479.21d =
0x5BB7.0x15h
Period within which setpoints from the control system are expected if distributed clock support is activated.
Display range (min. value | unit | max. value)
0 4294967295
; Read access
Write access
CINH
PLC STOP
No transfer
C1096/22
Parameter | Name: Data type: UNSIGNED_32
C1096/22 | ECAT DC Sync 1 Period Index: 23479.22d =
0x5BB7.0x16h
C1096/23
Parameter | Name: Data type: UNSIGNED_32
C1096/23 | ECAT Bus Scan Error Code Index: 23479.23d =
0x5BB7.0x17h
C1096/24
Parameter | Name: Data type: UNSIGNED_16
C1096/24 | ECAT RX Error Counter Port 0 Index: 23479.24d =
0x5BB7.0x18h
Number of errors that have occurred during data reception via port 0.
Display range (min. value | unit | max. value)
0 65535
; Read access
Write access
CINH
PLC STOP
No transfer
C1096/25
Parameter | Name: Data type: UNSIGNED_16
C1096/25 | ECAT RX Error Counter Port 1 Index: 23479.25d =
0x5BB7.0x19h
Number of errors that have occurred during data reception via port 1.
Display range (min. value | unit | max. value)
0 65535
; Read access
Write access
CINH
PLC STOP
No transfer
C1096/26
Parameter | Name: Data type: UNSIGNED_16
C1096/26 | ECAT RX Error Counter Port 2 Index: 23479.26d =
0x5BB7.0x1Ah
Number of errors that have occurred during data reception via port 2.
Display range (min. value | unit | max. value)
0 65535
; Read access
Write access
CINH
PLC STOP
No transfer
C1096/27
Parameter | Name: Data type: UNSIGNED_16
C1096/27 | ECAT RX Error Counter Port 3 Index: 23479.27d =
0x5BB7.0x1Bh
Number of errors that have occurred during data reception via port 3.
Display range (min. value | unit | max. value)
0 65535
; Read access
Write access
CINH
PLC STOP
No transfer
C1096/28
Parameter | Name: Data type: UNSIGNED_8
C1096/28 | Forwarded ECAT RX Error Counter Port 0 Index: 23479.28d =
0x5BB7.0x1Ch
Number of errors which have occurred at upstream slave nodes (referred to the position of the current slave in the
bus topology) during data reception via port 0.
Display range (min. value | unit | max. value)
0 255
; Read access
Write access
CINH
PLC STOP
No transfer
C1096/29
Parameter | Name: Data type: UNSIGNED_8
C1096/29 | Forwarded ECAT RX Error Counter Port 1 Index: 23479.29d =
0x5BB7.0x1Dh
Number of errors which have occurred at upstream slave nodes (referred to the position of the current slave in the
bus topology) during data reception via port 1.
Display range (min. value | unit | max. value)
0 255
; Read access
Write access
CINH
PLC STOP
No transfer
C1096/30
Parameter | Name: Data type: UNSIGNED_8
C1096/30 | Forwarded ECAT RX Error Counter Port 2 Index: 23479.30d =
0x5BB7.0x1Eh
Number of errors which have occurred at upstream slave nodes (referred to the position of the current slave in the
bus topology) during data reception via port 2.
Display range (min. value | unit | max. value)
0 255
; Read access
Write access
CINH
PLC STOP
No transfer
C1096/31
Parameter | Name: Data type: UNSIGNED_8
C1096/31 | Forwarded ECAT RX Error Counter Port 3 Index: 23479.31d =
0x5BB7.0x1Fh
Number of errors which have occurred at upstream slave nodes (referred to the position of the current slave in the
bus topology) during data reception via port 3.
Display range (min. value | unit | max. value)
0 255
; Read access
Write access
CINH
PLC STOP
No transfer
C1096/32
Parameter | Name: Data type: UNSIGNED_8
C1096/32 | ECAT Processing Unit Error Counter Index: 23479.32d =
0x5BB7.0x20h
C1096/33
Parameter | Name: Data type: UNSIGNED_8
C1096/33 | ECAT PDI Error Counter Index: 23479.33d =
0x5BB7.0x21h
Number of internal errors of the slave indicated by the process data interface.
Display range (min. value | unit | max. value)
0 255
; Read access
Write access
CINH
PLC STOP
No transfer
C1096/35
Parameter | Name: Data type: UNSIGNED_8
C1096/35 | ECAT Lost Link Counter Port 0 Index: 23479.35d =
0x5BB7.0x23h
C1096/36
Parameter | Name: Data type: UNSIGNED_8
C1096/36 | ECAT Lost Link Counter Port 1 Index: 23479.36d =
0x5BB7.0x24h
C1096/37
Parameter | Name: Data type: UNSIGNED_8
C1096/37 | ECAT Lost Link Counter Port 2 Index: 23479.37d =
0x5BB7.0x25h
C1096/38
Parameter | Name: Data type: UNSIGNED_8
C1096/38 | ECAT Lost Link Counter Port 3 Index: 23479.38d =
0x5BB7.0x26h
C1531
Parameter | Name: Data type: VISIBLE_STRING
C1531 | Device: type key Index: 23044d = 5A04h
C1532
Parameter | Name: Data type: VISIBLE_STRING
C1532 | Device: type version Index: 23043d = 5A03h
C1533
Parameter | Name: Data type: VISIBLE_STRING
C1533 | Device: name Index: 23042d = 5A02h
C1534
Parameter | Name: Data type: VISIBLE_STRING
C1534 | Device: software revision Index: 23041d = 5A01h
C1535
Parameter | Name: Data type: VISIBLE_STRING
C1535 | Device: hardware revision Index: 23040d = 5A00h
C1536
Parameter | Name: Data type: VISIBLE_STRING
C1536 | Device: serial number Index: 23039d = 59FFh
C1537
Parameter | Name: Data type: VISIBLE_STRING
C1537 | Device: manufacturer Index: 23038d = 59FEh
C1538
Parameter | Name: Data type: VISIBLE_STRING
C1538 | Device: manufacturing date Index: 23037d = 59FDh
C1574
Parameter | Name: Data type: VISIBLE_STRING
C1574 | ECAT: MAC address Index: 23001d = 59D9h
C1580/1
Parameter | Name: Data type: DATE
C1580/1 | ECAT Master Configuration Date Index: 22995.1d =
0x59D3.0x01h
Date of the master configuration file in the file system of the IPC
The data manager determines the date of the master configuration file in the ...\storage\IPC\PLC directory. If this
file does not exist, the date "01.01.1900" is displayed.
; Read access
Write access
CINH
PLC STOP
No transfer
C1580/2
Parameter | Name: Data type: UNSIGNED_32
C1580/2 | ECAT Master Config Checksum Index: 22995.2d =
0x59D3.0x02h
Checksum of the master configuration file in the file system of the IPC
The data manager determines the checksum of the master configuration file in the ...\storage\IPC\PLC directory. If
this file does not exist, the value "0x00000000" is displayed.
; Read access
Write access
CINH
PLC STOP
No transfer
C1580/3
Parameter | Name: Data type: UNSIGNED_32
C1580/3 | ECAT Stack Master Checksum Index: 22995.3d =
0x59D3.0x03h
The stack determines the checksum of the loaded/active master configuration file. If there is no loaded/active
master configuration file, the value "0x00000000" is displayed.
; Read access
Write access
CINH
PLC STOP
No transfer
C1580/4
Parameter | Name: Data type: UNSIGNED_8
C1580/4 | ECAT Bus Scan Match Index: 22995.4d =
0x59D3.0x04h
Brief information whether the master configuration corresponds to the physical bus structure. The master
configuration of the stack is compared with the actual bus structure.
Selection list (Lenze setting printed in bold) Info
0 No match The master configuration does not correspond to the bus
structure.
1 OK The master configuration corresponds to the bus
structure.
; Read access
Write access
CINH
PLC STOP
No transfer
C1581/1
Parameter | Name: Data type: UNSIGNED_32
C1581/1 | ECAT State Change Command Index: 22994.1d =
0x59D2.0x01h
Note: The parameter should only be set to analyse start problems (e.g. master/bus does not reach the Operational
state). Setting this parameter only sets the state of the master stack. All other nodes remain in their previous states.
Changing the master state via this code may result in an unstable system state.
• A higher bus state than the one initiated by the PLC can never be reached.
• A reload of the master configuration cannot be initiated.
• Loading the PLC program normally stops the bus and sets it to the Pre-Operational state. If this is not possible,
the bus remains in the Unknown or Initialisation state.
• Starting the PLC program normally sets the bus to the Operational state. If this is not possible, the bus remains
in the Pre-Operational or Safe Operational state.
Selection list (Lenze setting printed in bold)
0 No Operation
1 Init
2 Pre-Operational
4 Safe-Operational
8 Operational
; Read access ; Write access
CINH
PLC STOP ; No transfer
C1581/2
Parameter | Name: Data type: UNSIGNED_8
C1581/2 | ECAT Master State Index: 22994.2d =
0x59D2.0x02h
C1581/3
Parameter | Name: Data type: UNSIGNED_8
C1581/3 | ECAT Master in requested Mode Index: 22994.3d =
0x59D2.0x03h
The state is usually requested by the PLC. For possible requested states see C1581/1 ( 184).
• Value "0": Master is not in the requested state.
• Value "1": Master is in the requested state.
Display range (min. value | unit | max. value)
0 1
; Read access
Write access
CINH
PLC STOP
No transfer
C1581/4
Parameter | Name: Data type: UNSIGNED_8
C1581/4 | ECAT Slaves in requested Mode Index: 22994.4d =
0x59D2.0x04h
• Value "0": One or more slaves are not in the state requested by the master.
• Value "1": All slaves are in the state requested by the master.
Display range (min. value | unit | max. value)
0 1
; Read access
Write access
CINH
PLC STOP
No transfer
C1581/5
Parameter | Name: Data type: BITFIELD_32
C1581/5 | ECAT Master State Summary Index: 22994.5d =
0x59D2.0x05h
C1581/6
Parameter | Name: Data type: UNSIGNED_8
C1581/6 | ECAT BusScan Index: 22994.6d =
0x59D2.0x06h
C1582/1
Parameter | Name: Data type: BITFIELD_3
C1582/1 | ECAT Distributed Clocks State Index: 22993.1d =
0x59D1.0x01h
C1582/2
Parameter | Name: Data type: UNSIGNED_32
C1582/2 | ECAT DC Slave Sync Deviation Limit Index: 22993.2d =
0x59D1.0x02h
Permitted deviation of the distributed clocks of all devices in nanoseconds. If the permitted deviation is exceeded,
the master initiates a resynchronisation of the distributed clocks.
Display range (min. value | unit | max. value)
0 ns 4294967295
; Read access
Write access
CINH
PLC STOP
No transfer
C1582/3
Parameter | Name: Data type: INTEGER_32
C1582/3 | ECAT DC Current Deviation Index: 22993.3d =
0x59D1.0x03h
C1586/2
Parameter | Name: Data type: UNSIGNED_32
C1586/2 | ECAT Configuration Checksum CRC-32 Index: 22989.2d =
0x59CD.0x02h
Checksum of the master configuration file (loaded from stack/active). The stack determines the checksum of the
loaded/active master configuration file. If this file does not exist, the value "0x00000000" is displayed.
; Read access
Write access
CINH
PLC STOP
No transfer
C1586/3
Parameter | Name: Data type: UNSIGNED_32
C1586/3 | ECAT Number of found Slaves Index: 22989.3d =
0x59CD.0x03h
C1586/4
Parameter | Name: Data type: UNSIGNED_32
C1586/4 | ECAT Number of found DC-Slaves Index: 22989.4d =
0x59CD.0x04h
C1586/5
Parameter | Name: Data type: UNSIGNED_32
C1586/5 | ECAT Number Slaves in Configuration Index: 22989.5d =
0x59CD.0x05h
C1586/6
Parameter | Name: Data type: UNSIGNED_32
C1586/6 | ECAT Number Mailbox Slaves in Configuration Index: 22989.6d =
0x59CD.0x06h
C1586/7
Parameter | Name: Data type: UNSIGNED_32
C1586/7 | ECAT TX-Frames Counter Index: 22989.7d =
0x59CD.0x07h
C1586/8
Parameter | Name: Data type: UNSIGNED_32
C1586/8 | ECAT RX-Frames Counter Index: 22989.8d =
0x59CD.0x08h
C1586/9
Parameter | Name: Data type: UNSIGNED_32
C1586/9 | ECAT Lost Frames Counter Index: 22989.9d =
0x59CD.0x09h
C1586/10
Parameter | Name: Data type: UNSIGNED_32
C1586/10 | ECAT Cyclic Frames Counter Index: 22989.10d =
0x59CD.0x0Ah
C1586/11
Parameter | Name: Data type: UNSIGNED_32
C1586/11 | ECAT Cyclic Datagrams Counter Index: 22989.11d =
0x59CD.0x0Bh
C1586/12
Parameter | Name: Data type: UNSIGNED_32
C1586/12 | ECAT Acyclic Frames Counter Index: 22989.12d =
0x5BC1.0x0Ch
C1586/13
Parameter | Name: Data type: UNSIGNED_32
C1586/13 | ECAT Acyclic Datagrams Counter Index: 22989.13d =
0x59CD.0x0Dh
C1586/14
Parameter | Name: Data type: UNSIGNED_32
C1586/14 | ECAT Clear specific Counters Index: 22989.14d =
0x59CD.0x0Eh
C1595/1
Parameter | Name: Data type: UNSIGNED_8
C1595/1 | ECAT Slave-Address-Mode Index: 22980.1d =
0x59C4.0x01h
C1595/2
Parameter | Name: Data type: INTEGER_32
C1595/2 | ECAT Slave-Address Index: 22980.2d =
0x59C4.0x02h
This code can be used to select a slave and display its parameters.
The addressing mode can be selected in code C1595/1. A maximum of 4096 slave addresses can follow after the
master address.
Setting range (min. value | unit | max. value)
-65536 65536
; Read access ; Write access
CINH
PLC STOP
No transfer
C1596/1
Parameter | Name: Data type: UNSIGNED_8
C1596/1 | ECAT Is Entry Valid Index: 22979.1d =
0x59C3.0x01h
This code indicates whether the entries/values of the subcodes C1596/2 ... /38 are valid.
• Value "0": Invalid entry/value
• Value "1": Valid entry/value (The parameters for an existing slave are displayed.)
Display range (min. value | unit | max. value)
0 1
; Read access
Write access
CINH
PLC STOP
No transfer
C1596/2
Parameter | Name: Data type: UNSIGNED_32
C1596/2 | ECAT Slave Vendor-ID Index: 22979.2d =
0x59C3.0x02h
C1596/3
Parameter | Name: Data type: UNSIGNED_32
C1596/3 | ECAT Product Code Index: 22979.3d =
0x59C3.0x03h
C1596/4
Parameter | Name: Data type: UNSIGNED_32
C1596/4 | ECAT Revision Number Index: 22979.4d =
0x59C3.0x04h
C1596/5
Parameter | Name: Data type: UNSIGNED_32
C1596/5 | ECAT Serial Number Index: 22979.5d =
0x59C3.0x05h
C1596/6
Parameter | Name: Data type: VISIBLE_STRING
C1596/6 | ECAT Slave Device Name Index: 22979.6d =
0x59C3.0x06h
C1596/7
Parameter | Name: Data type: INTEGER_32
C1596/7 | ECAT Auto Increment Address Index: 22979.7d =
0x59C3.0x07h
The auto-increment address is determined by the slave position. The first node obtains the address "0". Consecutive
descending numbers: 0, -1, -2 ...
Display range (min. value | unit | max. value)
-65536 0
; Read access
Write access
CINH
PLC STOP
No transfer
C1596/8
Parameter | Name: Data type: UNSIGNED_16
C1596/8 | ECAT Physical Address Index: 22979.8d =
0x59C3.0x08h
C1596/9
Parameter | Name: Data type: UNSIGNED_16
C1596/9 | ECAT Config Physical Address Index: 22979.9d =
0x59C3.0x09h
C1596/10
Parameter | Name: Data type: UNSIGNED_16
C1596/10 | ECAT Alias Address Index: 22979.10d =
0x59C3.0x0Ah
Alias addresses are addresses which are set directly on the device (e.g. via DIP switches).
At the moment, our system does not support alias addresses.
Display range (min. value | unit | max. value)
0 65536
; Read access
Write access
CINH
PLC STOP
No transfer
C1596/11
Parameter | Name: Data type: BITFIELD_16
C1596/11 | ECAT Port State Index: 22979.11d =
0x59C3.0x0Bh
C1596/12
Parameter | Name: Data type: UNSIGNED_8
C1596/12 | ECAT DC Support Index: 22979.12d =
0x59C3.0x0Ch
C1596/13
Parameter | Name: Data type: UNSIGNED_8
C1596/13 | ECAT: DC Support 64-Bit Index: 22979.13d =
0x59C3.0x0Dh
C1596/14
Parameter | Name: Data type: UNSIGNED_8
C1596/14 | ECAT Mailbox Support Index: 22979.14d =
0x59C3.0x0Eh
C1596/15
Parameter | Name: Data type: UNSIGNED_32
C1596/15 | ECAT Requested State Index: 22979.15d =
0x59C3.0x0Fh
This code displays the state specified by the master. At the same time, this code can also be used by the user to
request a state.
Note: This is a debug code. Setting this parameter only sets the state of the currently selected slave. All other nodes
remains in their states. Changing the slave state via this code may result in an unstable system state.
Selection list (Lenze setting printed in bold)
0 Invalid
1 Init
2 Pre-Operational
4 Safe-Operational
8 Operational
; Read access ; Write access
CINH
PLC STOP ; No transfer
C1596/16
Parameter | Name: Data type: UNSIGNED_32
C1596/16 | ECAT Current State Index: 22979.16d =
0x59C3.0x10h
C1596/17
Parameter | Name: Data type: UNSIGNED_8
C1596/17 | ECAT Is Error Flag set Index: 22979.17d =
0x59C3.0x11h
C1596/18
Parameter | Name: Data type: UNSIGNED_8
C1596/18 | ECAT Enable Linkmessages Index: 22979.18d =
0x59C3.0x12h
Debug parameter:
If the parameter is set to the value "1", all state changes of the slave are output as diagnostic frames via the Ethernet
interface. In the event of a fault, this enables error diagnosing by means of a Wireshark recording.
(»Wireshark«: Program for analysing network communication links)
• Value "0": No link messages
• Value "1": Enable link messages
Setting range (min. value | unit | max. value) Lenze setting
0 1 0
; Read access
Write access
CINH
PLC STOP
No transfer
C1596/19
Parameter | Name: Data type: UNSIGNED_32
C1596/19 | ECAT Error Code Index: 22979.19d =
0x59C3.0x13h
AL status codes
C1596/20
Parameter | Name: Data type: UNSIGNED_8
C1596/20 | ECAT Is Sync Pulse active Index: 22979.20d =
0x59C3.0x14h
C1596/21
Parameter | Name: Data type: UNSIGNED_32
C1596/21 | ECAT DC Sync 0 Period Index: 22979.21d =
0x59C3.0x15h
Period within which setpoints from the control system are expected if distributed clock support is activated.
Display range (min. value | unit | max. value)
0 4294967295
; Read access
Write access
CINH
PLC STOP
No transfer
C1596/22
Parameter | Name: Data type: UNSIGNED_32
C1596/22 | ECAT DC Sync 1 Period Index: 22979.22d =
0x59C3.0x16h
C1596/23
Parameter | Name: Data type: UNSIGNED_32
C1596/23 | ECAT Bus Scan Error Code Index: 22979.23d =
0x59C3.0x17h
C1596/24
Parameter | Name: Data type: UNSIGNED_16
C1596/24 | ECAT RX Error Counter Port 0 Index: 22979.24d =
0x59C3.0x18h
Number of errors that have occurred during data reception via port 0.
Display range (min. value | unit | max. value)
0 65535
; Read access
Write access
CINH
PLC STOP
No transfer
C1596/25
Parameter | Name: Data type: UNSIGNED_16
C1596/25 | ECAT RX Error Counter Port 1 Index: 22979.25d =
0x59C3.0x19h
Number of errors that have occurred during data reception via port 1.
Display range (min. value | unit | max. value)
0 65535
; Read access
Write access
CINH
PLC STOP
No transfer
C1596/26
Parameter | Name: Data type: UNSIGNED_16
C1596/26 | ECAT RX Error Counter Port 2 Index: 22979.26d =
0x59C3.0x1Ah
Number of errors that have occurred during data reception via port 2.
Display range (min. value | unit | max. value)
0 65535
; Read access
Write access
CINH
PLC STOP
No transfer
C1596/27
Parameter | Name: Data type: UNSIGNED_16
C1596/27 | ECAT RX Error Counter Port 3 Index: 22979.27d =
0x59C3.0x1Bh
Number of errors that have occurred during data reception via port 3.
Display range (min. value | unit | max. value)
0 65535
; Read access
Write access
CINH
PLC STOP
No transfer
C1596/28
Parameter | Name: Data type: UNSIGNED_8
C1596/28 | Forwarded ECAT RX Error Counter Port 0 Index: 22979.28d =
0x59C3.0x1Ch
Number of errors which have occurred at upstream slave nodes (referred to the position of the current slave in the
bus topology) during data reception via port 0.
Display range (min. value | unit | max. value)
0 255
; Read access
Write access
CINH
PLC STOP
No transfer
C1596/29
Parameter | Name: Data type: UNSIGNED_8
C1596/29 | Forwarded ECAT RX Error Counter Port 1 Index: 22979.29d =
0x59C3.0x1Dh
Number of errors which have occurred at upstream slave nodes (referred to the position of the current slave in the
bus topology) during data reception via port 1.
Display range (min. value | unit | max. value)
0 255
; Read access
Write access
CINH
PLC STOP
No transfer
C1596/30
Parameter | Name: Data type: UNSIGNED_8
C1596/30 | Forwarded ECAT RX Error Counter Port 2 Index: 22979.30d =
0x59C3.0x1Eh
Number of errors which have occurred at upstream slave nodes (referred to the position of the current slave in the
bus topology) during data reception via port 2.
Display range (min. value | unit | max. value)
0 255
; Read access
Write access
CINH
PLC STOP
No transfer
C1596/31
Parameter | Name: Data type: UNSIGNED_8
C1596/31 | Forwarded ECAT RX Error Counter Port 3 Index: 22979.31d =
0x59C3.0x1Fh
Number of errors which have occurred at upstream slave nodes (referred to the position of the current slave in the
bus topology) during data reception via port 3.
Display range (min. value | unit | max. value)
0 255
; Read access
Write access
CINH
PLC STOP
No transfer
C1596/32
Parameter | Name: Data type: UNSIGNED_8
C1596/32 | ECAT Processing Unit Error Counter Index: 22979.32d =
0x59C3.0x20h
C1596/33
Parameter | Name: Data type: UNSIGNED_8
C1596/33 | ECAT PDI Error Counter Index: 22979.33d =
0x59C3.0x21h
Number of internal errors of the slave indicated by the process data interface.
Display range (min. value | unit | max. value)
0 255
; Read access
Write access
CINH
PLC STOP
No transfer
C1596/35
Parameter | Name: Data type: UNSIGNED_8
C1596/35 | ECAT Lost Link Counter Port 0 Index: 22979.35d =
0x59C3.0x23h
C1596/36
Parameter | Name: Data type: UNSIGNED_8
C1596/36 | ECAT Lost Link Counter Port 1 Index: 22979.36d =
0x59C3.0x24h
C1596/37
Parameter | Name: Data type: UNSIGNED_8
C1596/37 | ECAT Lost Link Counter Port 2 Index: 22979.37d =
0x59C3.0x25h
C1596/38
Parameter | Name: Data type: UNSIGNED_8
C1596/38 | ECAT Lost Link Counter Port 3 Index: 22979.38d =
0x59C3.0x26h
13 Index
A C1082/3 | ECAT DC Current Deviation 170
Abort codes (SDO) 164 C1086/10 | ECAT Cyclic Frames Counter 171
Addressing EtherCAT nodes using CANopen/PROFIBUS C1086/11 | ECAT Cyclic Datagrams Counter 172
nodes 93 C1086/12 | ECAT Acyclic Frames Counter 172
Addressing of the slaves 20 C1086/13 | ECAT Acyclic Datagrams Counter 172
Addressing the PROFIBUS and CANopen stations 92 C1086/14 | ECAT Clear specific Counters 172
Adjusting task cycle time and DC cycle time 38 C1086/2 | ECAT Configuration Checksum CRC-32 170
AL status codes 177, 193 C1086/3 | ECAT Number of found Slaves 170
Application notes (representation) 12 C1086/4 | ECAT Number of found DC-Slaves 170
AtEm.lib 96 C1086/5 | ECAT Number Slaves in Configuration 171
Auto-increment addressing 20 C1086/6 | ECAT Number Mailbox Slaves in
Configuration 171
B C1086/7 | ECAT TX-Frames Counter 171
Baud rate 34 C1086/8 | ECAT RX-Frames Counter 171
bEC_NOTIFY_CYCCMD_WKC_ERROR 121 C1086/9 | ECAT Lost Frames Counter 171
bEC_NOTIFY_DC_SLV_SYNC 120 C1095/1 | ECAT Slave-Address-Mode 173
bEC_NOTIFY_DC_STATUS 120 C1095/2 | ECAT Slave-Address 173
bEC_NOTIFY_DCL_SLV_LATCH_EVT 120 C1096/1 | ECAT Is Entry Valid 173
bEC_NOTIFY_DCL_STATUS 120 C1096/10 | ECAT Alias Address 174
bEC_NOTIFY_ETH_LINK_CONNECTED 120 C1096/11 | ECAT Port State 175
bEC_NOTIFY_ETH_LINK_NOT_CONNECTED 120 C1096/12 | ECAT DC Support 175
bEC_NOTIFY_NOT_ALL_DEVICES_OPERATIONAL 120 C1096/13 | ECAT DC Support 64-Bit 175
bEC_NOTIFY_RED_LINEBRK 120 C1096/14 | ECAT Mailbox Support 176
bEC_NOTIFY_SB_STATUS 120 C1096/15 | ECAT Requested State 176
bEC_NOTIFY_STATUS_SLAVE_ERROR 120 C1096/16 | ECAT Current State 176
Breakpoints 75 C1096/17 | ECAT Is Error Flag set 176
Brief description of EtherCAT 16 C1096/18 | ECAT Enable Linkmessages 177
Bus restart 114, 139 C1096/19 | ECAT Error Code 177
C1096/2 | ECAT Slave Vendor-ID 173
C C1096/20 | ECAT Is Sync Pulse active 178
C1031 | Device - type key 166 C1096/21 | ECAT DC Sync 0 Period 178
C1032 | Device - type version 166 C1096/22 | ECAT DC Sync 1 Period 179
C1033 | Device - name 166 C1096/23 | ECAT Bus Scan Error Code 179
C1034 | Device - software version 166 C1096/24 | ECAT RX Error Counter Port 0 179
C1035 | Device - hardware version 166 C1096/25 | ECAT RX Error Counter Port 1 179
C1036 | Device - serial number 166 C1096/26 | ECAT RX Error Counter Port 2 179
C1037 | Device - manufacturer 166 C1096/27 | ECAT RX Error Counter Port 3 180
C1038 | Device - manufacturing date 166 C1096/28 | Forwarded ECAT RX Error Counter Port 0
C1074 | ECAT MAC address 167 180
C1080/1 | ECAT Master Configuration Date 167 C1096/29 | Forwarded ECAT RX Error Counter Port 1
180
C1080/2 | ECAT Master Config Checksum 167
C1096/3 | ECAT Product Code 173
C1080/3 | ECAT Stack Master Checksum 167
C1096/30 | Forwarded ECAT RX Error Counter Port 2
C1080/4 | ECAT Bus Scan Match 167
180
C1081/1 | ECAT State Change Command 168
C1096/31 | Forwarded ECAT RX Error Counter Port 3
C1081/2 | ECAT Master State 168 180
C1081/3 | ECAT Master in requested Mode 168 C1096/32 | ECAT Processing Unit Error Counter 181
C1081/4 | ECAT Slaves in requested Mode 169 C1096/33 | ECAT PDI Error Counter 181
C1081/5 | ECAT Master State Summary 169 C1096/35 | ECAT Lost Link Counter Port 0 181
C1081/6 | ECAT BusScan 169 C1096/36 | ECAT Lost Link Counter Port 1 181
C1082/1 | ECAT Distributed Clocks State 170 C1096/37 | ECAT Lost Link Counter Port 2 181
C1082/2 | ECAT DC Slave Sync Deviation Limit 170 C1096/38 | ECAT Lost Link Counter Port 3 181
C1096/4 | ECAT Revision Number 173 C1596/18 | ECAT Enable Linkmessages 193
C1096/5 | ECAT Serial Number 174 C1596/19 | ECAT Error Code 193
C1096/6 | ECAT Slave Device Name 174 C1596/2 | ECAT Slave Vendor-ID 189
C1096/7 | ECAT Auto Increment Address 174 C1596/20 | ECAT Is Sync Pulse active 194
C1096/8 | ECAT Physical Address 174 C1596/21 | ECAT DC Sync 0 Period 194
C1096/9 | ECAT Config Physical Address 174 C1596/22 | ECAT DC Sync 1 Period 195
C1531 | Device - type key 182 C1596/23 | ECAT Bus Scan Error Code 195
C1532 | Device - type version 182 C1596/24 | ECAT RX Error Counter Port 0 195
C1533 | Device - name 182 C1596/25 | ECAT RX Error Counter Port 1 195
C1534 | Device - software version 182 C1596/26 | ECAT RX Error Counter Port 2 195
C1535 | Device - hardware version 182 C1596/27 | ECAT RX Error Counter Port 3 196
C1536 | Device - serial number 182 C1596/28 | Forwarded ECAT RX Error Counter Port 0
C1537 | Device - manufacturer 182 196
C1538 | Device - manufacturing date 182 C1596/29 | Forwarded ECAT RX Error Counter Port 1
C1574 | ECAT MAC address 183 196
C1580/1 | ECAT Master Configuration Date 183 C1596/3 | ECAT Product Code 189
C1580/2 | ECAT Master Config Checksum 183 C1596/30 | Forwarded ECAT RX Error Counter Port 2
196
C1580/3 | ECAT Stack Master Checksum 183
C1596/31 | Forwarded ECAT RX Error Counter Port 3
C1580/4 | ECAT Bus Scan Match 183
196
C1581/1 | ECAT State Change Command 184
C1596/32 | ECAT Processing Unit Error Counter 197
C1581/2 | ECAT Master State 184
C1596/33 | ECAT PDI Error Counter 197
C1581/3 | ECAT Master in requested Mode 184
C1596/35 | ECAT Lost Link Counter Port 0 197
C1581/4 | ECAT Slaves in requested Mode 185
C1596/36 | ECAT Lost Link Counter Port 1 197
C1581/5 | ECAT Master State Summary 185
C1596/37 | ECAT Lost Link Counter Port 2 197
C1581/6 | ECAT BusScan 185
C1596/38 | ECAT Lost Link Counter Port 3 197
C1582/1 | ECAT Distributed Clocks State 186
C1596/4 | ECAT Revision Number 189
C1582/2 | ECAT DC Slave Sync Deviation Limit 186
C1596/5 | ECAT Serial Number 190
C1582/3 | ECAT DC Current Deviation 186
C1596/6 | ECAT Slave Device Name 190
C1586/10 | ECAT Cyclic Frames Counter 187
C1596/7 | ECAT Auto Increment Address 190
C1586/11 | ECAT Cyclic Datagrams Counter 188
C1596/8 | ECAT Physical Address 190
C1586/12 | ECAT Acyclic Frames Counter 188
C1596/9 | ECAT Config Physical Address 190
C1586/13 | ECAT Acyclic Datagrams Counter 188
Cable length (max.) 34
C1586/14 | ECAT Clear specific Counters 188
Cable type 34
C1586/2 | ECAT Configuration Checksum CRC-32 186
Calculating the minimum cycle time 128
C1586/3 | ECAT Number of found Slaves 186
Calculating the total access time to the peripheral
C1586/4 | ECAT Number of found DC-Slaves 186 devices 125
C1586/5 | ECAT Number Slaves in Configuration 187 CANopen 91
C1586/6 | ECAT Number Mailbox Slaves in Check of the DC synchronicity 41
Configuration 187
Checking the system startup 80
C1586/7 | ECAT TX-Frames Counter 187
Checking with »WebConfig« or »Engineer« 79
C1586/8 | ECAT RX-Frames Counter 187
Codes 165
C1586/9 | ECAT Lost Frames Counter 187
CoE/SDO error codes (0x98110040 ... 0x9811005Dhex)
C1595/1 | ECAT Slave-Address-Mode 189 161
C1595/2 | ECAT Slave-Address 189 Commissioning of the system 42
C1596/1 | ECAT Is Entry Valid 189 Commissioning steps (detailed overview) 90
C1596/10 | ECAT Alias Address 190 Commissioning steps (short overview) 43
C1596/11 | ECAT Port State 191 Communication 18
C1596/12 | ECAT DC Support 191 Communication between engineering PC and field
C1596/13 | ECAT devices 32
DC Support 64-Bit 191 Communication medium 34
C1596/14 | ECAT Mailbox Support 192 Communication profile 34
C1596/15 | ECAT Requested State 192 Communication times and drive-specific data 35
C1596/16 | ECAT Current State 192 Compiling project data 77
C1596/17 | ECAT Is Error Flag set 192
R
Remote API error codes (0x98110181 ...
0x98110196hex) 163
Representation in the online mode 133
Required engineering tools 28
Required hardware components 22
ResetMasterStatus (FB) 114
Resetting the master structure 121
Runtime of the actual values 35
Runtime of the setpoints 35
S
Safety 13
Safety instructions (representation) 12
scanfd (command line tool) 51
SDO abort codes 164
Set DC synchronisation at the field devices 39
Setting and resetting the master structure 121
Setting up a DC synchronisation 60
Setting up the EtherCAT configuration in the device
tree 57
SM_Ethercat.lib 96
SMC_ETCErrorString (FUN) 115
State machine 19
State machine of the Lenze control technology 30
Structure of the EtherCAT bus system 17
Structure of the messages in the logbook 142
Synchronisation 34
Synchronisation with "distributed clocks" 36
Synchronous communication 37
System error messages 157
T
Target group 9
Technical data 34
Technical data of MC-ETC 34
Terms 11
Total signal runtime for a cycle time of 1ms 35
U
Usability of the EtherCAT function libraries 96
User data per frame 35
V
Variable wState 137
VISU_ECATDiagnostic 136
VISU_ECATDiagnostic visualisation template 136
VISU_ETHERCATMaster visualisation template 135
W
Working counter 21
| [email protected] | [email protected]
Þ www.Lenze.com