• contains detailed information about the commissioning, configuration, and diagnostics of the
CANopen® bus system as part of the Lenze automation system Controller-based Automation.
• is part of the "Controller-based Automation" manual collection. It consists of the following sets
of documentation:
Documentation typeSubject
System manualsSystem overview/sample topologies
• Controller-based Automation
• Visualising
Communication manuals
Online helps
Reference manuals
Online helps
Software manuals
Online helps
Bus systems
• Controller-based Automation EtherCAT®
• Controller-based Automation CANopen®
• Controller-based Automation PROFIBUS®
• Controller-based Automation PROFINET®
Lenze Controller:
• Controller 3200 C
• Controller c300
• Controller p300
• Controller p500
Lenze Engineering Tools:
• »PLC Designer«: Programming
• »Engineer«: Inverter configuration
• »VisiWinNET® Smart«: Visualisation
• »Backup & Restore«: Back up/restore data
5Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD17
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 · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD176
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 ( 8)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 · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD178
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
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:
Fieldbus stationsLenze Controller and controller integrated into the bus system (CANopen)
Field device
PLCProgrammable Logic Controller
SubcodeIf a code contains several parameters, they are stored in so-called "subcodes".
"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
»PCAN view« is the basic version of the »PCAN explorer« program by PEAK System Technik
GmbH for the diagnostics of CAN networks.
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.
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).
11Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD17
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: CANopen with the 3231 C Lenze Controller (I/O system 1000 and Servo Drive 9400 as slaves)
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD1712
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)
( 19) 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.
13Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD17
3Controller-based Automation: Central motion control
The control technology based on CANopen allows for the integration of all Lenze device series
provided with the Lenze system bus (CAN on board).
In order to extend the existing limits of the CAN bus, several CAN lines synchronised with each other
can be used. The number of CAN lines available depends on the equipment of the Lenze Controller
in each case.
The maximum possible number of nodes on a CAN line depends on the baud rate and the cycle time
set.
Example: In the case of a cycle time of 1 ms and a baud rate of 1 Mbps, three nodes with a setpoint
PDO and an actual value PDO, respectively, can be actuated on the CAN bus.
Tip!
Detailed information on CAN/CANopen can be found on the website of the CAN User
Organization CiA (CAN in Automation):
www.can-cia.org
15Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD17
[4-1]Example: CANopen (Logic/Motion) with the 3231 C controller (I/O system 1000 and Servo Drive 9400 as slaves)
Due to the requirements regarding the real time behaviour of the fieldbus system and due to its
limited transfer capacity, it is useful to operate Logic and Motion devices on separate CAN phases if
CANopen is used – on a logic bus and a motion bus.
The Lenze Controllers ...
•with the Communication card MC-CAN2
and CANopen (Motion);
• can also be used as CAN slaves.
Depending on the required number of Motion nodes and bus cycle time, up to 2 Motion bus lines
can be created.
( 18) have two CAN interfaces for CANopen (Logic)
Tip!
A sample project for operation of a 3200 C controller as CAN slave can be found in the
"Download" area at www.Lenze.com
"Application Knowledge Base": All articles Application Ideas Pool Controller 3200 C
:
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD1716
• It is absolutely necessary to comply with the permissible cable lengths.
• Observe the reduction of the total cable length due to the signal delay of the repeater.
Use of repeaters
• If the total cable lengths of the nodes are different at the same baud rate, the smaller
value must be used to determine the max. cable length.
5.4.1Total cable length
The total cable length is also specified by the baud rate.
Baud rate [kbps]Max. bus length [m]
108000-5000
204000-2500
50150015001000
125600600500
250275275250
50011011080
1000131325
( 23)
Servo Drives
9400
Inverter Drives
8400
I/O-System 1000
(EPM-Sxxx)
CANopen bus coupler
5.4.2Segment cable length
Repeaters divide the total cable length into segments. The segment cable length is defined by the
cable cross-section and the number of nodes per segment. Without a repeater, the segment cable
length corresponds to the total cable length.
Max. number of
nodes per segment
2240 m430 m650 m940 m
5230 m420 m640 m920 m
10230 m410 m620 m900 m
20210 m390 m580 m850 m
32200 m360 m550 m800 m
63170 m310 m470 m690 m
100150 m270 m410 m600 m
Cable cross-section
0.25 mm
2
0.50 mm
2
0.75 mm
2
1.00 mm
2
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD1722
Create an overview screen of the planned CANopen network with all field devices to be
implemented. Start with the Lenze Controller and arrange the other field devices below it (see
Example of an overview screen
Provide the following data for each device:
TypeType designation of the field device
Used CAN interface of the device• The functionality of the two available CAN interfaces is identical. Both
Unambiguous CAN node address• If system bus (CAN) devices are used, max. 63 nodes/node addresses are
Baud rate• The baud rate applies to all nodes of the CANopen network.
Master task of the device
(NMT master/Sync master)
CAN objects and COB-IDs• Plan your COB-IDs according to the CANopen DS301 communication
( 27)).
Logic and Motion devices can be connected. The combination of Logic and
Motion on an interface is possible as well.
• If possible, the Logic and Motion devices should be installed on different
CAN lines:
• The requirements of the Motion devices regarding the synchronicity of
the bus are higher.
• Shorter cycle times are needed.
• The data volume to be transferred is larger.
CANopen (Logic) / CANopen (Motion)
possible.
• With CANopen-compliant devices, up to 127 nodes/node addresses are
possible.
Note: Do not use the node address 1, in order to avoid unintentional
mistakes and conflicts with a device containing the factory adjustment.
• 50, 125, 250 and 500 kbps are supported by all device types of the system.
• Observe the connection between bus cable length and baud rate.Bus
cable length ( 22)
•An NMT master sets itself and then the NMT slaves to the "Operational"
state. In this state, process data can be communicated. Generally, there
can be an optional number of NMT masters on one CANopen bus.
•A Sync master cyclically sends a sync telegram providing for an exactly
simultaneous processing of process data and/or a simultaneous task
start in all sync receivers.
• Via CAN synchronisation, the Lenze Controller can influence the exact
time of the following events in the field device:
• Acceptance and transmission of sync-controlled PDOs
• Starting time of the task of the application (only possible in 9400)
• You only need to use CAN synchronisation on the Logic bus if an exact
simultaneity in the range of milliseconds is of importance. A mere
operating periphery (operator button, control lamps, etc.) does not
require CAN synchronisation.
profile. This convention is optimised for the communication with a
central master device.COB-IDs acc. to DS301
• Up to 4 PDOs per device can be identif ied with this sch eme. I f you require
more, e.g. for a modular I/O system with more than 8 modules, you can
add them later.
• You can easily assign the node during the bus diagnostics by means of the
COB-IDs.
• COB-ID = basic identifier + node address
( 16)
( 26)
25Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD17
the device-specific information on the CAN configuration in the documentation for the
field devices to be implemented.
6.1COB-IDs acc. to DS301
ObjectDirectionBasic identifier
from the driveto the driveDechex
NMT00x000
Sync1280x080
Time Stamp2560x100
Emergency1280x080
PDO1
(Process data channel 1)
PDO2
(Process data channel 2)
PDO3
(Process data channel 3)
PDO4
(Process data channel 4)
SDO
(Parameter data channel 1)
NMT Error Control17920x700
TPDO1
RPDO1
TPDO2
RPDO2
TPDO3
RPDO3
TPDO4
RPDO4
3840x180
5120x200
6400x280
7680x300
8960x380
10240x400
11520x480
12800x500
14080x580
15360x600
Note!
In Lenze system bus (CAN) devices, two SDO channels are permanently active, in
CANopen devices, only one by default.
When using CANopen devices, activate a second SDO channel for access of the
»Engineer«. Otherwise communication with the device will be interfered if you go online
with the »Engineer« while the Lenze Controller has access as well.
The COB-IDs for your CANopen network can be calculated according to the following formula:
COB-ID = basic identifier + node address
Basic identifier - 9400 Servo Drives
Basic identifier - 8400 Inverter Drives
Basic identifier - I/O system 1000 (EPM-Sxxx)
( 29)
( 30)
( 31)
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD1726
•The optional parameter data channels 2 ... 10 can be activated via the subcodes of the codes
Cxx372 and Cxx373.
SDO identifierCode
CANopen SDO server Rx identifierC00372: CAN on board
C13372: Module in slot 1
C14372: Module in slot 2
CANopen SDO server Tx identifierC00373: CAN on board
C13373: Module in slot 1
C14373: Module in slot 2
• If bit 31 is set (0x8nnnnnnn), the corresponding SDO server is deactivated.
• In order to change the COB-ID of a currently active parameter data channel, you have to first
deactivate it and then activate it with a changed COB-ID. Both processes must be rendered
effective by a "Reset Node" command via C00002.
Basic identifier - 9400 Servo Drives
The default setting of the basic identifier is as follows:
ObjectDirectionBasic identifier
from the driveto the driveDechex
NMT00x000
Sync 1)1280x080
Emergency1280x080
PDO1
(Process data channel 1)
PDO2
(Process data channel 2)
PDO3
(Process data channel 3)
PDO4
(Process data channel 4)
SDO1
(Parameter data channel 1)
SDO2 ... 10
(Parameter data channel 2 ... 10)
Node guarding, heartbeat17920x700
TPDO1
RPDO1
TPDO2
RPDO2
TPDO3
RPDO3
TPDO4
RPDO4
TSDO1
RSDO1
TSDOx
RSDOx
3840x180
5120x200
6400x280
7680x300
8960x380
10240x400
11520x480
12800x500
14080x580
15360x600
14720x5C0
16000x640
29
1) When creating the sync transmit/receive identifier manually, observe the use of the emergency telegram because
of the same COB-ID.
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD17
Install the field devices according to the data given in the device-specific mounting instructions.
Make sure that ...
• the CANopen installation complies with your overview screen.
• all devices are supported by the control technology system on the Logic bus and Motion bus.
• in the case of devices with several CAN interfaces, the correct interfaces are connected to the
fieldbus.
• a terminating resistor is connected to the first and last node.
• the fieldbus is not unintentionally interrupted in switchable CAN connectors.
7.2Setting node addresses and baud rate
• Set the specified node address and baud rate on the field devices via DIP switch (if available on
the device), or via parameter/code.
• Mark the devices the settings of which you have changed in your overview screen.
• Attach address labels to the devices.
Note!
• Each node address must be unambiguous and may only be assigned once in the
CANopen network.
• The baud rate must be set identically for all nodes.
• Observe the connection between bus cable length and baud rate.
Bus cable length
Configuration via the »WebConfig«/»EASY Starter« for the Lenze Controller/IPC
If the baud rate has been changed via the »WebConfig«, the Lenze Controller/IPC needs
to be restarted afterwards. Then an online connection to the CAN nodes can be
established with the »EASY Starter«.
( 22)
33
Information on the DIP switch settings can be found in the documentation for the field
devices.
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD17
7Preparing the field devices
7.3Connecting the Engineering PC to the Lenze Controller
7.3Connecting the Engineering PC to the Lenze Controller
To commission the field devices, an online connection is required between the Engineering PC and
the field device. To establish an online connection between an Engineering PC and a field device (like
a controller), two ways are possible:
Direct couplingLenze Controller as gateway
[7-1]Online connection between the Engineering PC and the field device
If the Lenze Controller has not been commissioned yet, directly connect the Engineering PC to the
CANopen bus to commission the field devices. To activate the Engineering PC, for example use the
USB system bus adapter (EMF2177IB). Then the download times are optimal and is it not necessary
to commission the controller first.
As soon as the Lenze Controller has been commissioned, no direct coupling should be used anymore
since it may disturb the real-time capability of the fieldbus. This especially applies to the CANopen
Motion bus. Here, the transmission of the sync telegram on time can be disturbed so that an
increased jitter on the fieldbus may be the result.
Moreover, each field device requires a second parameter data channel for independent bus access
by two masters (controllers). For some device types, the parameter data channel must be installed
separately, e.g. in the case of the Servo Drives 9400.
As an option, some controllers can operate two independent CAN interfaces. In this case, one
interface can be used for the connection with the Lenze Controller, the other for the direct
connection of the Engineering PC. Thus, two fieldbuses are created which are physically
independent. In this case, the real-time capability of the nodes on the Motion bus is not influenced
even with direct coupling. However, the wiring expense increases.
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD1734
7Preparing the field devices
7.3Connecting the Engineering PC to the Lenze Controller
The communication speed with the field devices, when being commissioned, mainly depends on
whether the Lenze Controller is currently running or is stopped. In the latter case, the total
bandwidth of the fieldbus is provided to the gateway so that the speed advantage in the case of
direct coupling would only be marginal. Thus, the use of the Lenze Controller as gateway as part of
the control technology should be clearly preferred.
Information on the commissioning of Lenze field devices is provided in the chapter "Commissioning
the field devices" ( 39).
35
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD17
8.5Creating a PLC program with a target system (Logic)
The »PLC Designer« serves to model the network topology in the control configuration.
Tip!
The »PLC Designer« can be used to configure CANopen nodes and nodes on other fieldbus
systems.
Mixed operation of CANopen and EtherCAT
( 92)
How to create a PLC program in the »PLC Designer«:
1. Use the menu command File New project to create a new »PLC Designer« project.
2. Select "Standard project" in the New Project dialog window.
A "Standard object" simplifies the structure of a project in the »PLC Designer«; for instance,
a device tree structure with a target system, PLC logic, etc. is provided.
• Go to the Name input field and enter a name for your »PLC Designer« project.
• Select the previously created project folder as storage location in the Location
selection field.
Create a project folder
3. Confirm the entries by clicking OK.
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD1740
( 38)
8Commissioning of the CANopen Logic bus
8.5Creating a PLC program with a target system (Logic)
The device description file contains the data of the fieldbus peripherals required for the master
control. This file is required to program the control system.
With the »PLC Designer«, device descriptions for the following Lenze device series are installed as
well:
• i700 servo inverter
• Servo Drives 9400
• Inverter Drives 8400
• I/O system 1000 (EPM-Sxxx)
• Fieldbus communication cards for controller 3200 C / p500
(EtherCAT, CANopen, PROFIBUS)
In order to furthermore integrate missing devices or devices of other manufacturers, the
corresponding device description files of the manufacturer are required.
In the »PLC Designer« you can import device description files of the *.XML, *.devdesc.XML, *.EDS,
*.DCF, and *.GSx type via the menu command Tools Device Repository....
Tip!
Current device description files for Lenze devices can be found in the "Download" area at:
www.lenze.com
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD1744
8Commissioning of the CANopen Logic bus
8.8Creating a control configuration (adding field devices)
8.8Creating a control configuration (adding field devices)
Note!
The configuration of a Lenze Controller in a CANopen network must be created in the
»PLC Designer«, because the complete configuration is written to the connected slaves
when a controller is started. This process overwrites the previous slave settings.
How to create the control configuration in the »PLC Designer«:
1. Go to the context menu of the target system and use the command Add Device to add
the "CANbus" to the control configuration.
45
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD17
8Commissioning of the CANopen Logic bus
8.8Creating a control configuration (adding field devices)
5. Use the command Add Device to add a Logic device (slave) to the CANopen_Manager
(master).
Select a field device from the selection list. You can only select devices the CANopen
device description files of which have been imported in the »PLC Designer«.
For EDS files created in the »Engineer«, the field device appears in the selection list with the
same name as during the export of the EDS file in the »Engineer«, extended by the name of
the interface and device type.
6. Repeat the Add Device command until all slaves connected to the fieldbus are included
in the control configuration.
( 44)
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD1748
8Commissioning of the CANopen Logic bus
8.8Creating a control configuration (adding field devices)
The default setting for PDO mapping is a position mapping. This mapping can be changed
manually (by ticking). Due to the limited bandwidth of the CAN bus, this is only useful in
special cases. The default PDO properties, too, are useful default settings and should not be
changed.
If you double-click an individual PDO, its transmission properties are displayed.
•The Transmission Type "cyclic - synchronous (type 1-240)" and the setting, at
which sync the PDOs are to be sent, must not be changed.
• The settings for the Inhibit Time and the Event Time are not evaluated.
• Confirm the settings with the OK button.
On the CANopen I/O Mapping tab, PLC variables can be assigned to the process image.
Note!
Bus operation without CAN synchronisation
• The Lenze Controller always transmits asynchronous PDOs from an unsolicited task in
an event-controlled way. To achieve a time-controlled transmission of asynchronous
PDOs by the controller, you must assign the CAN master (controller) to a cyclic task.
• The Lenze Controller does not support any monitoring times for asynchronous
receive-PDOs. This is only possible with field devices.
51
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD17
With control via the CAN bus, cross communication between the slaves is possible. For this purpose,
you must configure the CAN communication and the PDO mapping in the »Engineer« and write it
to the controllers.
Since the mapping for the cross communication between the slaves is not available in the control
configuration, you must set the "No initialisation" option in the »PLC Designer« on the CANopenRemote Device tab of the respective slaves.
Thus the CAN settings and mapping settings in the slave drives will not be overwritten by the Lenze
Controller when the PLC program starts.
Note!
In addition to the cross communication between the slaves, communication with the
master must also be configured in the »Engineer«.
If the "No initialisation" option is active, this part of the PDO mapping is also not
overwritten by the Lenze Controller.
53
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD17
8.9.2Special features of the I/O system 1000 (EPM-Sxxx)
Note!
Before adding I/O modules beneath an EPM-S110 »PLC Designer«head station in the ,
the head station tab must be closed.
If the I/O 1000 modules are added when the head station tab is open, there will not be
shown any I/O image for the modules.
When all modules have been added, the EPM-S110 head station tab can be opened
again.
When using the EPM-S600 ... S604 counter modules at the EPM-S110 head station, the following
sequence must be observed when creating the configuration in the »PLC Designer«.
How to configure the EPM-S600 ... S604 counter modules:
1. Add EPM-S110 to the »PLC Designer« device configuration.
2. Add I/O discs and counter discs.
3. For EPM-S110,
•activate Enable Expert Settings;
•deactivate Autoconfig. PDO Mapping.
4. Execute the menu command Window Close All Editors.
5. Open EPM-S110 again with a double-click.
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD1754
• Select the corresponding settings in the dialog box that appears.
Note!
If Autoconfig. PDO Mapping (see step 3) is reactivated after adding the manual
configuration, the entire configuration that has been added manually will be deleted.
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD1756
8Commissioning of the CANopen Logic bus
8.10Creating the program code for controlling the Logic field device
8.10Creating the program code for controlling the Logic field device
Note!
All program blocks which are operated with an SDO communication must be called up
in the same Logic task. Otherwise, jobs will get lost.
If the device descriptions for logic devices that are supplied with the »PLC Designer« are
used, the process data are copied to the subordinate logic drive node automatically. (For
further information see SW_Commissioning_Lenze_(Controller-based)_Vx-y_EN.pdf,chapter "Overview of device descriptions".)
If the process data are to be continued to be linked manually, go to the LenzeLogicDriveConfiguration tab and activate this option:
Then continue to create the program code.
57
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD17
8Commissioning of the CANopen Logic bus
8.10Creating the program code for controlling the Logic field device
1. Create the program code for controlling the field device.
The device must be used in the program code in order that the SDO initialisation takes
place.
If other field devices are added to the control configuration, this may change the object
addresses (%Qxx, %Ixx) of the existing variables. For this reason, do not use addresses
directly in the program code to access the input and output objects or to assign values to
them. Use the CANopen I/O Mapping tab for this purpose and assign own unique variable
names according to the IEC 61131 syntax (no blanks and leading digits in the variable
name):
Already existing variables (e.g. global variables from the function libraries) can be
integrated via the button .
The manual assignment of object addresses in the Address column is not supported. Hence,
only use the automatically assigned addresses of the process image. A manual assignment
causes malfunctions.
2. Completely compile the »PLC Designer« project and transfer it to the Lenze Controller.
Menu command: Build Build
Special features of the I/O system 1000 (EPM-Sxxx)
• When the program starts, the Lenze Controller initialises the I/O system. It changes to the
"Operational" status.
• When the Lenze Controller initialises the I/O system, the »Engineer« must not be online on the
same SDO channel.
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD1758
In the control technology system you can use the Lenze Controller to transmit the complete
parameter setting via SDO initialisation to the field devices when the machine is switched on.
According to DS301, the Lenze Controller always initialises the CAN parameters of the field devices.
Additionally the controller can initialise further parameters. The values for this must be stored in
the Control configuration under the Service Data Objects tab.
Usually, the Lenze Controller only transmits the SDO objects for which you have stored another
value than the standard value. The controller does not
values in the field device. Thus, not all parameters changed there may be set correctly.
If you want a factory adjustment to be carried out in the field device before the SDO initialisation is
carried out, tick under the CANopen Remote Device tab ...
1. "Enable Expert Settings",
2. "Default Settings":
compare these values with the existing
Note!
During a factory adjustment, the parameter setting in the field device, which you have
carried out with the »Engineer«, gets lost. In this case, you have to transmit all parameter
values manually to the Service Data Objects tab. This only makes sense when
commissioning is completed and all parameters are optimised. If you change something
afterwards via the »Engineer«, you have to maintain it in the PLC program.
The Service Data Objects tab contains the codes which are written in the EDS file. The EDS file
contains all writable codes.
59
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD17
8.11.1Special features of the 9400 Servo Drives HighLine
Servo Drives 9400 are not purely parameterisable devices. They require an application download,
where several files are transmitted to the memory module.
To put a Servo Drive 9400 into operation, you can:
• plug on the memory module.
• transmit the application using the »Engineer«. For this, you must keep the original »Engineer«
project.
• transmit the application using the »Loader«. For this, you must export and keep the required
files from the »Engineer« project:
8.11.2Special features of the 8400 Inverter Drives
Inverter Drives 8400 are purely parameterisable devices.
To put an Inverter Drives 8400 into operation, you can transmit the application using the
»Engineer«. For this, you must keep the original »Engineer« project.
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD1760
• You have implemented the I/O system successfully into the PLC program.
• You have parameterised some CANopen indexes of the I/O system using the »Engineer«.
No transmission of the parameter setting to the Control configuration
You do not want to transmit the parameter setting to the Control configuration now, since you can
assume that after a possible device replacement the configuring software will be available.
• Operate the I/O system in CANopen mode.
•Do not
tick the "Default Settings" under the CANopen Remote Device tab in order that the Lenze
Controller does not execute a factory adjustment.
• Save the »Engineer« project near the machine.
When the I/O system has been replaced
1. Set the node address and the baud rate at the code switch.
2. Transmit the archived parameter setting to the I/O system.
3. Start the Lenze Controller.
63
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD17
In order to compile the PLC program code, select the menu command Build Build, or press
function key <F11>.
• If errors occur during translation, they can be located and corrected on the basis of the »PLC
Designer« error messages.
Then re-translate the program code.
• If no errors have occurred during the compilation process, save the »PLC Designer« project in the
project folder.
8.13Logging in on the Lenze Controller with the »PLC Designer«
Use the menu command Online Login or <Alt>+<F8> to log in on the Lenze Controller.
• For this, the PLC program must be error-free.
• With the log-in, the fieldbus configuration and the PLC program are loaded to the controller.
Any possibly available configuration and PLC program are overwritten.
8.14Starting the PLC program
Before the start, the PLC program must be loaded to the Lenze Controller using the menu command
Online Login.
Use the menu command Debug Start or function key <F5> to start the PLC program.
8.15Start parameters of the Servo Drives 9400 HighLine CiA 402
When the Lenze Controller is started, the following "start parameters" are automatically loaded to
the Servo Drives 9400 HighLine CiA 402:
Index: Subindex
[hex]
0x5EEB:0x00Signal source torque setpoint (C00275)
0x5B9E:0x00Sync cycle time (C01121)
0x5B95:0x00CAN SYNC application cycle (C01130)
0x60C0:0x01Interpolation time unit
0x60C0:0x02Interpolation time value
0x60C2:0x00Selection of the interpolation submode
Name
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD1764
This chapter provides information on commissioning the CANopen Motion field devices in the Lenze
automation system.
The commissioning of a Motion device does not differ fundamentally from the commissioning of a
Logic device. Below a Motion device, an additional "SoftMotion" node is displayed in the device tree.
Via this node, further settings must be made.
Depending on the field devices used, the following Lenze Engineering tools
• »EASY Starter«
• »Engineer«
•»PLC Designer«
( 19) are required:
65Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD17
3.Creating a PLC program with target system (Motion)
4.Configuring the communication parameters
5.Creating a Motion task
6.Creating a control configuration
7.Setting SoftMotion parameters
8.Setting of CAN parameters and PDO mapping
9.Creating the program code for controlling the Motion field device
10.Preparing the restart
11.Compiling the PLC program code
12.Logging in on the Lenze Controller with the »PLC Designer«
With the log-in, the fieldbus configuration and the PLC program are
loaded into the Controller.
13.Starting the PLC program
( 68)
( 69)»Engineer« / »EASY Starter«
( 70)»PLC Designer«
( 72)
( 74)
( 78)
( 84)
( 87)
( 90)
( 90)
( 91)
( 91)
( 91)
used
In the following sections, the individual commissioning steps are described.
Follow the instructions of these sections step by step in order to commission your system.
More detailed information about how to work with the Lenze Engineering tools can be
found in the corresponding manuals and online helps.
67
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD17
Parameterise the Lenze field devices connected to the CANopen network by means of the
»Engineer« or »EASY Starter«.
Die CANopenis exclusively configured using the »PLC Designer«.
CANopen settings of the field devices which have possibly been carried out with the »Engineer«/
»EASY Starter« are overwritten.
Documentation of the Lenze field devices
Detailed information about the commissioning of the Lenze field devices is provided
here.
Tip!
We recommend to commission each field device individually and then integrate them into
the PLC program.
There already exist sample projects (device application + PLC program) for commissioning
of Lenze Controllers.
Sample projects (Application Samples)
For the Servo Drive 9400 Highline CiA 402 the following parameters must be set manually via the
»Engineer«:
• Homing mode (C02640, set in machine-dependent manner)
• Touch-probe interface (set in machine-dependent manner)
• Control of the 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 at standstill).
These parameters are not set via the Lenze Controller.
( 66)
69
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD17
9Commissioning of the CANopen Motion bus
9.5Creating a PLC program with target system (Motion)
9.5Creating a PLC program with target system (Motion)
The »PLC Designer« serves to model the network topology in the control configuration.
Tip!
The »PLC Designer« can be used to configure CANopen nodes and nodes on other fieldbus
systems.
Mixed operation of CANopen and EtherCAT
( 92)
How to create a PLC program in the »PLC Designer«:
1. Use the menu command File New project to create a new »PLC Designer« project.
2. Select "Standard project" in the New Project dialog window.
A "Standard object" simplifies the structure of a project in the »PLC Designer«; for instance,
a device tree structure with a target system, PLC logic, etc. is provided.
• Go to the Name input field and enter a name for your »PLC Designer« project.
• Select the previously created project folder as storage location in the Location
selection field.
Create a project folder
3. Confirm the entries by clicking OK.
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD1770
( 68)
9Commissioning of the CANopen Motion bus
9.5Creating a PLC program with target system (Motion)
1. Go Task configuration in the configuration tree.
2. Create a new task with the Add Object command.
Assign a sensible task name (e.g. "MotionTask").
3. Enter a reasonable cycle time in milliseconds in the Interval input field.
The cycle time to be entered depends on the number of Motion axes and the runtime of the
PLC application. In case of a small PLC application, the minimum cycle time (T
determined by the number of Motion axes due to the transfer rate of the CANopen bus.
[ms] = number of Motion axes / 3
T
cycl
cycl
) is
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD1774
The configuration of a Lenze Controller in a CANopen network must be created in the
»PLC Designer«, because the complete configuration is written to the connected slaves
when a controller is started. This process overwrites the previous slave settings.
How to create the control configuration in the »PLC Designer«:
1. Go to the context menu of the target system and use the command Add Device to add
the "CANbus" to the control configuration.
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD1778
5. Use the command Add Device to add a Motion device (slave) to the
CANopen_Manager (master).
Select a field device from the selection list.
For EDS files created in the »Engineer«, the field device appears in the selection list with the
same name as during the export of the EDS file in the »Engineer«, extended by the name of
the interface and device type.
6. Repeat the command Add Device until all slaves connected to the bus are integrated
into the control configuration.
7. Give the inserted slaves suitable names (e.g. "Drive_vertical").
The names must …
• only contain the characters "A ... Z", "a ... z", "0 ... 9" or "_";
• not begin with a digit.
You can enter a name by clicking the element.
Example:
81
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD17
9Commissioning of the CANopen Motion bus
9.9Parallel operation of two synchronised CAN buses
9.9Parallel operation of two synchronised CAN buses
The MC-CAN2 communication card is provided with two CAN interfaces. Thus, basically two CAN
buses can be operated independently of each other. The two buses can also be operated in a synccontrolled manner.
In the basic setting, which is sufficient for most application cases, there is an interval of the sync
telegrams of approx. 50 μs on the two buses.
If special cases require a different setting, the following optimisation can be carried out via the
»WebConfig« (see software manual for the Lenze Controller):
• Set the parameter "Sync master interface index" = 1 for "CAN interface 2".
• This reduces the interval of the sync telegrams on the two buses to approx. 20 μs.
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD1782
9Commissioning of the CANopen Motion bus
9.9Parallel operation of two synchronised CAN buses
In the »PLC Designer«, the SoftMotion tabs are only available for field devices using a
Motion application (e.g. Servo Drive 9400 Highline CiA 402).
The SoftMotion parameters are to be set in relation to the application.
For the Servo Drive 9400 Highline CiA 402 the following parameters must be set manually via the
»Engineer«:
• Homing mode (C02640, set in application-dependent manner)
• Touch probe interface (set in application-dependent manner)
• Control of the 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 at standstill).
These parameters are not set via the Lenze Controller.
Example of a minimum configuration with a Motion device (Servo Drive 9400 HighLine CiA 402)
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD1784
The default setting for PDO mapping is a position mapping. This mapping can be changed
manually (by ticking). Due to the limited bandwidth of the CAN bus, this is only useful in
special cases. The default PDO properties, too, are useful default settings and should not be
changed.
If you double-click an individual PDO, its transmission properties are displayed.
•The Transmission Type "cyclic - synchronous (type 1-240)" and the setting, at
which sync the PDOs are to be sent, must not be changed.
• The settings for the Inhibit Time and the Event Time are not evaluated.
• Confirm the settings with the OK button.
On the CANopen I/O Mapping tab, PLC variables can be assigned to the process image.
Note!
Bus operation without CAN synchronisation
• The Lenze Controller always transmits asynchronous PDOs from an unsolicited task in
an event-controlled way. To achieve a time-controlled transmission of asynchronous
PDOs by the controller, you must assign the CAN master to a cyclic task.
• The Lenze Controller does not support any monitoring times for asynchronous
receive-PDOs. This is only possible with field devices.
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD1788
9.12Creating the program code for controlling the Motion field device
This depends on the automation task, the use of PLCopen blocks or the CNC programming.
Note!
All SoftMotion function blocks, SoftMotion functions, and the read/write block
parameters that access the SoftMotion devices (e.g. MC_WriteParameter or
MC_WriteBoolParameter) must only be called from the Motion task.
If they are called from another task, their execution may be incorrect.
See also chapter "Creating the program code for controlling the Logic field device
9.13Preparing the restart
Saving the parameter set of the drive via the »Engineer«.
See also Preparing the restart
" ( 57).
( 59).
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD1790
In order to compile the PLC program code, select the menu command Build Build, or press
function key <F11>.
• If errors occur during translation, they can be located and corrected on the basis of the »PLC
Designer« error messages.
Then re-translate the program code.
• If no errors have occurred during the compilation process, save the »PLC Designer« project in the
project folder.
9.15Logging in on the Lenze Controller with the »PLC Designer«
Use the menu command Online Login or <Alt>+<F8> to log in on the Lenze Controller.
• For this, the PLC program must be error-free.
• With the log-in, the fieldbus configuration and the PLC program are loaded to the controller.
Any possibly available configuration and PLC program are overwritten.
9.16Starting the PLC program
Before the start, the PLC program must be loaded to the Lenze Controller using the menu command
Online Login.
Use the menu command Debug Start or function key <F5> to start the PLC program.
9.17Start parameters of the Servo Drives 9400 HighLine CiA 402
When the Lenze Controller is started, the following "start parameters" are automatically loaded to
the Servo Drives 9400 HighLine CiA 402:
Index:Subindex
[hex]
0x5EEB:0x00Signal source torque setpoint (C00275)
0x5B9E:0x00Sync cycle time (C01121)
0x5B95:0x00CAN SYNC application cycle (C01130)
0x60C0:0x01Interpolation time unit
0x60C0:0x02Interpolation time value
0x60C2:0x00Selection of the interpolation submode
Name
91
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD17
[10-1] Example: Mixed operation of EtherCAT with CANopen connected to a 3231 C controller with Servo-Inverter i700 and Servo
Drives 9400
Within the Lenze Controller-based Automation, CANopen can be used in parallel to the EtherCAT
bus system. This is useful if not all field devices are available for the same bus system or if, in parallel
to the CANopen bus as Logic bus, a Motion bus (EtherCAT) is required.
Note!
• Due to the requirements regarding the real time behaviour of the fieldbus system and
due to its limited transfer capacity, it is useful to operate Logic and Motion devices on
separate field bus lines if CANopen is used – on a logic bus and a motion bus.
• In mixed operation, ensure 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.
Controller-based Automation EtherCAT communication manual
Here you can find information on the commissioning of EtherCAT components.
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD1792
13Defining the minimum cycle time of the PLC project
This chapter provides information on how to ...
• Determining the task utilisation of the application
• Optimising the system
( 97)
13.1Determining the task utilisation of the application
In the online mode, the Monitor tab of the Task Configuration shows current status details and
measurements of the cycles, cycle times, and jitters of the tasks contained.
( 95)
The values are updated in the same time interval as that used for monitoring the values from the
controller.
If the curso r is on a task name field, the values displayed can be reset to 0 by the Reset context menu
command (right-click the task name field).
95
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD17
13Defining the minimum cycle time of the PLC project
13.1Determining the task utilisation of the application
Initial situation: A complete project, e.g. with a CANopen task and 2 lower priority tasks has
been created.
1. For a first measurement of the task utilisation, set the cycle times of all cyclic tasks
available in the PLC system "high" (e.g. CANopen task = 10 ms, all other cyclic
tasks = 20 ms).
2. Use the menu command Online Login, or log in on the Lenze Controller with <Alt>+<F8>.
• For this, the PLC program must be error-free.
• With the log-in, the fieldbus configuration and the PLC program are loaded into the
Controller.
3. Reset the values displayed on the Monitor tab of the Task Configuration to 0 after the
complete run-up of the system.
Execute the Reset command from the context menu of the task name field.
4. Read the displayed maximum computing time of the task with the highest priority.
In the illustration above, the max. cycle time of the CANopen task is 647 μs.
The minimum cycle time (T
Note!
A safety factor of 1.5 should be included in the calculation.
) for a system can be calculated by means of the formula:
min
T
= Task utilisation x safety factor
min
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD1796
13Defining the minimum cycle time of the PLC project
In the »PLC Designer«, there is a Status tab for each field device integrated into the control
configuration. This tab can be used to call diagnostic information about the device.
14.3Diagnostic codes
In the »Engineer«, you can view the diagnostic codes of the Lenze field devices.
99
Lenze · Controller-based Automation · CANopen® Communication Manual · DMS 6.3 EN · 04/2014 · TD17