Further information on Lenze products which can be used in conjunction with Controller-based
Automation can be found in the following sets of documentation:
Mounting & wiringSymbols:
Mounting instructions
• Controller
• Communication cards (MC-xxx)
• I/O system 1000 (EPM-Sxxx)
• Inverter, Servo Drives
•Communication modules
Operating instructions
• Controller
• Servo system ECS (ECSxE, ECSxM)
Sample applications/Using application templates
Online help/software manuals
• Application Sample i700
• Application Samples
• ApplicationTemplate
Parameter setting, configuration, commissioning
Online help/reference manuals
•L-force Controller
• Inverter, Servo Drives
• I/O system 1000 (EPM-Sxxx)
Online help/communication manuals
• Bus systems
•Communication modules
Operating instructions
• Servo system ECS (ECSxE, ECSxM)
Printed documentation
Online help in the Lenze Engineering
Tool (also available as PDF file at
www.lenze.com
.)
Tip!
Current documentation and software updates with regard to Lenze products can be found
in the download area at:
www.lenze.com
Target group
This documentation is intended for persons who plan, install, commission and maintain the
networking of devices as part of the Lenze automation system "Controller-based Automation".
Information on validity
The information provided in this documentation is valid for the Lenze automation system
"Controller-based Automation" from version 3.
Screenshots/application examples
All screenshots in this documentation are application examples. Depending on the firmware
version of the field devices and the software version of the Engineering tools installed (e.g. »PLC
Designer« ), screenshots in this documentation may differ from the representation on the screen.
Lenze · Controller-based Automation · EtherCAT® Communication Manual · DMS 6.4 EN · 04/2014 · TD177
This documentation uses the following conventions to distinguish different types of information:
Type of informationIdentificationExamples/notes
Numbers
DecimalNormal spellingExample: 1234
Decimal separatorPointIn general, the decimal point is used.
Example: 1234.56
Hexadecimal0x[0 ... 9, A ... F]Example: 0x60F4
Binary
• Nibble
Text
Program name» «PC software
WindowitalicsThe message window... / The Options dialog box ...
Variable nameSetting bEnable to TRUE...
Control elementBoldThe OK button ... / The Copy command ... / The Properties
Sequence of menu
commands
Shortcut<Bold>Use <F1> to open the online help.
Program codeCourierIF var1 < var2 THEN
KeywordCourier bold
HyperlinkUnderlined
Icons
Page reference ( 9)Optically highlighted reference to another page. Can be
Step-by-step instructions
0b[0, 1]Example: ’0b0110’
Example: ’0b0110.0100’
Example: Lenze »Engineer«
tab ... / The Name input field ...
If several successive commands are required for
executing a function, the individual commands are
separated from each other by an arrow: Select the
command File
If a key combination is required for a command, a "+" is
placed between the key identifiers: With
<Shift>+<ESC>...
a = a + 1
END IF
Optically highlighted reference to another topic. Can be
activated with a mouse-click in this documentation.
activated with a mouse-click in this documentation.
Step-by-step instructions are marked by a pictograph.
Open to...
Lenze · Controller-based Automation · EtherCAT® Communication Manual · DMS 6.4 EN · 04/2014 · TD179
CANCAN (Controller Area Network) is an asynchronous, serial fieldbus system.
CANopen® is a communication protocol based on CAN. The Lenze system bus (CAN on board)
operates with a subset of this communication protocol.
CANopen® is a registered Community Trade Mark of the CAN User Organisation CiA® (CAN
in Automation e. V.).
CodeParameter for parameterising or monitoring the field device. The term is also referred to as
CoECANopen over EtherCAT
ControllerThe controller is the central component of the automation system which controls the Logic
Engineering PCThe Engineering PC and the Engineering tools installed serve to configure and parameterise
Engineering toolsLenze software solutions for simply engineering in all phases:
FBFunction block (contained in a function library)
Fieldbus stationsController (PLC) and inverter integrated in the bus system (EtherCAT)
Field device
FoEFile Access over EtherCAT
FUNFunction (contained in a function library)
IndexEach object has a unique index for addressing purposes.
InverterGeneric term for Lenze frequency inverters, servo inverters
PLCProgrammable Logic Controller
Object"Container" for one or more parameters with which you can parameterise or monitor the
"index" in common usage.
and Motion functionalities (by means of the runtime software).
The controller communicates with the field devices via the fieldbus.
the system.
The Engineering PC communicates with the controller via Ethernet.
•»EASY Starter«
• »Engineer«
•»PLC Designer«
•»WebConfig«
•»VisiWinNET®«
•»IPC Backup & Restore«
Lenze Engineering tools
EtherCAT® (Ethernet for Controller and Automation Technology) is an Ethernet-based
fieldbus system which meets the application profile for industrial real-time systems.
EtherCAT® is a registered trademark and patented technology, licensed by Beckhoff
Automation GmbH, Germany.
In this documentation, the index is shown as a hexadecimal value preceded by "0x", e.g.
"0x1000".
PROFIBUS® (Process Fieldbus) is a common fieldbus system for the automation of machines
and production lines.
PROFIBUS® is a registered trademark and patented technology licensed by the PROFIBUS &
PROFINET International user organisation (PI).
PROFINET® (Process Field Network) is a real-time capable fieldbus system based on Ethernet.
PROFINET® is a registered trademark and patented technology licensed by the PROFIBUS &
PROFINET International (PI) user organisation.
fieldbus node.
( 29)
10
Lenze · Controller-based Automation · EtherCAT® Communication Manual · DMS 6.4 EN · 04/2014 · TD17
Observe the following safety instructions if you want to commission an inverter or a system with
the Lenze Controller.
Read the documentation supplied with the system components carefully before you
start commissioning the devices and the Lenze Controller!
The system manual contains safety instructions which must be observed!
Danger!
Risk of injury
There is risk of injury by ...
• unpredictable motor movements (e.g. an unintended direction of rotation, too high
speeds, or jerky movement);
• impermissible operating states during the parameterisation while there is an active
online connection to the device.
Possible consequences
Death or severe injuries
Protective measures
• If required, provide systems with installed inverters with additional monitoring and
protective devices according to the safety regulations valid in each case (e.g. law on
technical equipment, regulations for the prevention of accidents).
• During commissioning, maintain an adequate safety distance to the motor or the
machine parts driven by the motor.
Stop!
Damage or destruction of machine parts
Damage or destruction of machine parts can be caused by ...
• unpredictable motor movements (e.g. an unintended direction of rotation, too high
speeds, or jerky movement);
• impermissible operating states during the parameterisation while there is an active
online connection to the device.
Possible consequences
Damage or destruction of machine parts
Protective measures
If required, provide systems with installed inverters with additional monitoring and
protective devices according to the safety regulations valid in each case (e.g. law on
technical equipment, regulations for the prevention of accidents).
Lenze · Controller-based Automation · EtherCAT® Communication Manual · DMS 6.4 EN · 04/2014 · TD1713
3Controller-based Automation: Central motion control
3Controller-based Automation: Central motion control
The Lenze automation system "Controller-based Automation" serves to create complex automation
solutions with central motion control. Here, the Controller is the control centre of the system.
System structure of the Controller-based Automation: "All from one single source"
[3-1]Example: EtherCAT bus system with a 3231 C controller, a 1000 I/O system and an i700 servo inverter
14Lenze · Controller-based Automation · EtherCAT® Communication Manual · DMS 6.4 EN · 04/2014 · TD17
3Controller-based Automation: Central motion control
Lenze provides especially coordinated system components:
• Engineering software
The Lenze Engineering tools
to parameterise, configure and diagnose the system. The Engineering PC communicates with
the Controller via Ethernet.
•Controller
The Lenze Controller is available as Panel Controller with integrated touch display and as
Cabinet Controller in control cabinet design.
Cabinet Controllers provide a direct coupling of the I/O system 100 via the integrated backplane
bus.
The runtime software of the Lenze Controllers provides the control and/or visualisation of
motion sequences. The following software versions are available:
• "Logic": Sequence control in the Controller, motion control in the inverter
• "Motion": Sequence control and motion control in the Controller, inverter as actuating drive
• "Visu": Optional visualisation of the automation system, can be used separately or in addition
to "Logic" or "Motion"
An external monitor panel/display can be connected to the Cabinet Controller 3231 C/
3241 C.
• Without software: Controller as single component with operating system only
•Bus systems
EtherCAT is a standard "on board" bus system of the Controller-based Automation. EtherCAT
enables the control of all nodes (Motion/Logic) on one common fieldbus.
Optionally, CANopen, PROFIBUS and PROFINET can be used as extended topologies.
The Controllers c300/p300 have a CANopen interface "on board" as well (in addition to
EtherCAT).
• Inverter (e.g. Servo Inverter i700)
( 29) on your Engineering PC (Windows operating system ) serve
"Logic & Motion" runtime software
The "Controller-based Automation" system allows for the central control of devices for Logic and
Motion applications. The runtime software runs on the Controller.
In case of Logic applications, the sequence control is carried out in the Controller and the motion
control is carried out in the inverter.
In case of Motion applications , the sequence control and motion control are carried out in the
Controller. The inverter is used as actuating drive.
• Motion applications make special demands on the cycle time and real-time capability of the bus
system between the Controller and the subordinate fieldbus nodes.
• this is for instance the case if the field devices, for example, are to move in a synchronised way
or if position setpoints are to be transmitted.
Lenze · Controller-based Automation · EtherCAT® Communication Manual · DMS 6.4 EN · 04/2014 · TD1715
3Controller-based Automation: Central motion control
• the structure of the Lenze automation system using the EtherCAT bus system;
• the Lenze Engineering tools required for commissioning;
• the interaction of the components.
4.1Brief description of EtherCAT
Tip!
Detailed information on EtherCAT is provided on the Internet website of the EtherCAT
Technology Group:
www.ethercat.org
Product features
• EtherCAT is a high-performance bus system based on Ethernet.
• Due to its integrated synchronisation mechanisms based on "distributed clocks", EtherCAT
possesses outstanding real time characteristics.
Synchronisation with "Distributed clocks" (DC)
• EtherCAT provides a higher bandwidth compared to CANopen:
• This enables motion and logic applications to be operated by the same fieldbus.
• The number of the nodes to be controlled is higher.
• The maximally possible bus length is longer.
• EtherCAT can access all field devices via a common interface. Therefore, unlike for the Lenze
CANopen control technology, a division into Logic bus and Motion bus is not required.
• The "Modular Device Profile for IPC" (MDP) is based on the "Modular Device Profile Specification"
of the EtherCAT Technology Group. All (software and hardware) components of the Lenze
Controller or Embedded PC are divided into modules. The list of the modules available is
generated dynamically, depending on the physically available components. The Lenze I/O
system 1000 with the EPM-S130 head end supports the "Modular Device Profile".
( 36)
Lenze · Controller-based Automation · EtherCAT® Communication Manual · DMS 6.4 EN · 04/2014 · TD1717
[4-1]Example: EtherCAT bus system with 3231 C controller and i700 servo inverter
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 feed
conductor 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.
18
Lenze · Controller-based Automation · EtherCAT® Communication Manual · DMS 6.4 EN · 04/2014 · TD17
Compared with conventional Ethernet, the collision-free transfer of telegrams on the fieldbus
makes EtherCAT a real-time capable bus system.
Communication is always initiated by the EtherCAT master, i.e. the Lenze Controller. 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.
When EtherCAT is used, data are transferred in so-called "EtherCAT frames". The fieldbus nodes
only remove the data intended for them and do so while the EtherCAT frame is passing through the
device. Output data are inserted into the frame at the same time. Read and write access is always
carried out on a small section of the overall EtherCAT frame – the datagrams. This means that a
frame does not have to be received completely before it is processed. Each datagram is passed on
with minimal delay.
Lenze · Controller-based Automation · EtherCAT® Communication Manual · DMS 6.4 EN · 04/2014 · TD1719
Before communication via EtherCAT is possible, the fieldbus is scanned by the EtherCAT state
machine when the installation is being powered up. The following illustration shows the possible
status changes from the point of view of an EtherCAT slave.
E94AYCET009
[4-2]EtherCAT state machine
StateDescription
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 in the process image are updated.
• The output data from the process image are not transferred to the slaves.
OperationalNormal operation
• SDO communication
• PDO communication
• Fieldbus synchronisation has been successful (if used)
Note!
• A fieldbus scan is possible in any EtherCAT state.
Determining the physical EtherCAT configuration (fieldbus scan)
• The SDO communication via the EtherCAT bus is only possible if at least the "PreOperational" state has been reached.
• Only in the transitional phases between states can bus nodes be in different states.
( 75)
20
Lenze · Controller-based Automation · EtherCAT® Communication Manual · DMS 6.4 EN · 04/2014 · TD17
The EtherCAT system uses two types of addressing for the slaves:
Auto-increment addressing
The auto-increment addressing is used by the master during the initialisation phase of the fieldbus.
When the "Pre-Operational" state has been reached, the master uses the Fixed-Address addressing.
Fixed-address addressing
With the fixed-address addressing, the slaves are addressed via the station address distributed by
the master during the start-up phase.
In the EtherCAT bus topology in »PLC Designer«, the first slave is given the address ’1001’, the
second the address ’1002’ and so on. The EtherCAT addresses cannot be changed.
The EtherCAT address of the master is ’0’. Access to master objects with the address ’0’ is possible.
Example
The first slave of a configuration is given the following addresses ...
• ’0’ due to the automatic incrementation procedure;
• ’1001’ due to the fixed addressing procedure.
22
Lenze · Controller-based Automation · EtherCAT® Communication Manual · DMS 6.4 EN · 04/2014 · TD17
Each EtherCAT datagram contains a working counter (WKC) which is incremented by each slave
after the data have been processed successfully.
The working counter (WKC) can be used as a diagnostics option to check the processing of the
EtherCAT telegrams by the slaves.
In each cycle, the Lenze Controller compares the expected value of the working counter with the
value read back via the fieldbus. If the read-back value is smaller than the expected value, not all
addressed slaves have been reached. The controller detects this and reports an error.
Messages: WKC Error / Not all slaves "Operational" / SyncManager Watchdog
Example
• 10 slaves read/write process data in the "Operational" state
Expected value of the WKC: 10
• A cable break between the 8th and 9th slave causes the master to be unable to access slave 9
and slave 10:
• Value of the restored WKC: 8
• An error response is initiated in the Lenze Controller.
• The EtherCAT bus changes to the state "Pre-Operational".
( 177)
Lenze · Controller-based Automation · EtherCAT® Communication Manual · DMS 6.4 EN · 04/2014 · TD1723
[4-3]Example: EtherCAT bus system with 3231 C controller as gateway and i700 servo inverter
The Lenze Controller is the central component in the EtherCAT bus system:
• The controller is the EtherCAT master.
• The Lenze Controllers have an EtherCAT interface "on-board".
• The controller acts as an EtherCAT gateway in order to enable access to the field devices from
the Engineering PC via Ethernet and EtherCAT.
• The devices are interconnected successively in line. For correct operation, it is nec essary that th e
physical sequence of the EtherCAT field devices matches the bus topology created in »PLC
Designer«.
Otherwise the system will not become "Operational". (An error message indicates which slave
(product code) is expected at what position.)
• Each EtherCAT slave has two EtherCAT ports.
In contrast to Ethernet, one port is assigned as input, the other one as output.
The inputs (IN) and outputs (OUT) must be correctly wired to each other
• A bus termination at the last slave is not required since the bus system at the last slave is
terminated automatically.
Lenze · Controller-based Automation · EtherCAT® Communication Manual · DMS 6.4 EN · 04/2014 · TD1725
Device descriptions can be assigned to the corresponding devices with the help of the product
codes. In »PLC Designer«, you can install device descriptions with the menu command Tools
Structure of the device ID: <Manufacturer ID>_<Productcode><Revision number
IdentificationMeaning
Manufacturer IDUnique identification for the manufacturer, for Lenze devices: 0x3B
Product codeProduct code of the product range/the device
Revision numberRevision number
If, for instance, a device available at the fieldbus without an installed device description is detected
during a Determining the physical EtherCAT configuration (fieldbus scan)
device ID as hexadecimal value is displayed:
( 78)
(59)
( 75) a message with the
In this example, the device description for a Lenze Servo Drive 9400 HighLine, actuating drive speed, is not installed (0x38079CD9 = 940023001).
Product codes for Servo Drives 9400
Product code [dec]Meaning
9 4 0 0 2 1 x x xServo Drive 9400 in general
9 4 0 0 2 2 x x xServo Drive 9400 StateLine
9 4 0 0 2 3 x x xServo Drive 9400 HighLine
9 4 0 0 2 4 x x xServo Drive 9400 TopLine
9 4 0 0 2 5 x x xServo Drive 9400 PLC
9 4 0 0 2 6 x x xServo Drive 9400 V/R (regenerative power supply module)
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
000
89Reserved
...
...
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
26
Lenze · Controller-based Automation · EtherCAT® Communication Manual · DMS 6.4 EN · 04/2014 · TD17
The Lenze Engineering tools enable the configuration and operation of controller-based Lenze
automation systems according to individual requirements.
Use the corresponding Engineering tool applicable to the field device.
»EASY Navigator«: Starting the suitable Engineering tool
The Lenze Engineering software consists of the Engineering tools optimised for the respective
Engineering stage.
The »EASY Navigator« represents the Lenze Engineering tools installed on the Engineering PC. Start
the desired Engineering tool via the corresponding button:
The »EASY Navigator« ...
• simplifies orientation for selecting the suitable Engineering tool;
• allows for the simple start of the required Engineering tool (depending on the application):
What would you like to do?ButtonEngineering tool
Programming
• Program the controller
• Parameterise/commission the Servo-Inverter i700
• Parameterise the I/O system 1000
Parameterising/configuring the inverter
• Parameterising and configuring the automation/drive
4.4.1The state machine of the Lenze control technology
In the Lenze control technology, the states of the PLC and the EtherCAT bus are coupled. The PLC
controls the fieldbus.
After switch-on, the system automatically powers up if the following conditions are fulfilled:
• There is an executable PLC boot project on the controller (»PLC Designer« project).
• The slaves that are on the fieldbus and have been configured in »PLC Designer« are accessible.
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 configuration):
[4-5]States in the Lenze control technology
Legend
Transitional state, automatic change to next state
Stationary state, change to next state by external actions
PLCState of the PLC
EtherCATState of the EtherCAT bus
30
Lenze · Controller-based Automation · EtherCAT® Communication Manual · DMS 6.4 EN · 04/2014 · TD17
Loading...
+ 175 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.