This documentation applies to 931E servo inverters.
efesotomasyon.com - Lenze
Document history
Material No.VersionDescription
.4&ø2.002/2007TD19First edition
0Fig.0Tab. 0
Tip!
Current documentation and software updates concerning Lenze products can be found on
the Internet in the ”Services & Downloads” area under
http://www.Lenze.com
Important note:
Software is provided to the user ”as is”. All risks regarding the quality of the software and any results obtained from its use
remain with the u ser. The user should take appropriate security precautions against possible maloperation.
We do not accept any responsibility for direct or indirect damage caused, e.g. loss of profit, loss of orders or adverse
commercial effects of any kind.
All trade names listed in this documentation are trademarks of their respective owners.
The competitive situation in the mechanical and system engineering sector requires new
means to optimise the production costs. This is why modular machine and system
engineering is becoming increasingly more important, since individual solutions can now
be set up easily and cost-effectively from a single modular system.
Lenze fieldbus systems in industrial applications
For an optimal communication between the single modules of a system, fieldbus systems
are increasingly used for process automation. Lenze offers the following communication
modules for the standard fieldbus systems:
ƒ PROFIBUS-DP
ƒ CANopen
Preface
Introduction
1
Decision support
The decision for a fieldbus system depends on many different factors. The following
overviews will help you to find the solution for your application.
PROFIBUS-DP
For bigger machines with bus lengths of more than 100 metres, INTERBUS or PROFIBUS-DP
(PROFIBUS-Decentralised Periphery) are frequently used. The PROFIBUS-DP is always used
together with a master control (PLC) – here the PROFIBUS master transmits e.g. the
setpoints to the single PROFIBUS stations (e. g. Lenze controllers).
Whenusing thedata transferrateof 1.5Mbps typical for thePROFIBUS-DP,the sensorsand
actuators receive the p rocess data. Due to the data transmission mode and the telegram
overhead, a bus cycle timeresults at 1.5 Mbps, which is sufficient tocontrol e. g.conveyors.
If, for technical reasons, the process data must be transmitted faster to the sensors and
actuators, the PROFIBUS can also be operated with a data transmission rate of maximally
12 Mbps.
CANopen
CANopen is a communication protocol specified to the CiA (CAN in Automation) user
group. Lenze can provide communication modules for controls with CANopen masters.
These modules are compatible with the specification DS 301 V4.01.
KHB 13.0002-EN 2.0
7
1
efesotomasyon.com - Lenze
Preface
About this Communication Manual
1.2About this Communication Manual
Target group
This manual is directed at all persons who carry out the dimensioning, installation,
commissioning and settings of the 931 series drive controllers.
Together with the catalogue, it provides the project planning basis for the manufacturer
of plants and machinery.
Contents
The CAN manual supplements the software manual and mounting instructions which are
included in the scope of supply:
ƒ The features and functions are described in detail.
ƒ It provides detailed information on the possible applications.
ƒ Parameter setting is explained with the help of examples.
ƒ In case of doubt, the supplied mounting instructions are always valid.
How to find information
ƒ The table of contents and the index help you to find all information about a certain
topic.
ƒ Descriptions and data on other Lenze products can be found in the corresponding
catalogues, operating instructions and manuals.
ƒ You can request Lenze documents from your responsible Lenze sales partner or
download it as a PDF file from the Internet.
8
KHB 13.0002-EN 2.0
1.3Legal regulations
efesotomasyon.com - Lenze
Preface
Legal regulations
1
Labelling
Application as
directed
Liabilityz The information, data, and notes in these instructions met the state of the art at the time of printing. Claims
Warrantyz Terms of warranty: see Sales and Delivery Conditions of Lenze GmbH & Co KG Kleinantriebe.
Disposal
NameplateCE identificationManufacturer
Lenze drive controllers are definitely
identified by the contents of the
nameplate.
931E servo inverters
z must only be operated under the operating conditions prescribed in these Instructions.
z are components
– for open and closed loop control of variable speed drives with synchronous motors.
– for installation in a machine
– for assembly with other components to form a machine.
z are electric units for the installation into control cabinets or similar closed electrical operating areas.
z comply with the requirements of the Low-Voltage Directive.
z are not machines for the purpose of the Machinery Directive.
z are not to be used as domestic appliances, but only for industrial purposes.
Drive systems with 931E servo inverters
z comply with the EMC Directive if they are installed according to the guidelines of CE-typical drive systems.
z can be used
– for operation on public and non-public mains
– for operation in industrial premises.
z The user is responsible for the compliance of his application with the EC Directives.
Any other use shall be deemed as inappropriate!
on modifications referring to controllers which have already been supplied cannot be derived from the
information, illustrations, and descriptions.
z The specifications, processes, and circuitry described in these Instructions are for guidance only and must be
adapted to your own specific application. Lenze does not take responsibility for the suitability of the process
and circuit proposals.
z Lenze does not accept any liability for damage and operating interference caused by:
– disregarding the Operating Instructions
– unauthorised modifications to the drive controllers
– operating errors
– improper working on and with the drive controllers
z Warranty claims must be made to Lenze immediately after detecting the deficiency or fault.
z The warranty is void in all cases where liability claims cannot be made.
MaterialRecycleDispose
MetalD-
PlasticD-
Assembled PCBs-D
In compliance with the EC
Low-Voltage Directive
Lenze GmbH & Co KG
Kleinantriebe
Postfach 10 13 52
D-31763 Hameln
KHB 13.0002-EN 2.0
9
2
efesotomasyon.com - Lenze
Safety instructions
Persons responsible for safety
2Safety instructions
2.1Persons responsible for safety
Operator
An operator is any natural or legal person who uses the drive system or on behalf of whom
the drive system is used.
Theoperatororhissafetyofficerisobliged
ƒ to ensure the compliance with all relevant regulations, instructions and legislation.
ƒ to ensure that only qualified personnel work on and with the drive system.
ƒ to ensure that the personnel have the Operating Instructions available for all work.
ƒ to ensure that all unqualified personnel are prohibited from working on and with
the drive system.
Qualified personnel
Qualified personnel are persons who -due totheir education,experience, instructions, and
knowledge about relevant standards and regulations, rules for the prevention of
accidents, and operating conditions - are authorised by the person responsible for the
safety of the plant to perform the required actions andwho are able torecognise potential
hazards.
(Definition for skilled personnel to VDE 105 or IEC 364)
10
KHB 13.0002-EN 2.0
2.2General safety instructions
efesotomasyon.com - Lenze
ƒ These safety instructions are not claimed to be complete. In case of questions and
problems, please contact your Lenze representative.
ƒ At the time of delivery, the drive controller meets the state of the art and basically
ensures safe operation.
ƒ The information given in this manual refers to the specified hardware and software
versions of the modules.
ƒ The drive controller is a source of danger if
– unqualified personnel work with and on the drive controller.
– the drive controller is used inappropriately.
ƒ The procedural notes and circuit details given in this manual are suggestions and
their transferability to the respective application has to be checked.
ƒ Ensure by appropriate measures that there is no risk of injury or death to persons or
risk of damage to property in the event of a drive controller failure.
Safety instructions
General safety instructions
2
ƒ Operate the drive system only when it is in a proper state.
ƒ Retrofittings, modifications or redesigns of the drive controller are basically
prohibited. Lenze must be contacted in all cases.
KHB 13.0002-EN 2.0
11
2
efesotomasyon.com - Lenze
2.3Definition of notes used
Safety instructions
Definition of notes used
The following signal words and symbols are used in this documentation to indicate
dangers and important information:
Safety instructions
Structure of safety instructions:
Danger!
(characterises the type and severity of danger)
Note
(describes the danger and gives information about how to prevent dangerous
situations)
Pictograph and signal wordMeaning
Danger!
Danger!
Stop!
Danger of personal injury through dangerous electrical
voltage.
Reference to an imminent danger that may result in death or
serious personal injury if the corresponding measures are not
taken.
Danger of personal injury through a general source of danger.
Reference to an imminent danger that may result in death or
serious personal injury if the corresponding measures are not
taken.
Danger of property damage.
Reference to a possible danger that may result in property
damage if the corresponding measures are not taken.
Application notes
Pictograph and signal wordMeaning
Note!
Tip!
Important note to ensure trouble-free operation
Useful tip for simple handling
Reference to another documentation
12
KHB 13.0002-EN 2.0
3Technical data
efesotomasyon.com - Lenze
3.1Communication data
Communication
Communication profileDS 301, DSP 402
Communication mediumRS232
Network topologyWithout repeater: line / with repeaters: line or tree
CAN nodeSlave
Baud rate (in kbps)10, 20, 50, 100, 125, 250, 500
Max. cable length per bus
segment
Bus connectionRJ45
Technical data
Communication data
1200 m (dependent on baud rate and cable type used)
3
KHB 13.0002-EN 2.0
13
4
efesotomasyon.com - Lenze
Electrical installation
Wiring according to EMC
4Electrical installation
4.1Wiring according t o EMC
General notesz The electromagnetic compatibility of the drive depends on the type of installation and the care taken.
Assemblyz Electrical contacting of the mounting plate:
Shieldingz If possible, only use braided cables.
Earthingz Electrical contacting of the mounting plate:
Especially observe:
– Assembly
– Shielding
–Earthing
z In the case of differing installations, the evaluation of the conformity to the EMC Directive requires the
system to be checked for compliance with the EMC limit values. This applies, for instance, to:
– Use of unshielded cables
z The user is responsible for compliance with the EMC Directive.
– If the following measures are observed, you can assume that no EMC problems will occur during operation
and that the EMC Directive / EMC law is met.
– If devices are operated close to the system which do not meet the CE requirements regarding the noise
immunity according to EN 61000-4-2, these devices may be electromagnetically impaired by the drive.
– Mounting plates with conductive surface (galvanised or stainless steel) enable a permanent contact.
– Painted plates are not suitable for an EMC-compliant installation.
z If you use several mounting plates:
– Contact the mounting plates to each other over a large area (e.g. with copper strips).
z Route signal cables separately from mains cables.
z Route the cables as close as possible to the reference potential. Freely suspended cables act like aerials.
z The overlap rate of the shield should be higher than 80%.
z Always use metal or metallised connectors for the serial data cable coupling. Connect the shield of the data
cable to the connector shell.
z Usemetalcableclampstoattachtheshieldbraid.
z Connect the shield to the shield bus in the control cabinet.
z Connect the shields of analog control cables at one end.
– Mounting plates with conductive surface (galvanised or stainless steel) enable a permanent contact.
– Painted plates are not suitable for an EMC-compliant installation.
z If you use several mounting plates:
– Contact the mounting plates to each other over a large area (e.g. with copper strips).
z Route signal cables separately from mains cables.
z Route the cables as close as possible to the reference potential. Freely suspended cables act like aerials.
14
KHB 13.0002-EN 2.0
4.2Electrical connections of CANopen
efesotomasyon.com - Lenze
Electrical installation
Electrical connections of CANopen
4
A
1
CGCGCGCGHIHIHIHI
120
6
1
2
9
7
8
5
3
4
CAN-GND
CAN-HIGH
CAN-LOW
120
W
PES
PES
A
2
X4.1X4.1X4.2X4.2
LOLOLOLO
PES
Fig. 1Basic wiring of CANopen with Sub-D connector to the master
Node 1 - master (e.g. PLC)
A
1
A
Node 2 - slave (e.g. drive controller 931E)
2
A
Node n - slave, n = max. 128
n
Specification of the transmission cable
Please observe our recommendations for signal cables.
Bus cable specification
Cable resistance135 - 165 Ω/km,(f=3-20MHz)
Capacitance per unit length≤ 30 nF/km
Loop resistance< 110 Ω/km
Wire diameter>0.64mm
Wire cross-section>0.34mm
Wiresdouble twisted, insulated and shielded
2
PES
A
n
W
120
931e_420
KHB 13.0002-EN 2.0
ƒ Connection of the bus terminating resistors:
– One resistor of 120 Ω each at the first and last bus node
ƒ Communication protocol
– CANopen (CAL-based communication profile DS 301/DSP 402)
ƒ Bus extension:
– 25 m for max. data transfer rate of 1 Mbps
– Up to 1 km for reduced data transfer speed
ƒ Signal level according to ISO 11898
ƒ Up to 128 bus nodes possible
ƒ Access to all Lenze parameters
15
4
efesotomasyon.com - Lenze
Electrical installation
Connection of CAN bus slave
4.3Connection of CAN bus slave
Features
ƒ Parameter selection
ƒ Data exchange between drive controllers
ƒ Connection of operator and input devices
ƒ Connection of higher-level controls
ƒ Baud rates of 125, 250, 500 kBaud
Stop!
An external 120 Ω terminating resistor is required to terminate the bus system.
Connection plan for RJ45 socket
X4.1 / X4.2
Fig. 2Connection of CAN bus (X4.1, X4.2)
Pin no. MeaningComment
1CAN-HIGHCAN-HIGH (high is dominant)
2CAN-LOWCAN-LOW (low is dominant)
3CAN-GNDCAN ground
4—Reserved
5—Reserved
6CAN-SHLDCAN shield (hardware version 1.1 and higher)
7CAN-GNDCAN ground
8—Reserved
Tip!
An RJ45 bus terminating connector is available for the 931E drive controllers.
Please contact Lenze.
931E-001.iso
16
KHB 13.0002-EN 2.0
4.4Connection of CAN bus master
efesotomasyon.com - Lenze
The below table shows the assignment of a 9-pin Sub-D socket such as provided by most
CAN masters for the connection of field devices.
Connection of the CAN bus to a 9-pin Sub-D socket
ViewPinSignalExplanation
1
2
3
4
5
Tab. 1CAN Sub-D socket
1—Reserved
6
2CAN-LOWCAN-LOW (low is dominant)
7
3CAN-GNDCAN ground
8
4—Reserved
9
5(CAN-SHLD)Optional CAN shield
6(GND)Optional ground
7CAN-HIGHCAN-HIGH (high is dominant)
8—Reserved
9(CAN-V+)Optional external CAN voltage supply
Electrical installation
Connection of CAN bus master
4
KHB 13.0002-EN 2.0
17
5
efesotomasyon.com - Lenze
CANopen communication
About CANopen
Structure of the CAN data telegram
5CANopen communication
5.1About CANopen
The CANopen protocol isa standardisedlayer 7protocol forthe CAN bus. This layeris based
on the CAN application layer (CAL), which has been developed as a universal protocol.
In practice, however, it became clear that applications with CAL were too complex for the
user. CANopen is a uniform, easy-to-use structure which has been developed to provide a
connection for CAN devices from different manufacturers.
z Network management
z Process data
z Parameter data
Note!
To the user, only the identifier, the data length and the user data are relevant.
All other data of the CAN telegram is automatically processed by the system.
18
KHB 13.0002-EN 2.0
5.1.2Identifier
efesotomasyon.com - Lenze
The principle of the CAN communication is based on a message-oriented data exchange
between one sender and many receivers. All nodes can send and receive
quasi-simultaneously.
The identifier in the CAN telegram - also called COB ID (communication object identifier)is used to control which node is to receive a sent message. In addition to the addressing,
the identifier contains information on the priority of the message and on the type of the
user data.
With the exception of the network management and the sync telegram, the identifier
contains the node address of the drive:
The identifier assignment is specified in the CANopen protocol.
The ex works default setting of the basic identifier is:
CANopen communication
About CANopen
Identifier
5
Object
NMT0
Sync80
EmergencyX80
PDO1
(process data channel 1)
PDO2
(process data channel 2)
SDO1
(parameter data channel 1)
Heartbeat/boot-upX700
5.1.3Node address ( node ID)
Each node of the CAN network must be assigned with a node address (also called node ID)
within the valid address range for unambiguous identification.
ƒ A node address may not be assigned more than once within a network.
TPDO1
RPDO1
TPDO2
RPDO2
DirectionBasic identifier
From the driveTo the driveHex
X180
X200
X280
X300
X580
X600
KHB 13.0002-EN 2.0
19
5
efesotomasyon.com - Lenze
5.1.4User data
CANopen communication
About CANopen
User data
The master and the drive controller communicate with each other by exchanging data
telegrams via the CAN bus.
The user data range of the C AN telegram contains network management data, parameter
data or process data:
ƒ Network management data (NMT data)
Network service: E.g. all CAN nodes can be addressed at the same time.
ƒ Process data (PDO, process data objects)
– Process data is transferred via the process data channel.
– Process data can be used to control the drive controller.
– The master can directly access the process data. The data is, for instance, directly
assigned to the I/O area of the master. It is necessary that the control and the drive
controller can exchange data within a very short time interval. For this purpose,
small amounts of data can be transferred cyclically.
– Process data is not stored in the drive controller.
– Process data is transferred between the master and the drive controllers to ensure
a continuous exchange of current input and output data.
– Examples for process data are, for instance, setpoints and actual values.
ƒ Parameter data (SDO, service data objects)
– Parameters are set, for instance, for the initial system set-up during
commissioning or when the material is changed on a production machine.
– Parameter data is transferred by means of so-called SDOs via the parameter data
channel. The transfer is acknowledged by the receiver, i.e. the sender gets a
feedback about the transfer being successful or not.
– The parameter data channel enables the access to all CANopen indexes.
– Parameter changes are automatically stored in the drive controller.
– In general, the transfer of parameters is not time-critical.
– Examples for parameter data are, for instance, operating parameters, diagnostic
information and motor data.
20
KHB 13.0002-EN 2.0
Parameter data transfer (SDO transfer)
efesotomasyon.com - Lenze
5.2Parameter data transfer (SDO transfer)
5.2.1Telegram structure
The telegram for parameter data has the following structure:
The object to be addressed is contained in bytes 2 and 3 of the telegram.
ƒ The value for the index is split up into low byte and high byte and entered in the
left-justified Intel format.
Subindex
11 bits4bitsUser data (up to 8 bytes)
Identifier
ƒ If an object (e.g. controller parameter) consists of several sub-objects, the
Data
length
sub-objects are addressed via subindexes. The number of the corresponding
subindex is entered in byte 4 of the telegram. (See following tables for sub-objects).
in the command code byte indicates that an error has occurred.
h
Command
code
Index
low byte
Index
high byte
Subindex
F0F1F2F3
Error code
These bytes contain the index (bytes 2 and 3) and the subindex (byte 4) at which an
error occurred.
ƒ Bytes 5 to 8:
The data bytes 5 to 8 contain the error code. The error code is represented opposite
to the direction of reading.
Example:
The representation of the error code 06 04 00 41
in bytes 5 to 8
h
Reading direction of the error code
41000406
5th byte6th byte7th byte8th byte
Low wordHigh word
Low byteHigh byteLow byteHigh byte
The below table lists the meanings of the error codes:
Error codeExplanation
F3 F2 F1 F0
06 01 00 00 Access to object is not supported
06 01 00 01 Attempt to read a write-only object
06 01 00 02 Attempt to write to a read-only object
06 02 00 00 Object does not exist in the object directory
06 04 00 41 Object cannot be mapped to the PDO
06 04 00 42 The number and length of objects to be mapped would exceed PDO length.
06 07 00 10 Data type does not match, length of service parameter does not match
06 07 00 12 Data type does not match, length of service parameter is too large
06 07 00 13 Data type does not match, length of service parameter is too small
06 09 00 11 Subindex does not exist
06 09 00 30 Value range of parameter exceeded
06 09 00 31 Parameter values too large
06 09 00 32 Parameter values too small
08 00 00 20 Data cannot be transferred/saved to the application.
08 00 00 21 Data cannot be transferred/saved to the application due to local control.
08 00 00 22 Data cannot be transferred/saved to the application due to current device state.
24
KHB 13.0002-EN 2.0
5.2.2Reading parameters (example)
efesotomasyon.com - Lenze
Problem
The numerator setting (object 6093_01) of the drive controller with node address 1 is to
be read via the parameter channel.
Telegram to the drive controller
ValueInfo
Identifier= Basic identifier + node address
=600+1=601
Data length= 08
Command code = 40
Index= 6093
h
h
Subindex= 1z Subindex = 1 (numerator)
Data 1
Data 2
Data 3
Data 4
Data 1 ... 4
=00
h
=00
h
=00
h
=00
h
= 00 00 00 00
h
h
CANopen communication
Parameter data transfer (SDO transfer)
Reading parameters (example)
z Basic identifier for parameter channel = 600
z Node address = 1
z “Read request” command (request to read a
parameter)
z Index of the position_factor
z Read request only
5
h
11 bits4bitsUser data
Identifier
601
h
Data
length
08
h
Command
code
40
h
Index
low byte
93
h
Index
high byte
60
h
Subindex
01
h
Data 1Data 2Data 3Data 4
00
h
Telegram from the drive controller
ValueInfo
Identifier= Basic identifier + node address
=580+1=581
h
Data length= 08
Command code = 43
Index= 6093
h
h
Subindex= 1z Subindex = 1 (numerator)
Data 1
Data 2
Data 3
Data 4
Data 1 ... 4
=C0
h
=4B
h
=03
h
=00
h
= C0 4B 03 00
h
11 bits4bitsUser data
Identifier
581
h
Data
length
08
h
Command
code
43
h
Index
low byte
93
h
z Basic identifier for parameter channel = 580
z Node address = 1
z “Read response” command (response to the read
request with the actual value)
z Index of the position_factor
z Assumption: The set numerator value is 00 03 4B C0
(216000d).
Index
high byte
60
h
Subindex
01
Data 1Data 2Data 3Data 4
h
C0
h
00
4B
h
h
00
03
h
h
00
h
h
h
00
h
KHB 13.0002-EN 2.0
25
5
efesotomasyon.com - Lenze
CANopen communication
Parameter data transfer (SDO transfer)
Writing parameters (example)
5.2.3Writing parameters (example)
Problem
The numerator (object 6093_01) of the drive controller with node address 1 is to be set to
216000 via the SDO (parameter data channel).
Telegram to the drive controller
ValueInfo
Identifier= Basic identifier + node address
=600+1=601
Data length= 08
Command code = 23
Index= 6093
h
h
Subindex= 1z Subindex = 1 (numerator)
Data 1
Data 2
Data 3
Data 4
Data 1 ... 4
=C0
h
=4B
h
=03
h
=00
h
= C0 4B 03 00
h
h
z Basic identifier for parameter channel = 600
z Node address = 1
z “Write request” command (send parameter to the
h
drive)
z Index of the position_factor
z Assumption: The numerator value to be set is to be
00 03 4B C0
(216000d).
h
11 bits4bitsUser data
Identifier
601
h
Data
length
08
h
Command
code
23
h
Index
low byte
93
h
Index
high byte
60
h
Subindex
01
h
Data 1Data 2Data 3Data 4
C0
h
4B
h
03
h
Telegram from the drive controller (acknowledgement for faultless execution)
ValueInfo
Identifier= Basic identifier + node address
=580+1=581
h
Data length= 08
Command code = 60
Index= 6093
h
h
Subindex= 1z Subindex = 1 (numerator)
Data 1 ... 4= 00 00 00 00
h
11 bits4bitsUser data
Identifier
581
h
Data
length
08
h
Command
code
60
h
Index
low byte
93
h
z Basic identifier for parameter channel = 580
z Node address = 1
z “Write response” command (acknowledgement from
the drive controller)
z Index of the position_factor
z Acknowledgement only
Index
high byte
60
h
Subindex
01
Data 1Data 2Data 3Data 4
h
00
h
00
h
00
h
00
h
h
00
h
26
KHB 13.0002-EN 2.0
5.3Process data transfer (PDO transfer)
efesotomasyon.com - Lenze
Process data objects (PDOs)can beused, forinstance, forthe fastevent-controlled transfer
of data. The PDO transfers one or several parameters specified in advance. Unlike with an
SDO, the transfer of a PDO is not acknowledged. After the PDO activation, all receivers
must therefore always be able to process any arriving PDOs. This usually means a
considerable software load on the master. However, this disadvantage is compensated by
the advantage that the master does not need to cyclically poll the parameters transferred
by a PDO, which results in a significant reduction of the CAN bus load.
Example:
The master wants to know when the drive controller has completed the positioning from
AtoB.
When SDOs areused for this purpose, the master continuously (e.g. every millisecond) has
to poll the status word object, i.e. the load on the bus is high.
When a PDO is used, right from the start of the application the drive controller is
parameterised in such a way that it transmits a PDO containing the status word object as
soon as the status word object changes.
CANopen communication
Process data transfer (PDO transfer)
Telegram structure
5
Instead of polling continuously, the master automatically receives a corresponding
message as soon as the event has occurred.
The following types of process data telegram are distinguished
ƒ Process data telegrams to the drive controller: Receive PDO (RPDOx)
ƒ Process data telegrams from the drive controller: Transmit PDO (TPDOx)
5.3.1Telegram structure
The telegram for process data has the following structure:
The drive controller is provided with two transmit and two receive PDOs.
Almost all objects of the object directory can be entered in (mapped to) the PDOs, i.e. the
PDO containsfor instance theactual speed value or actual positionvalue as data.The drive
controller must know in advance which data is to be transferred because the PDO only
contains user data and no information about the type of the parameter.
In this way almost all kinds of data telegrams can be defined. The settings required are
described in the following chapters.
KHB 13.0002-EN 2.0
27
5
efesotomasyon.com - Lenze
CANopen communication
Process data transfer (PDO transfer)
Objects for PDO parameterisation
5.3.3Objects for PDO parameterisation
Two transmit PDOs (TPDO) and two receive PDOs (RPDO) are available in the drive
controller. The different objects of the PDOs are identical.
1. Transmit PDO
IndexNamePossible settings
LenzeSelectionDescription
1800
Transmit PDO1
h
Communication
Parameter
0 number_of_entries
1 COB-ID_used_by_
PDO
2 transmission_type 255
3 inhibit_time0
00000181
h
Characteristics
00
h
03
h
00000181
Bit no.Value
0-10x11-bit identifier
11 - 280
290
30
31
0{1}240, 254, 255 —
0Function is switched off
n = 1 ... 240By entering a value n, this
n = 254, 255Event-controlled
0{0.1 ms}65535 —
h
0RTR of this PDO is permitted
1RTR of this PDO is not
0PDO is active
1PDO is inactive
{1h}04
{1h}000001FF
RECUINT8RO—
h
Maximum number of
supported subindexes.
3 subindexes are supported.
—UINT32 RW—
h
Identifier of transmit PDO1,
+ node address).
(180
h
For processing, bits 30 and
31 must be set
(parameterisation of
mapping).
The extended identifier
(bit 29) is not supported.
Each bit of this range must
be ”0”.
(Lenze).
permitted (unadjustable).
UINT8RW—
Setting of the transmission
mode
PDO is accepted with every
n-th sync.
transmission mode
UINT16 RW—
Setting of the minimum
delay time between two
PDOs. The time can only be
changed if the PDO is not
active (subindex 1, bit 31 = 1)
28
KHB 13.0002-EN 2.0
CANopen communication
efesotomasyon.com - Lenze
Process data transfer (PDO transfer)
Objects for PDO parameterisation
5
IndexNamePossible settings
LenzeSelectionDescription
1A00
Transmit PDO1
h
Mapping Parameter
0 number_of_
mapped_objects
1 first_mapped_
object
2 second_mapped_
object
...
4 fourth_mapped_
object
60410010
h
00
01
Characteristics
h
h
{1h}04
{1h}
RECUINT32 RW—
h
Maximum number of
supported subindexes.
1 subindex is supported.
—UINT32 RW—
EntryoftheCOBIDofthe
first mapped object.
—UINT32 RW—
Not supported.
—UINT32 RW—
Not supported.
KHB 13.0002-EN 2.0
29
5
efesotomasyon.com - Lenze
CANopen communication
Process data transfer (PDO transfer)
Objects for PDO parameterisation
2. Transmit PDO
IndexNamePossible settings
LenzeSelectionDescription
1801
Transmit PDO2
h
Communication
Parameter
0 number_of_entries
1 COB-ID_used_by_
PDO
2 transmission_type 255
3 inhibit_time0
00000281
h
Characteristics
00
h
03
h
00000281
Bit no.Value
0-10x11-bit identifier
11 - 280
290
30
31
0{1}240, 254, 255 —
0Function is switched off
n = 1 ... 240By entering a value n, this
n = 254, 255Event-controlled
0{0.1 ms}65535 —
h
0RTR of this PDO is permitted
1RTR of this PDO is not
0PDO is active
1PDO is inactive
{1h}04
{1h}000002FF
RECUINT8RO—
h
Maximum number of
supported subindexes
3 subindexes are supported.
—UINT32 RW—
h
Identifier of transmit PDO2,
+ node address).
(280
h
For processing, bits 30 and
31 must be set
(parameterisation of
mapping).
The extended identifier
(bit 29) is not supported.
Each bit of this range must
be ”0”.
(Lenze)
permitted (unadjustable)
UINT8RW—
Setting of the transmission
mode
PDO is accepted with every
n-th sync.
transmission mode
UINT16 RW—
Setting of the minimum
delay time between two
PDOs. The time can only be
changed if the PDO is not
active (subindex 1, bit 31 = 1)
30
KHB 13.0002-EN 2.0
CANopen communication
efesotomasyon.com - Lenze
Process data transfer (PDO transfer)
Objects for PDO parameterisation
5
IndexNamePossible settings
LenzeSelectionDescription
1A01
Transmit PDO2
h
Mapping Parameter
0 number_of_
mapped_objects
1 first_mapped_
object
2 second_mapped_
object
3 third_mapped_
object
4 fourth_mapped_
object
60410010
60610008
h
h
00
02
Characteristics
h
h
{1h}04
{1h}
{1h}
RECUINT32 RW—
h
Maximum number of
supported subindexes.
2 subindexes are supported.
—UINT32 RW—
EntryoftheCOBIDofthe
first mapped object.
—UINT32 RW—
EntryoftheCOBIDofthe
second mapped object.
—UINT32 RW—
Not supported.
—UINT32 RW—
Not supported.
KHB 13.0002-EN 2.0
31
5
efesotomasyon.com - Lenze
CANopen communication
Process data transfer (PDO transfer)
Objects for PDO parameterisation
1. Receive PDO
IndexNamePossible settings
LenzeSelectionDescription
1400
Receive PDO1
h
Communication
Parameter
0 number_of_entries
1 COB-ID_used_by_
PDO
2 transmission_type 255
00000201
h
Characteristics
00
h
02
h
00000201
Bit no.Value
0-10x11-bit identifier
11 - 280
290
30
31
0{1}240, 254, 255 —
0Function is switched off
n = 1 ... 240By entering a value n, this
n = 254, 255Event-controlled
h
0RTR of this PDO is permitted
1RTR of this PDO is not
0PDO is active
1PDO is inactive
{1h}04
{1h}000002FF
RECUINT8RO—
h
Maximum number of
supported subindexes
2 subindexes are supported.
—UINT32 RW—
h
Identifier of receive PDO1
+ node address)
(200
h
For processing, bits 30 and
31 must be set
(parameterisation of
mapping).
The extended identifier
(bit 29) is not supported.
Each bit of this range must
be ”0”.
(Lenze)
RTR = remote transmission
request
permitted (unadjustable)
UINT8RW—
Setting of the transmission
mode
PDO is accepted with every
n-th sync.
transmission mode, PDO is
accepted immediately
32
KHB 13.0002-EN 2.0
CANopen communication
efesotomasyon.com - Lenze
Process data transfer (PDO transfer)
Objects for PDO parameterisation
5
IndexNamePossible settings
LenzeSelectionDescription
1600
Receive PDO1
h
Mapping Parameter
0 number_of_
mapped_objects
1 first_mapped_
object
2 second_mapped_
object
...
4 fourth_mapped_
object
60400010
h
00
01
Characteristics
h
h
{1h}04
{1h}
RECUINT32 RW—
h
Maximum number of
supported subindexes.
1 subindex is supported.
—UINT32 RW—
EntryoftheCOBIDofthe
first mapped object.
—UINT32 RW—
Not supported.
—UINT32 RW—
Not supported.
KHB 13.0002-EN 2.0
33
5
efesotomasyon.com - Lenze
CANopen communication
Process data transfer (PDO transfer)
Objects for PDO parameterisation
2. Receive PDO
IndexNamePossible settings
LenzeSelectionDescription
1401
Receive PDO2
h
Communication
Parameter
0 number_of_entries
1 COB-ID_used_by_
PDO
2 transmission_type 255
00000301
h
Characteristics
00
h
02
h
00000301
Bit no.Value
0-10x11-bit identifier
11 - 280
290
30
31
0{1}240, 254, 255 —
0Function is switched off
n = 1 ... 240By entering a value n, this
n = 254, 255Event-controlled
h
0RTR of this PDO is permitted
1RTR of this PDO is not
0PDO is active
1PDO is inactive
{1h}04
{1h}000003FF
RECUINT8RO—
h
Maximum number of
supported subindexes
2 subindexes are supported.
—UINT32 RW—
h
Identifier of receive PDO2
+ node address)
(300
h
For processing, bits 30 and
31 must be set
(parameterisation of
mapping).
The extended identifier
(bit 29) is not supported.
Each bit of this range must
be ”0”.
(Lenze)
RTR = remote transmission
request
permitted (unadjustable)
UINT8RW—
Setting of the transmission
mode
PDO is accepted with every
n-th sync.
transmission mode, PDO is
accepted immediately
34
KHB 13.0002-EN 2.0
CANopen communication
efesotomasyon.com - Lenze
Process data transfer (PDO transfer)
Objects for PDO parameterisation
5
IndexNamePossible settings
LenzeSelectionDescription
1601
Receive PDO2
h
Mapping Parameter
0 number_of_
mapped_objects
1 first_mapped_
object
2 second_mapped_
object
3 third_mapped_
object
4 fourth_mapped_
object
60400010
60600008
h
h
00
02
Characteristics
h
h
{1h}04
{1h}
{1h}
RECUINT32 RW—
h
Maximum number of
supported subindexes.
2 subindexes are supported.
—UINT32 RW—
EntryoftheCOBIDofthe
first mapped object.
—UINT32 RW—
EntryoftheCOBIDofthe
second mapped object.
—UINT32 RW—
Not supported.
—UINT32 RW—
Not supported.
KHB 13.0002-EN 2.0
35
5
efesotomasyon.com - Lenze
CANopen communication
Process data transfer (PDO transfer)
Objects for PDO parameterisation
1. Transmit masking
IndexNamePossible settings
LenzeSelectionDescription
2014
h
Transmit PDO1
Mask
0 number_of_entries
1 tpdo1_transmit_
mask_low
2 tpdo1_transmit_
mask_high
FFFFFFFF
FFFFFFFF
h
h
2. Transmit masking
IndexNamePossible settings
LenzeSelectionDescription
2015
Transmit PDO2
h
Mask
0 number_of_entries
1 tpdo2_transmit_
mask_low
2 tpdo2_transmit_
mask_high
FFFFFFFF
FFFFFFFF
h
h
00000000
00000000
00000000
00000000
Characteristics
ARRUINT8RO—
Maximum number of
supported subindexes
h
{1h}FFFFFFFF
—UINT32 RW—
h
Mask for masking out
individual bits of the PDOs.
h
{1h}FFFFFFFF
—UINT32 RW—
h
Mask for masking out
individual bits of the PDOs.
Characteristics
ARRUINT8RO—
Maximum number of
supported subindexes
h
{1h}FFFFFFFF
—UINT32 RW—
h
Mask for masking out
individual bits of the PDOs.
h
{1h}FFFFFFFF
—UINT32 RW—
h
Mask for masking out
individual bits of the PDOs.
36
KHB 13.0002-EN 2.0
5.3.4Description of the objects
efesotomasyon.com - Lenze
Identifier of the PDO (COB_ID_used_by_PDO)
The identifier on which the respective PDO is to be sent or received must be entered in the
COB_ID-used_by_PDO object. If bit 31 is set, the respective PDO is deactivated. This is the
defaultsetting forall PDOs.In addition, bit30 (noRTR allowed)must be set for everyaccess.
The COB ID can only be changed if the PDO is deactivated, i.e. if bit 31 is set. For changing
the COB ID, you therefore have to keep to the following sequence:
ƒ Read out the COB ID
CANopen communication
Process data transfer (PDO transfer)
Description of the objects
5
ƒ Write the read-out COB ID + C0000000
ƒ Write the new COB ID + C0000000
ƒ Write the new COB ID, the PDO is active again.
h
h
Transmission mode (transmission_type and inhibit_time)
For each PDO, the event leading to a message being sent (transmit PDO) or evaluated
(receive PDO) can be defined:
ValueMeaningPermitted for
00h-F0
FE
h
FF
h
Sync telegram
h
The numerical value specifies how many sync telegrams are ignored between two
transmissions before the PDO is
- sent (TPDO) or
-evaluated(RPDO).
Cyclic
The TPDO is cyclically updated and sent by the drive controller. The time interval is
specified with the inhibit_time object.
RPDOs, however, are evaluated immediately after the receipt.
Change
TheTPDOissentifatleastonebitofthePDOdatahaschanged.
The inhibit_time can be used to additionally specify the minimum time interval (in
100 μs steps) between the transmission of two PDOs.
TPDO
RPDO
TPDO
(RPDO)
TPDO
KHB 13.0002-EN 2.0
The use of all other values is not permitted.
Number of objects to be transferred (number_of_mapped_objects)
This object specifies how many objects are to be mapped into the corresponding PDO. The
following restrictions have to be taken into account:
ƒ It is not possible to map more than 4 objects per PDO
ƒ A PDO can have a maximum of 64 bits (8 bytes).
37
5
efesotomasyon.com - Lenze
CANopen communication
Process data transfer (PDO transfer)
Description of the objects
Objects to be transferred (first_mapped_object ... fourth_mapped_object)
For every object to be contained in the PDO, the drive controller must know the
corresponding i ndex, subindex and length. The specified length must be identical to the
length specified in the object dictionary. It is not possible to map parts of an object.
The mapping information has the following format:
IndexSubindexLength
16 bits8bits8bits
ƒ Index: Main index of the object to be mapped (hex)
ƒ Subindex: Subindex of the object to be mapped (hex)
ƒ Length: Length of the object (hex)
The following mandatory procedure serves to simplify the mapping:
1. The number of the mapped objects is set to 0.
2. The first_mapped_object ... fourth_mapped_object parameters can be written (the
total length of all objects is not relevant at this time).
3. The number of the mapped objects is set to a value between 1 ... 4. The total length
of these objects must not exceed 64 bits.
Masking (transmit_mask_high
If ”change” is selected for the transmission_type, the TPDO is always sent if at least 1 bit
of the TPDO has changed.
However, very often it is necessary to send the TPDO only if a certain bit has changed. For
this purpose, the TPDO can be provided with a mask. Only those bits of the TPDO are
evaluated which are set to ”1” in the mask.
In the default setting all bits of the masks are set.
and transmit_mask_low)
38
KHB 13.0002-EN 2.0
5.3.5Example of a process data telegram
efesotomasyon.com - Lenze
The following objects are to be transferred together in a PDO:
CANopen communication
Process data transfer (PDO transfer)
Example of a process data telegram
5
ƒ Status word, index 6041_00
ƒ Modes_of_operation_display, index 6061_00
ƒ Digital_inputs, index 60FD_00
(controller control),
h
(digital inputs)
h
(operating mode)
h
The first transmitPDO (TPDO 1) is to be used, and it is alwaysto be sent if one of the digital
inputs changes, but not more often than every 10 ms. The identifier used for this PDO is to
be 187
.
h
1. Delete the number of objects.
DescriptionNameValue
To enable the change of the object mapping, the number of
objects has to be set to zero.
number_of_mapped_objects0
2. Parameterise the objects which are to be mapped.
DescriptionNameValue
The objects listed above have to be composed to form a 32-bit
value:
Index = 6041h, subindex = 00h,length=10h(UINT16)first_mapped_object60410010
Index = 6061h, subindex = 00h,length=08h(INT8)second_mapped_object60610008
Index = 60FDh, subindex = 00h,length=20h(UINT32)third_mapped_object60FD0020
h
h
h
3. Parameterise the number of objects.
DescriptionNameValue
The PDO has to contain 3 objectsnumber_of_mapped_objects3
h
4. Parameterise the transmission mode.
DescriptionNameValue
The PDO has to be sent if one or several of the above digital
inputs change.
In order to ensure that only changes of the digital inputs cause
the transmission of the PDO, it is masked in such a way that
only the above 16 bits of the object 60FD
The PDO is to be sent not more often than every 10 ms
(100 × 100 μs).
”come through”.
h
transmission_typeFF
transmit_mask_high00FFFF00
transmit_mask_low00000000
inhibit_time64
h
h
5. Parameterise the identifier.
DescriptionNameValue
The PDO is to be sent with the identifier 187h.IfthePDOis
active, it first has to be deactivated.
Read out the identifier:cob_id_used_by_pdo00000181
Set bit 31 (deactivate PDO):cob_id_used_by_pdoC0000181
Write new identifier:cob_id_used_by_pdoC0000187
Activate PDO by deleting bit 31:cob_id_used_by_pdo40000187
Note!
The parameterisation of the PDO can only be changed if the network state
(NMT) is not operational.
h
h
h
h
h
h
KHB 13.0002-EN 2.0
39
5
efesotomasyon.com - Lenze
5.3.6Activation of the PDOs
CANopen communication
Process data transfer (PDO transfer)
Activation of the PDOs
The following criteria must be met to enable the drive controller to send or receive PDOs:
ƒ The number_of_mapped_objects object must be non-zero.
ƒ Bit 31 of the cob_id_used_for_pdos object must be deleted.
ƒ The communication state of the controller must be operational (see chapter 5.5,
network management).
The following criterion must be met to enable the parameterisation of PDOs:
The sync telegram is an additional and special telegram which enables the drive controller
to cyclically read / accept process data.
5.4.1Telegram structure
11 bits4bits
Identifier
Data
length
The identifier on which the drive controller receives the sync telegram is permanently set
to 080
. The data length is 0.
h
5.4.2Synchronisation of the process data
The sync telegram is the trigger point for data acceptance in the drive controller and it
starts the sending process of the drive controller. Cyclic process data processing requires
an appropriate generation of the sync telegram.
CANopen communication
Sync telegram
Telegram structure
5
PDO1-TXPDO1-RX
1.
Fig. 4Synchronisation of cyclic process data by means of a sync telegram (without consideration of
asynchronous data)
c
Sync telegram
2.3.4.
epm-t111
Transmission sequence
1. After the sync telegram has been received, the cyclic process data are send from the
drive controllers to the master. The data is read by the master as process input data.
2. When the sending process is completed, the process output data (of the master) is
received by the drive controllers.
3. The data is accepted by the drive controllers with the next sync telegram.
4. All other telegrams (e.g. for parameters or event-controlled process data) are
accepted asynchronously by the drive controllers after the transmission has been
completed.
KHB 13.0002-EN 2.0
41
5
efesotomasyon.com - Lenze
CANopen communication
Sync telegram
Description of the objects
5.4.3Description of the objects
IndexNamePossible settings
LenzeSelectionDescription
1005h0COB-ID_sync_
message
00000080
h
Characteristics
00000080
Bit no.Value
0-10x11-bit identifier.
11 - 280
290
30
31xAny
h
0Device does not generate
1Device generates sync
{1h}00000080
VARUINT32 RW—
h
Synchronisation object
identifier 80
The extended identifier
(bit 29) is not supported.
Each bit of this range must
be ”0”.
sync telegrams.
telegrams.
h.
42
KHB 13.0002-EN 2.0
CANopen communication
efesotomasyon.com - Lenze
Network management (NMT)
Communication phases of the CAN network (NMT)
5.5Network management (NMT)
Via the network management, the master can carry out state changes for the entire CAN
network. For this purpose, the identifier with the highest priority (000
5.5.1Communication phases of the CAN network (NMT)
Regarding communication, the drive distinguishes between the following states:
StateExplanation
”Initialisation”Initialisation starts when the controller is switched on. In this phase, the
”Pre-operational”
(before being ready for
operation)
”Operational”
(ready for operation)
”Stopped”Only network management telegrams can be received.
controller does not take part in the bus data transfer.
It is also possible in every NMT state to restart the entire initialisation or parts
of it by transferring special telegrams (see ”State transitions”). In this case, all
parameters already set are overwritten with their standard values.
After initialisation has been completed, the controller is automatically set to the
state ”pre-operational”.
The controller can receive parameter data.
Process data is ignored.
The controller can receive parameter data and process data.
) is reserved.
h
5
KHB 13.0002-EN 2.0
43
5
efesotomasyon.com - Lenze
5.5.2Telegram structure
CANopen communication
Network management (NMT)
Telegram structure
11 bits4bitsUser data (2 bytes)
Identifier
Via theNMT, commands can be sent to oneor all drive controllers. Each command consists
of two bytes. The first byte contains the command code (command specifier, CS) and the
second byte contains the node address (node ID, NI) of the addressed drive controller. Via
the node address zero, all nodesof the network can beaddressed simultaneously.It is thus,
for instance, possible to reset all drive controllers simultaneously. The drive controllers do
not acknowledge the NMT commands. The successful execution can only be inferred
indirectly e.g. from the switch-on message after a reset.
The NMT states ofthe CANopen nodes are definedin a state diagram. Viathe CS byte in the
NMT message state changes can be initiated. These changes are mainly orientated
towards the target state.
In theNI parameter, thenode address ofthe drive controllerhas to be specified. If all nodes
of the network are to be addressed (broadcast), the parameter must be set to zero.
Note!
Communication via process data is only possible with a state change to
“operational”!
Example:
For changing the state of all nodes on the bus from ”pre-operational” to
“operational” via the CAN master, the following identifier and user data must
be set in the telegram:
ƒ Identifier: 00 (broadcast telegram)
ƒ User data: 0100 (hex)
44
KHB 13.0002-EN 2.0
State transitions
efesotomasyon.com - Lenze
(1)
Initialisation
(2)
(14)
Pre-Operational
(7)
(4)
(13)
(3)
(12)
Operational
Fig. 5Network management state t ransitions
(5)
(6)
Stopped
(8)
CANopen communication
Network management (NMT)
Telegram structure
(11)
(10)
(9)
5
E82ZAFU004
State
transition
(1)-Initialisation
(2)-Pre-operational
From this moment on, the master changes the states for the entire network. A target address, which is part of the command, specifies the
receiver/s.
(3), (6)01 xxOperational
(4), (7)80 xxPre-operational
(5), (8)02 xxStoppedOnly network management telegrams can be received.
(9)
(10)
(11)
(12)
(13)
(14)
Command
xx = 00
(hex)
82 xx
81 xx
hex
Network state after
change
Initialisation
Effect on process and parameter data after state change
At power-on the initialisation is started automatically.
During the initialisation, the drive controller does not take part in the data
transfer.
After the initialisation is completed, a boot-up message with an own
identifier is sent from the drive controller to the master and the drive
controller automatically changes to the pre-operational state.
In this phase, the master decides how the drive controller/s is/are to
participate in the communication.
Network management telegrams, sync, emergency, process data (PDO)
and parameter data (SDO) are active (corresponds to “start remote node”)
Optional:
Event-controlled and time-controlled process data (PDO) are sent once in
thecaseofachange.
Network management telegrams, sync, emergency and parameter data
(SDO) are active (corresponds to “enter pre-operational state“)
Initialisation of all parameters in the communication module with the
stored values (corresponds to “reset node”)
Initialisation of communication-relevant parameters (CIA DS 301) in the
communication module with the stored values (corresponds to “reset
communication”)
With this assignment, all devices connected are addressed by the telegram. The
state can be changed for all devices at the same time.
xx = node IDIf a node address is specified, only the state of the addressed device will be
changed.
KHB 13.0002-EN 2.0
45
5
efesotomasyon.com - Lenze
CANopen communication
Emergency telegram
Telegram structure
5.6Emergency telegram
The drive controller monitors the functioning of its main components (including voltage
supply, power stage, angle encoder evaluation, technology slots). In addition, the motor
(temperature, angle encoder) and the limit switches are c hecked continuously. Incorrect
parameter settings can also cause error messages (division by zero, etc.).
If an error occurs, the error number is indicated on the display of the drive controller. If
several errors occur at the same time, the message with the highest priority (the lowest
number) is displayed.
The drive controller sends an emergency telegram if an error occurs. The identifier of this
message is composed of the identifier 80
and the node address of the drive controller
h
concerned.
The emergency telegram consists of eight bytes. The first and second byte contain the
error_code. In the third byte there is an additional error code (object 1001
Reading-out of the number
of stored error messages.
When an error has occurred,
the error h as to be
acknowledged to activate
thepowerstage(bit7,
control word index 6040
—UINT32 RO—
Reading-out of last error
message
—UINT32 RO—
Reading-out of error
message
VARUINT32 RW—
h
Emergency object identifier,
+ node address
080
h
The extended identifier
(bit 29) is not supported.
Each bit of this range must
be ”0”.
).
h
48
KHB 13.0002-EN 2.0
5.7Heartbeat telegram
efesotomasyon.com - Lenze
The heartbeat telegramin implementedto monitor the communication between the drive
controller and the master. For this purpose, the controller cyclically sends messages to the
master. The master can check the cyclic transmission of these messages and initiate
corresponding measures if they are missing. The heartbeat telegram is sent with the
identifier 700
stateofthedrivecontroller.Thedatalengthis1.
In addition to the monitoring by the master, the bus system canbe monitored by the drive
controller. For this purpose, the drive controller monitors the acknowledgement of the
heartbeat telegram. The absence of acknowledgements indicates that there is no other
active drive c ontroller on the bus system or that the bus system is damaged by a cable
break.
The following response, which can be a warning, a quick stop or the immediate
disconnection of the power stage, can be defined in the error management.
(1792d) + node address. It only contains 1 byte of user data and the NMT
h
CANopen communication
Heartbeat telegram
Telegram structure
5
5.7.1Telegram structure
11 bits4bitsUser data (1 byte)
Identifier
Data
length
Note!
If the acknowledgement of the heartbeat telegram is missing in the heartbeat
procedure, this can – depending on the error management settings – cause an
error. This error can only be acknowledged via DIN9 or the parameter setting
program (SDC) or a restart of the drive controller (for more detailed
information please refer to the software manual).
The drive controller transmits a state telegram on the fieldbus and can thus be monitored
by other bus devices.
The settings are made under index 1017
ƒ The producer heartbeat is automatically started if a time > 0 is entered under index
1017
ƒ When the cycle time has expired, the drive controller transmits the state telegram
and the drive controller changes to the operational state.
h
.
h
on the fieldbus.
ƒ A reset changes the state to operational.
Device state (bits 1 ... 6) of the heartbeat producer:
Command (hex)State
00Boot-up
05Operational
04Stopped
7FPre-operational
50
KHB 13.0002-EN 2.0
5.7.2Description of the objects
efesotomasyon.com - Lenze
CANopen communication
Heartbeat telegram
Description of the objects
5
IndexNamePossible settings
LenzeSelectionDescription
1017h0 producer_
heartbeat_time
0
Characteristics
0{1 ms}65536
0Function is deactivated
VARUINT16 RW—
Time interval between two
heartbeat telegrams.
If the drive controller starts
with a non-zero time value,
the boot-up telegram is
considered to be the first
heartbeat.
KHB 13.0002-EN 2.0
51
5
efesotomasyon.com - Lenze
CANopen communication
Heartbeat telegram
Boot-up telegram
5.8Boot-up telegram
After the supply voltage has been switched on or after a reset, the drive controller sends
the boot-up telegram indicating that the initialisation phase is completed. The controller
then is in the NMT state pre-operational.
5.8.1Telegram structure
11 bits4bitsUser data (1 byte)
Identifier
Data
length
The structure of the boot-up telegram is almost identical to the structure of the heartbeat
telegram.
The boot-up telegram is also sent with the identifier 700
+ node address. The data length
h
is 1.
The only difference is that a zero is sent instead of the NMT state. For boot-up telegrams,
too, the sending device expects – depending on the error management setting – the
receipt of the telegram to be acknowledged by the other bus devices.
52
KHB 13.0002-EN 2.0
6Commissioning
efesotomasyon.com - Lenze
6.1Activation of CANopen
The CAN interface is activated once with the CANopen protocol via the serial interface of
the drive controller. The CAN protocol is activated via the CANopen window of the small
drive control (SDC).
Commissioning
Activation of CANopen
6
931e_380
Three different parameters have to be set:
ƒ Basic node number (node address)
In order to unambiguously identify the nodes in the network, each node must be assigned
a node address which may only appear once in the network. Via this node address the
device is addressed.
As an additional option, the node address of the drive controller can be made dependent
on the external wiring. If this function is activated, the input combination of the digital
inputs DIN4 and DIN5 (or the DIN0 … DIN5, depending on the selected evaluation of
AIN / DIN in the ’digital inputs’ menu) is added to thebasic node address once after a reset.
ƒ Baud rate
This parameter determines thebaud rate (in kBaud / kbps) used on the CANbus. Adapt the
baud rate to the length of the transmission cable.
ƒ CANopen active
Activating communication in this field activates the CAN communication. The CAN
communication parameters cannot be changed anymore until communication has been
deactivated again.
Note!
Please observe that the parameterisation of the CANopen functionality is only
preserved after a reset if the parameter set of the drive controller has been
saved in the EEPROM of the drive controller.
KHB 13.0002-EN 2.0
53
6
efesotomasyon.com - Lenze
6.2Speed control
6.2.1Parameterising of a process data object (TPDO and RPDO)
Commissioning
Speed control
Parameterising of a process data object (TPDO and RPDO)
The purpose of this example is to show how a speed control can be commissioned via the
CAN bus.
1. Use/activation of the transmit PDO1 (transmission of actual speed and status word)
and of the receive PDO1 (setpoint speed)
2. Control of the network management
3. Parameterisation of the motor, current and speed controller
4. Definition of the operating mode (speed control)
5. Selection of a speed setpoint
6. Commissioning of the speed controller via the state machine
This exampleshows the adaptation a nd activation of a transmitPDO (TPDO) and a receive
PDO (RPDO). The TPDO transfers the actual speed and the status word. Via the RPDO a
higher-level control specifies the speed setpoint.
The following table lists and explains the different SDO accesses for parameterising the
TPDO. When the network state is ’operational’, the PDO is set to the identifier 181
actual speed and the status word are transferred with a cycle time of 10 ms.
.The
h
54
KHB 13.0002-EN 2.0
Commissioning
efesotomasyon.com - Lenze
Speed control
Parameterising of a process data object (TPDO and RPDO)
6
No. DescriptionIdentifier Control
1Network management (NMT)
For the parameterisation of the
PDO, the network management
is set to the ’pre-operational’
mode (80
2Deactivation of the TPDO
The PDO is deactivated by
setting bit 31.
3Deletion of the number of
objects
To enable the changing of the
object mapping, the number of
objects (number_of_mapped_
objects) must b e set to zero.
4Parameterisation of the first
object to be mapped
Theindexoftheobjecttobe
mapped 1A00_01
mapped_object) and the length
of the corresponding variable
type must be specified here. The
first object to be mapped is the
actual speed (index 606C_00
withalengthof32bits(20
5Parameterisation of the second
object to be mapped
The second object to be mapped
(second_mapped_object) is the
status word (index 6041_00
withalengthof16bits(10
6Definition of the number of
objects
In this example, 2 mapped
objects (actual speed and status
word) are to be transferred
(number_of_mapped_objects).
7Parameterisation of the
transmission mode
The PDO is to be transferred at
cyclic intervals (FF
the transmission_type).
8Definition of the transmission
cycle time
The transmission cycle time
(inhibit_time) is to be set to 10
ms (100 × 100 μs).
9Activation of the TPDO
The TPDO is activated by
cancelling bit 31.
10 Network management (NMT)
For the parameterisation of the
PDO, the network management
is set to the ’operational’ mode
(01
).
h
(first_
h
).
h
)
h
).
h
is entered for
h
).
h
Tab. 2Example of parameterising a transmit PDO
h
0028000000000000000
601823001801810100C0
60152F001A0000000000
601823001A0120006C60
)
601823001A0210004160
60152F001A0002000000
60152F001802FF000000
60162B00180364000000
60182300180181010040
0020100000000000000
field
Data
length
Command
code
IndexSubindex Data 1 Data 2 Data 3 Data 4
Low
High
byte
byte
KHB 13.0002-EN 2.0
55
6
efesotomasyon.com - Lenze
Commissioning
Speed control
Parameterising of a process data object (TPDO and RPDO)
No. DescriptionIdentifier Control
1Network management (NMT)
For the parameterisation of the
PDO, the network management
is set to the ’pre-operational’
mode (80
2Deactivation of the RPDO
The RPDO is deactivated by
setting bit 31.
3Deletion of the number of
objects
To enable the changing of the
object mapping, the number of
objects (number_of_mapped_
objects) must b e set to zero.
4Parameterisation of the first
object to be mapped
Theindexoftheobjecttobe
mapped (first_mapped_object)
and the length of the
corresponding variable type
must be specified here. The first
object to be mapped is the
setpoint speed (index
60FF_00
bits (20
5Definition of the number of
objects
In this example, 1 mapped
object (setpoint speed ) is to be
transferred (number_of_
mapped_objects).
6Parameterisation of the
transmission mode
The PDO is to be transferred at
cyclic intervals (FF
the transmission_type).
7Activation of the RPDO
The PDO is activated by
cancelling bit 31.
8Network management (NMT)
For the parameterisation of the
PDO, the network management
is set to the ’operational’ mode
(01
).
h
) with a length of 32
h
).
h
is entered for
h
).
h
Tab. 3Example of parameterising a receive PDO
0028000000000000000
601823001401010200C0
60152F00160000000000
6018230016012000FF60
60152F00160001000000
60152F001402FF000000
60182300140101020040
0020100000000000000
field
Data
length
Command
code
IndexSubindex Data 1 Data 2 Data 3 Data 4
Low
High
byte
byte
56
KHB 13.0002-EN 2.0
Parameterising of the motor and the current controller
efesotomasyon.com - Lenze
6.2.2Parameterising of the motor and the current controller
Commissioning
Speed control
6
In addition to the motor parameters (rated current, number of pole pairs), the
safety-relevant parameters (max. current, i
in advance. The current controller parameters can be adapted as well.
No. DescriptionIdentifier Control
1Entry of the rated motor current
The rated motor current
(motor_rated_current) is
entered in mA (example: 5000
mA corresponds to 1388
2Definition of the maximum
current
To restrict the current (max_
current) / the maximum torque,
the current is limited to twice
the rated motor current
(corresponds to 2000 / 07D0
3Definition of the number of
poles
Fora2-pole-pairmotor,the
number of poles (pole_number)
is 4.
4Setting of the i2t tripping time
The tripping time (iit_ratio_
time) is set to 5000 ms
(corresponds to 1388
5Setting of the current controller
6Setting of the current controller
)
(K
p
A gain (torque_control_gain) of
= 2 (corresponds to 0200h)is
K
p
selected.
)
(T
n
A reset time (torque_control_
time) of T
to 2710
=10ms(corresponds
n
) is selected.
h
Tab. 4Example of parameterising the current controller and the motor type
)
h
h
).
h
60182375600088130000
60162B736000D0070000
).
60152F4D600004000000
60162B10640388130000
60162B2F600100020000
60162BF6600210270000
field
Data
length
Command
code
2
t tripping criterion) also have to be specified
IndexSubindex Data 1 Data 2 Data 3 Data 4
Low
High
byte
byte
KHB 13.0002-EN 2.0
57
6
efesotomasyon.com - Lenze
Commissioning
Speed control
Parameterising of the speed control
6.2.3Parameterising of the speed control
Before a control can be put into operation, it is often necessary to adapt the controller
parameters in order to ensure a dynamic and sufficiently damped operational
performance. The dimensioning of the controller parameters depends on the existing
system / the respective process and must be executed in advance.
The following short example shows the selection and subsequent parameterisation of the
speed control. In addition to the control parameters (K
safe operation (maximum speed, maximum acceleration and maximum braking
deceleration) are specified.
), the limit values required for
p,Tn
No. DescriptionIdentifier Control
1Definition of the operating
mode
For the operating mode
(modes_of_operation), the
speed control (03) is selected.
2Setting of the speed controller
3Setting of the speed controller
4Setting of the actual speed
5Definition of the maximum
6Definition of the maximum
7Definition of the maximum
)
(K
p
A gain (velocity_control_gain) of
=2(correspondsto200h)is
K
p
selected.
)
(T
n
A reset time
(velocity_control_time) of
=10ms(correspondsto
T
n
) is selected.
2710
h
value filter
Thetimeconstantofthespeed
filter (velocity_control_filter_
time) is set to 0.5 ms
(corresponds to 1F4
speed
The maximum speed
(end_velocity) is set to
3000 rpm (corresponds to
).
0BB8
h
acceleration
The maximum acceleration
(profile_acceleration) is
20000 rev × 4096 inc/rev × 1/mi
n/s (corresponds to 4E20000
braking deceleration
The maximum deceleration
(profile_deceleration) is
20000 rev × 4096 inc/rev × 1/mi
n/s (corresponds to 4E20000
Tab. 5Parameterisation of a speed controller
).
h
h
h
60152F60600003000000
60162BF9600100020000
60162BF9600210270000
60162BF96004F4010000
601823826000B80B0000
6018238360000000E204
).
6018238460000000E204
).
field
Data
length
Command
code
IndexSubindex Data 1 Data 2 Data 3 Data 4
Low
High
byte
byte
58
KHB 13.0002-EN 2.0
6.2.4Running through the state machine
efesotomasyon.com - Lenze
After allparameters required for the cascade control (current and speed control) havebeen
defined, the drive can be commissioned via the state machine. First a speed setpoint is
defined and sent once via an SDO access and once via the RPDO. Then the run through the
state machine follows.
Commissioning
Speed control
Running through the state machine
6
No. DescriptionIdentifier Control
length
1Selection of the speed setpoint
via SDO access
The speed setpoint (target_
velocity) is set to 1000 rpm.
2Selection of the speed setpoint
via RPDO
The speed setpoint is set to
1000 rpm via the RPDO. For
speed selection either method 1
or method 2 can be used.
3State query (read)60144041600000000000
4Control word: acknowledge
error
If an error has occurred, it can be
reset with the ’fault reset’
command after the error cause
has been eliminated. If there is
no error, continue with step 6.
5State query (read)60144041600000000000
6Control word: shut down
With the ’shut down’ command,
the state is adapted to ready to
switch on.
7State query (read)60144041600000000000
8Control word: switch on
With the ’switch on’ command,
the state is adapted to switched
on.
9State query (read)60144041600000000000
10 Control word: enable operation
With the ’enable operation’
command, the state is adapted
to operation enable.
Voltage is now applied to the
motor and the setpoint is being
approached.
11 State query (read)60144041600000000000
12 Operation of the control
While the control is in
operation, further changes (e.g.
of the setpoint) can be made.
13 Control word: disable voltage
This command switches off the
drive and sets it to the switch on
disabled state.
Tab. 6Commissioning of speed control via the state machine
601823FF6000E8030000
2014E803000000000000
60162B40600008000000
60162B40600006000000
60162B40600007000000
60162B4060000F000000
——————————
60162B40600000000000
field
Data
Command
code
IndexSubindex Data 1 Data 2 Data 3 Data 4
Low
High
byte
byte
KHB 13.0002-EN 2.0
59
6
efesotomasyon.com - Lenze
Commissioning
Speed control
Running through the state machine
Switched
on disabled
Ready to
switch on
Switched
State
Operation
on
Enable
Controlword
Shut down
Controlword
Switch on
Controlword
Enable Operation
Speed control during operation
Length
Identifier
601h 62Bh 40h 60h 00h 06h 00h 00h 00h
601h 607h 40h 60h 00h 07h 00h 00h 00h
601h 60Fh 40h 60h 00h 0Fh 00h 00h 00h
Command
Mainindex
Subindex
(change of speed setpoint is possible)
Controlword
Switched
on disabled
Disable Voltage
Fig. 7Representation of a state machine during speed control commissioning
601h 61Fh 40h 60h 00h 00h 00h 00h 00h
931E_401
60
KHB 13.0002-EN 2.0
6.3Position control
efesotomasyon.com - Lenze
The aim of this example is to show the principle of parameterisingand executing homing
runs. A drive controller with the node address 1 is assumed to be the communicating node.
In addition, the commissioning of a position control is explained.
The lower-level currentand speed control must beset accordingto chapters 6.2.2 and 6.2.3.
The following description assumes these d rive controllers being set accordingly.
6.3.1Parameterising of the homing run
Prior to the execution of the homing run, the homing method, the homing speeds and
accelerations must be defined. Then the homing run can be performed.
Commissioning
Position control
Parameterising of the homing run
6
No. DescriptionIdentifier Control
1Selection of the homing
operating mode
For the operating mode
(modes_of_operation), homing
(06) is selected.
2Definition of the homing
method
For the homing method,travel
to the limit switch in negative
direction under consideration of
the zero pulse is set (value 1).
3Setting of the fast homing
speed
The travelling speed used for
searching for the limit switch
(speed_during_search_for_swit
ch) is set to 100 rpm.
4Setting of the slow homing
speed
The travelling speed used for
searching for the zero pulse
(speed_during_search_for_zero)
is set to 50 rpm.
Tab. 7Parameterisation of homing
60152F60600006000000
60152F98600001000000
60162B99600164000000
60162B99600232000000
field
Data
length
Command
code
IndexSubindex Data 1 Data 2 Data 3 Data 4
Low
High
byte
byte
The homing state is indicated in thestatus word.Bit 12shows whetherthestarted homing
process is completed (homing_attained) or whether it is still running.
In difference to the other operating modes, an additional step is required for running
through the state machine when the state change operation enabled has been made.
Homing can then be started with bit 4 of the control word.
KHB 13.0002-EN 2.0
61
6
efesotomasyon.com - Lenze
Commissioning
Position control
Parameterising of the homing run
No. DescriptionIdentifier Control
1State query (read)
Each change of the state must
be executed depending on the
initial state. After a state change
you have to wait for the state
change being indicated in the
status word.
2Control word: shut down
With the ’shut down’ command,
the state is adapted to
Ready_To_Switch_On.
3State query (read)
(Explanation see step 1)
4Control word: switch on
With the switch on command,
the state is adapted to
Switched_On.
5State query (read)
(Explanation see step 1)
6Control word: enable operation
With the enable operation
command, the state is adapted
to Operation_Enable.
Voltage is now applied to the
motor. However, the homing
run does not start yet.
7State query (read)
(Explanation see step 1)
8Control word: Enable operation
and homing start
The enable operation and
homing start commands start
the homing run.
9State query (read)
At this point the homing run is
executed. Homing is completed
when bit 12 (homing attained)
is set in the status word.
10 Control word: disable voltage
This command switches off the
drive and sets it to the
Switch_On_Disabled state.
Tab. 8Execution of the homing run by means of the state machine
60144041600000000000
60162B40600006000000
60144041600000000000
60162B40600007000000
60144041600000000000
60162B4060000F000000
60144041600000000000
60162B4060001F000000
60144041600000000000
60162B40600000000000
field
Data
length
Command
code
IndexSubindex Data 1 Data 2 Data 3 Data 4
Low
High
byte
byte
62
KHB 13.0002-EN 2.0
6.3.2Running through the state machine
efesotomasyon.com - Lenze
When the homing run has been performed, the position control can be executed. This
requires that the targetposition is defined.In additionthe positioncontroller, therequired
control accuracy, and the ramps and the speed for the profile generator must be
parameterised.
Commissioning
Position control
Running through the state machine
6
No. DescriptionIdentifier Control
1Definition of the operating
mode
For the operating mode
(modes_of_operation), the
position control (01) is selected.
2Setting of the position controller
3Setting of the maximum
4Definition of the profile speed
5Definition of the final speed
6Setting of the profile
7Setting of the profile
8Setting of the position window
)
(K
p
A gain (position_control_gain)
= 2 (corresponds to 0200h)
of K
p
is selected.
positioning speed
The maximum speed
(position_control_v_max) is set
to 1000 rpm.
The profile velocity is used to
define the travelling speed of
the positioning process
(v = 100 rpm).
The end_velocity is used to
define the travelling speed at
the end of the positioning
process.
Must be set to 0 m/s!
acceleration
The profile_acceleration object
is used to define the
acceleration.
deceleration
The profile_deceleration object
is used to define the
deceleration.
The position window
(position_error_tolerance_wind
ow)isusedtodefinearangein
which the drive controller does
not intervene.
One revolution corresponds to
an entry of 65536. Here
1/100 rev (655) is entered.
60152F60600001000000
60162BFB600100020000
601823FB6004E8030000
60182381600064000000
60182382600000000000
60182383600010270000
60182384600010270000
601823FB60058F020000
field
Data
length
Command
code
IndexSubindex Data 1 Data 2 Data 3 Data 4
Low
High
byte
byte
KHB 13.0002-EN 2.0
63
6
efesotomasyon.com - Lenze
Commissioning
Position control
Running through the state machine
9Definition of the position
window
The target position (target_
position) is assumed to be
reached if the actual position of
the position controller
(position_actual_value) is
within a window (position_
window) around the target
position. The value selected is
1/100 rev.
10 Definition of the position time
If the actual position is within
the position window for the
time specified here (position_
window_time), the target
reached bit is set in the status
word. The time is set to 100 ms.
Tab. 9Parameterisation of the position control
IdentifierDescriptionNo.
Control
field
Data
length
6018236760008F020000
60162B68600064000000
code
Low
byte
High
byte
Data 4Data 3Data 2Data 1SubindexIndexCommand
64
KHB 13.0002-EN 2.0
Commissioning
efesotomasyon.com - Lenze
Position control
Running through the state machine
A change in the position is performed – as for all other operating modes as well – via a
change of the state machine. This is described below:
being approached.
10 State query (read)60144041600000000000
11 Control word: enable operation
and new setpoint
With the enable operation and
new setpoint commands, the
state is adapted to
Operation_Enable.Voltageis
now applied to the motor and
the setpoint is being
approached.
12 State query (read)60144041600000000000
13 Operation of the control
During operation further
changes (e.g. of the setpoint)
can be made.
14 Control word: disable voltage
This command switches off the
drive and sets it to the
Switch_On_Disabled state.
Tab. 10Commissioning of position control via the state machine
6018237A60000000E803
60162B40600008000000
60162B40600006000000
60162B40600007000000
60162B4060000F000000
60162B4060001F000000
——————————
60162B40600000000000
field
Data
Command
code
IndexSubindex Data 1 Data 2 Data 3 Data 4
Low
High
byte
byte
KHB 13.0002-EN 2.0
65
6
efesotomasyon.com - Lenze
Commissioning
Position control
Running through the state machine
In Fig. 8, the state changes and the corresponding states are represented graphically. The
process of running through the state machine is independent of the selected operating
mode (torque, speed or position control).
Switched
on disabled
Ready to
switch on
Switched
Operation
State
Enable
Oper. Enable +
new Setpoint
Controlword
Shut down
Controlword
Switch on
on
Controlword
Enable Operation
Controlword
Enable Operation
Length
Identifier
601h 62Bh 40h 60h 00h 06h 00h 00h 00h
601h 607h 40h 60h 00h 07h 00h 00h 00h
601h 60Fh 40h 60h 00h 0Fh 00h 00h 00h
601h 60Fh 40h 60h 00h 1Fh 00h 00h 00h
Command
Subindex
Mainindex
Execution of positioning process
Controlword
Switched
on disabled
Disable Voltage
Fig. 8Representation of a state machine during position control commissioning
601h 61Fh 40h 60h 00h 00h 00h 00h 00h
931E_402
66
KHB 13.0002-EN 2.0
7Parameter setting
efesotomasyon.com - Lenze
Before the drive controller can perform the required task (torque or speed control or
positioning), several controller parameters have to be adapted to the motor used and to
the specific application. For this purpose you should keep to the sequence given in the
following chapters.
These chapters first explain the parameterisation and then the device control and the use
of the different operating modes.
7.1Loading and saving of parameter sets
7.1.1Overview
The drive controller is provided with three parameter sets:
ƒ Current parameter set
This parameter s et is stored in the volatile memory(RAM) of the drive controller. It can
be read orwritten to as desiredwith theSmall DriveControl parameterisationprogram
or via the CAN bus. When switching on the drive controller, the application parameter
set is copied into the current parameter set.
Parameter setting
Loading and saving of parameter sets
Overview
7
ƒ Default parameter set
This parameter set is the unchangeable parameter set of the drive controller which is
presetbydefault.BywritingintotheCANopenobject1011_01h
(restore_all_default_parameters), the default parameter set can be copied into the
current parameter set . This copying process is only possible if the power stage is
switched off.
ƒ App lication parameter set
The current parameter set can be saved in the non-volatile flash memory. The saving
process is initiated by a write access to the CANopen object 1010_01h
(save_all_parameters). When the drive controller is switched on, the applicationparameter set is automatically copied into the current parameter set.
The following diagram illustrates the connections between the different parameter sets.
of the
Application
parameter set
CANopen-
object 1010
Default
parameter set
CANopen
object 1011
Switch-on
controller
Current
parameter set
Fig. 9Connections between the p arameter sets
KHB 13.0002-EN 2.0
931e_412
67
7
efesotomasyon.com - Lenze
Parameter setting
Loading and saving of parameter sets
Overview
There are two possible variants for the parameter set management:
1. The parameter set is created with the Small Drive Control (SDC) parameterisation
program and transferred to the different drive controllers. When this method is
used, only the objects which can solely be accessed via CANopen have to be set via
the CAN bus.
The disadvantage of this method is that the parameterisation software is required for
the commissioning of a new drive controlleror in the event of a repair being necessary
(replacement of the drive controller). Therefore this method only makes sense for
single controllers.
2. This variant is based on the fact that most application-specific parameter sets differ
from the default parameter set in only a few parameters. Due to this, it is possible to
recreate the current parameter set via the CAN bus after every switching on of the
system.
For this purpose, the higher-level control first loads the default parameter set (calling
of the CANopen object 1011_01h restore_all_default_parameters). Then only the
differing objects are transferred. The whole process takes less than 1 second per drive
controller. The advantage of this method is that it also functions for unparameterised
drive controllers, so that the commissioning of new systems or the replacement of
individual controllers does notcause any problemsand theparameterisationsoftware
is not needed.
Note!
We recommend to use the second variant. Please observe that not all
parameters can be set via CAN. If the setting of these parameters is required,
the first variant has to be used.
Stop!
Uncontrolled rotation of the motor
An incorrect parameter set can cause uncontrolled rotation of the motor.
Possible consequences:
ƒ This may result in property damage.
Protective measures:
ƒ Before the initial switch-on of the power stage, ensure that the drive
controller really contains the correct parameter set.
68
KHB 13.0002-EN 2.0
7.1.2Description of the objects
efesotomasyon.com - Lenze
Parameter setting
Loading and saving of parameter sets
Description of the objects
7
IndexNamePossible settings
LenzeSelectionDescription
1010
1011
0 store_parameters
h
1 save_all_
parameters
0 restore_parameters
h
1 restore_all_default_
parameters
00000001h00000000
00000001h00000000
00000000
65766173
64616F6C
00000001
Characteristics
ARRUINT8 RO—
Not used.
h
h
h
h
h
h
{1h}65766173
SaveDefault parameter set is
{1h}64616F6C
LoadLoading of default
—UINT32 RW—
h
Acceptance of default
parameter set in application
parameter set.
Default parameter set is not
accepted.
accepted.
ARRUINT8 RO—
Query on the number of
possible objects.
—UINT32 RW—
h
Loading of the default
parameter set, only possible
ifthepowerstageis
deactivated.
The CAN communication
parameters (node no., baud
rate and operating mode)
remain unchanged.
parameter set.
Read access: Reset to default
values.
KHB 13.0002-EN 2.0
69
7
efesotomasyon.com - Lenze
Parameter setting
Conversion factors (factor group)
Overview
7.2Conversion factors (factor group)
7.2.1Overview
Drive controllers are used in numerous applications, for instance as direct drives, with
downstream gearboxes, for linear drives, etc.
To enable simple parameterisationfor all these different applications, thedrive controller
can, by means of thefactory group, be parameterisedin such a way that the user can enter
or read out all quantities (e.g. the speed) directly on the drive in the units desired (e.g.
position values in millimetres and speeds in millimetres per second in the case of a linear
axis).
The drivecontroller thenconverts the entries tointernal units by meansof thefactorgroup.
For every physical quantity (position, speed and acceleration) there is a conversion factor
for adapting the user units to the own application.
The units set by the factor group are generally designated as positions_units,speed_units
or acceleration_units.
The below diagram illustrates the function of the factor group.
Factor Group
02
±1
position_units
speed_units
acceleration_units
position_factor
3
velocity_encoder_factor
4
acceleration_factor
position_polarity_flag
±1
±1
velocity_polarity_flag
±1
1
increments (inc)
1 rpm
1 rpm/256s
Fig. 10Factor group
User units
Controller-internal units
Position
Speed
Acceleration
931e_414
70
KHB 13.0002-EN 2.0
Parameter setting
efesotomasyon.com - Lenze
Conversion factors (factor group)
Overview
In the controller, all parameters are stored in the form of internal units. When they are
written or read out, they are converted by means of the factor group.
Note!
The factor group should be set prior to the first parameterisation and should
not be changed during a parameterisation process.
The factory group is set to the following units as default:
QuantityDesignationUnitExplanation
Lengthposition_unitsincrements65535 increments per revolution
Speedspeed_unitsrpmRevolutions per minute
Accelerationacceleration_unitsrpm/sSpeed increase per second
U
E
x
1
7
Fig. 11Overview: Factor Group
Input-end speed
U
E
U
Output-end speed
A
x
Position_units in degrees
1
x
Position_units in mm
2
U
A
x
2
931e_415
KHB 13.0002-EN 2.0
71
7
efesotomasyon.com - Lenze
7.2.2Description of the objects
Parameter setting
Conversion factors (factor group)
Description of the objects
Object 6093
The position_factor object serves to convert all length units of the application from
position_units to the internal unit of increments (65535 increments correspond to
1 revolution).
The numerator and the denominator have to be written separately into the drive
controller. It can, therefore, be necessary to bring the fraction to integers by ap propriate
expansions.
The position_factor is calculated using the following formula:
position_factor =
Example: The unit required at the output end is 1 rev (position_unit)
1. 1 inc = 1/65535 rev
2. Result:
Numerator = 1
Divisor = 65535
: position_factor
h
numerator
divisor
72
KHB 13.0002-EN 2.0
Parameter setting
efesotomasyon.com - Lenze
Conversion factors (factor group)
Description of the objects
Object 6094h: velocity_encoder_factor
The velocity_encoder_factor object serves to convert all speed values of the application
from speed_units to the internal unit of revolutions per minute.
The object consists of two parts: A factor for conversion of internal length units to
position_units and afactor forconversion ofinternal time units to user-defined time units.
The velocity_encoder_factor is calculated using the following formula:
7
velocity_encoder_factor =
Object 6097h: acceleration_factor
The acceleration_factor object serves to convert all acceleration values of the application
from acceleration_units to the internal unit of revolutions per minute per 256 seconds.
The object consists of two parts: A factor for conversion of internal length units to
position_units and afactor forconversion ofinternal time units to user-defined time units.
The acceleration_factor is calculated using the following formula:
acceleration_factor =
numerator
divisor
Object 607Eh:polarity
IndexNamePossible settings
LenzeSelectionDescription
607E
0 polarity00
h
h
numerator
divisor
00
h
Bit 640
Bit 780
Characteristics
{04h}40
0multiply by 1velocity_polarity flag
h
1multiply by -1
0multiply by 1position_polarity flag
h
1multiply by -1
h,80h,C0h
VARUINT8RWMAP
Setting of the signs of
position and speed values.
By changing the sign, the
direction of rotation can be
inverted.
Often it makes sense to set
both flags to the same value.
KHB 13.0002-EN 2.0
73
7
efesotomasyon.com - Lenze
7.3Power stage parameters
7.3.1Overview
7.3.2Description of the objects
Parameter setting
Power stage pa rameters
Overview
The power stage of the drive controller comprises several safety functions, some of which
can be parameterised:
ƒ Controller enable logic (software and hardware enable)
ƒ Overcurrent monitoring
ƒ Overvoltage / undervoltage monitoring of the DC bus
ƒ Power stage monitoring
Object 6510_10
:enable_logic
h
Danger!
Dangerous voltage
Even if the digital input DIN9 (controller enable) is not set, a dangerous voltage
may be applied to the motor.
Possible consequences:
ƒ This means a danger to life when working on the motor.
Protective measures:
ƒ Disconnect the motor from the mains before starting to work on it.
With a rising edge and a HIGH level at the digital input DIN9 controller enable is detected.
To enablethe activation ofthe controller’spower stage, the drive controller mustbe in the
”ready for operation” state.
If thisis the case,the drive controller changesto the ”switchon power stage”state and the
microprocessor activates the power transistors.
This inturn meansthat apreviously switched-onpowerstage cannotbe switchedoff if the
microprocessor is defective. The only possibility to switch off the power stage in this case
is to switch off the DC bus and the logic supply.
The drive controller’s response to the cancellation of the signal depends on the operating
mode:
ƒ Positioning operation and speed-controlled operation
When the signal is cancelled, the motor is braked along a defined deceleration ramp.
The power stage is switched off when the motor speed falls below 10 rpm and the
eventually existing holding brake has been applied.
ƒ Torque-controlled operation
Whenthesignaliscancelled,thepowerstageisimmediatelyswitchedoff.
Simultaneously an eventually existing holding brake is applied. This means that the
motor coasts without braking or is only stopped by the eventually existing holding
brake.
74
KHB 13.0002-EN 2.0
Parameter setting
efesotomasyon.com - Lenze
Power stage pa rameters
Description of the objects
7
IndexNamePossible settings
LenzeSelectionDescription
6510h10 enable_logic20{1}2
0Digital inputs of power stage
1Digital inputs of power stage
2Digital inputs of power stage
Characteristics
—UINT16 RWMAP
Setting of the power stage
enable.
enable and controller enable
must be activated.
enable and controller enable
and interface RS232 must be
activated.
enable and controller enable
and CAN bus must be
activated.
KHB 13.0002-EN 2.0
75
7
efesotomasyon.com - Lenze
7.4Current controller and motor adaptation
Parameter setting
Current controller and motor adaptation
Overview
Stop!
Motor and drive controller overload
The current controller parameters and the current limitation can be set
incorrectly and cause overloading of the motor and the drive controller.
Possible consequences:
ƒ The motor and the drive controller can be damaged within a very short
period of time.
Protective measures:
ƒ Before switching on the drive controller, ensure that the current controller
parameters and the current limitation are correctly set.
7.4.1Overview
Stop!
Uncontrolled rotation of the motor
If the phase sequence is reversed in the motor or angle encoder cable, positive
feedback effects may occur resulting in the motor speed not being
controllable.
Possible consequences:
ƒ This may result in property damage.
Protective measures:
ƒ Before switching on the motor, check that the motor cable and the angle
encoder cable are connected in the correct phase relation.
The parameterset of the drive controllerhas to be adapted to the connectedmotor and to
the cable set used. This concerns the following parameters:
ƒ Rated current: Depends on the motor
ƒ Overload capacity: Depends on the motor
ƒ Number of poles: Depends on the motor
ƒ Current controller: Depends on the motor
ƒ Direction of rotation: Depends on the motor and on the phase sequence in the
motor cable and the angle encoder cable
ƒ Offset angle: Depends on the motor and on the phase sequence in the motor cable
and the angle encoder cable
This data has to be specified by means of the Small Drive Control program at the first use
of a motor type. For several motors, there are ready-made parameter sets available from
Lenze. Please observe that thedirection of rotation and theoffset angle also depend onthe
cable set used.
76
KHB 13.0002-EN 2.0
7.4.2Description of the objects
efesotomasyon.com - Lenze
Parameter setting
Current controller and motor adaptation
Description of the objects
7
IndexNamePossible settings
LenzeSelectionDescription
6075
6073
604Dh0 pole_number22{2}254
6410
0 motor_rated_
h
h
h
current
0 max_current20230{motor_rated_current/1000}65535
0 motor_data
3 iit_time_motor20000{1 ms}10000
4 iit_ratio_motor{1 ‰}
10 phase_order10{1}1
11 resolver_offset_
angle
5000{1 mA}
0Phase sequence: left
1Phase sequence: right
11360-32767{1 inc}32767
Characteristics
VARUINT32 RWMAP
Input value for Ir(specified on
the motor nameplate). The
valuemustbesmallerthan
the rated controller current.
If this index is changed, the
index 6073
also must b e parameterised
again.
VARINT16RWMAP
Input value for I
The value for index 6075
motor_rated_ current must
be entered before this value
can be input.
VARUINT8RWMAP
Number of motor poles.
RECUINT8RO—
Reading-out of the motor
data.
—UINT16 RW—
Setting of the time interval
for which the motor can be
fed with I
When this time has expired,
the motor is automatically
limited to the value set under
6075
—UINT16 ROMAP
Reading-out of the actual
utilisation ratio of the I
limitation.
—UINT16 RWMAP
Setting of the phase
sequence.
See’angleencoder’dialog
box in the SDC
parameterisation program.
—INT16RWMAP
Setting of the angle encoder
orientation with respect to
the permanent magnetic
field of the rotor.
See’angleencoderoffset
angle’ dialog box in the SDC
parameterisation program.
Conversion:
α = offset angle
× 32767/180°
= 11360 (with offset angle
= 62.4°)
.
h
max_current
h
max
(index 6073h).
max
.
h
2
t
KHB 13.0002-EN 2.0
77
7
efesotomasyon.com - Lenze
Parameter setting
Current controller and motor adaptation
Description of the objects
2415
60F6
Possible settingsNameIndex
0 current_limitation
h
1 limit_current_
input_channel
00
h
00
h
{1h}04
0No limitation
1AIN0
2AIN2
3RS232
4CAN
2 limit_current00{1 mA}100000
0 torque_control_
h
parameters
1 torque_control_
2560{1}32 × 256
gain
2 torque_control_
2000100{1 μs}65500
time
Characteristics
DescriptionSelectionLenze
RECINT8RO—
Limitation von I
(independently of the
max
operating mode).
Torque-limited speed
operation is possible.
—INT8RW—
h
Setpoint source for the
limiting torque.
—INT32RW—
z Setpoint source RS232,
CAN: limitation of the
torque-proportional
current
z Setpoint sources AIN0,
AIN1: Selection of the
scaling factor for the
analog inputs. The current
in mA corresponds to an
applied voltage of 10 V.
RECUINT8RO—
Reading-out of PI-controlled
current controller data.
Thegainandthetime
constant apply to both the
field-generating and the
torque-generating current
controller.
—UINT16 RW—
Setting of the proportional
gain of the current controller.
From the SDC program:
=1.0
K
p
Setting here:
1.0 × 256 = 256 (100
—UINT16 RW—
)
h
Setting of the current
controller time constant.
From the SDC program:
=2ms
T
n
Setting here: 2 ms = 2000 μs
78
KHB 13.0002-EN 2.0
7.5Speed controller
efesotomasyon.com - Lenze
7.5.1Overview
The parameter set of the drive controller has to be adapted to the application. Especially
the gain strongly depends on masses which may be coupled to the motor. At the
commissioning of the system, the data has to be optimised by means of the Small Drive
Control program.
Stop!
Uncontrolled vibrations
Incorrect settings of the speed controller parameters can cause heavy
vibrations.
Possible consequences:
ƒ Parts of the system may be damaged.
Protective measures:
ƒ Before switching on the drive controller, ensure that the speed controller
parameters are correctly set.
Parameter setting
Speed controller
Overview
7
7.5.2Description of the objects
IndexNamePossible settings
LenzeSelectionDescription
60F9
0 velocity_control_
h
parameter_set
1 velocity_control_
gain
2 velocity_control_
time
4 velocity_control_
filter_time
17926{1}64 × 256
8000200{1 μs}32000
1600200{1 μs}32000
Characteristics
RECUINT8RO—
Reading-out of the speed
controller data.
—UINT16 RWMAP
Setting of the speed
controller gain.
From the SDC program:
=0.7
K
p
Setting here:
0.7 × 256 = 179
—UINT16 RWMAP
Setting of the speed
controller time constant.
From the SDC program:
=8ms
T
n
Setting here: 8 ms = 8000 μs
—UINT16 RWMAP
Setting of the filter time
constant for the actual speed
value.
The filter serves to reduce the
measurement noise.
From the SDC program:
T=1.6ms
Setting here:
1.6 ms = 1600 μs
KHB 13.0002-EN 2.0
79
7
efesotomasyon.com - Lenze
Parameter setting
Position controller (position control function)
Overview
7.6Position controller (position control function)
7.6.1Overview
This chapter describes all parameters required for the position controller. The position
setpoint (position_demand_value) from thetrajectory generator is applied to the input of
the position controller. In addition, the position controller is fed with the actual position
(position_actual_value) from the angle encoder (resolver, incremental encoder, etc.). The
behaviour of the position controller can be influenced by parameters. To keep the position
control loop s table, the output quantity can be limited (control_effort). The output
quantity is fed to the speed controller as the speed setpoint. All input and output
quantities of the position controller are converted from the application-specific units to
the corresponding internal units of the drive controller in the factor group.Theinternal
quantities are marked with an asterisk.
The following subfunctions are defined in this chapter:
1. Following error (Following_Error)
The following error is the deviation of the actual position (position_actual_value)fromthe
position setpoint (position_demand_value). If this following error exceeds the value
specified in the following error window (following_error_window) for a certain time, bit
13 following_error of the status word object is set. The permissible time interval can be
defined via the following_error_time_out object.
following_error_time_out
(6066h)
following_error_
window
(6067h)
[position units]
Fig. 12Following error - functional survey
Limit
Function
home_offset (607Ch)
position_demand_value*
position_actual_value*
(6063h)
Multiplier
position_factor (6093h)
polarity (607Eh)
[inc]
-
[inc]
Windows
Compar ator
Timer
following_erro r
status_word
(6041h)
931e_416
80
KHB 13.0002-EN 2.0
Parameter setting
efesotomasyon.com - Lenze
Position controller (position control function)
Overview
Fig. 13 shows the definition of the window function for the ”following error” message. The
range between x
(position_demand_value)x
this window(following_error_window). Ifthe driveleaves this window and does notenter
it again within the time s pecified in the following_error_time_out object, then bit 13
following_error of the status word is set.
and xi+x0is defined symmetrically around the set position
i-x0
.Thepositionsxt2and xt3are, for instance, located outside
i
7
x
t2
x
t3
position x
x-x
i0
Fig. 13Following error
2. Position reached
This function allows you to define a position window around the target position
(target_position). If the actual position of the drive is within this range for a certain time
(the position_window_time), then bit 10 target_reached of the status word is set.
position_window
(6067h)
[position units]
target_position
(607Ah)
[position units]
Fig. 14Position reached - functional survey
Limit
Function
home_offset
(607Ch)
Limit
Function
home_offset
(607Ch)
position_actual_value*
(6063h)
x
i
position_window_time
(6068h)
Multiplier
position_factor (6093h)
polarity (607Eh)
Multiplier
position_factor
(6093h)
polarity (607Eh)
x+x
i0
[inc]
Comparator
[inc]
-
Windows
Timer
target reached
status_word
(6041h)
931e_417
931e_418
KHB 13.0002-EN 2.0
81
7
efesotomasyon.com - Lenze
Parameter setting
Position controller (position control function)
Description of the objects
Fig. 15 shows the definition of the window function for the ”position reached” message.
The positioning range between x
position(target_position)x
position window (position_window).When the driveenters this window,a timeris started
in the controller. When the timer has reached the time specified in the
position_window_time object and thedrive has not left the valid range between xi-x0and
x
during this time, then bit 10 target_reached of the status word is set. If the drive
i+x0
leaves the valid range, both bit 10 and the timer are set to zero.
.Thepositionsxt0and xt1are, for instance, located within this
i
and xi+x0is defined symmetrically around the target
i-x0
x-x
i0
Fig. 15Position reached
7.6.2Description of the objects
The p arameter set of the drive controller has to be adapted to the application. At the
commissioning of the system, the data of the position controller has to be optimised by
means of the Small Drive Control program.
Stop!
Uncontrolled vibrations
Incorrect settings of the position controller parameters can cause heavy
vibrations.
Possible consequences:
ƒ Parts of the system may be damaged.
Protective measures:
ƒ Before switching on the drive controller, ensure that the position controller
parameters are correctly set.
x
t0
x
t1
position x
x
i
x+x
i0
931e_419
82
KHB 13.0002-EN 2.0
Parameter setting
efesotomasyon.com - Lenze
Position controller (position control function)
Description of the objects
7
IndexNamePossible settings
LenzeSelectionDescription
60FB
6062
6063
6064
0 position_control_
h
h
h
h
parameter_set
1 position_control_
gain
4 position_control_
v_max
5 position_error_
tolerance_window
0 position_demand_
value
0 position_actual_
value
0 position_actual_
value
520{1}64 × 256
5000{1 rpm}32767
130{1 inc}65535
Characteristics
RECUINT8RO—
Reading-out of the position
controller data.
The position controller
operates with internal
feedforwarding so that
deviation control is
minimised and the controller
settling time is reduced.
—UINT16 RW—
Setting of the position
controller gain.
From the SDC program:
=0.2
K
p
Setting here: 0.2 × 256 = 52
—UINT32 RWMAP
Limitation of the position
controller correction speed.
This is required since even
small position deviations can
cause considerable correction
speeds.
—UINT32 RWMAP
Definition of the size of a
position deviation up to
which the position controller
does not intervene (dead
zone). This can be used for
stabilisation purposes, for
instance, if there is backlash
present in the system.
31
-2
31
-2
31
-2
{1 inc}231-1
{1 inc}231-1
{position units}231-1
VARINT32ROMAP
Reading-out of the position
setpoint.
This value is supplied to the
position controller by the
trajectory generator.
VARINT32ROMAP
Reading-out of the actual
position.
Theunitcanbesetviathe
factor group.
VARINT32ROMAP
Reading-out of the actual
position.
KHB 13.0002-EN 2.0
83
7
efesotomasyon.com - Lenze
Parameter setting
Position controller (position control function)
Description of the objects
6065
6066
60FA
6067
6068
Possible settingsNameIndex
0 following_error_
h
h
h
h
h
window
0 following_error_
time_out
0 control_effort{speed units}
0 position_window1820-2
0 position_window_
time
910200000000
h
1000{1 ms}27314
31
00{1 ms}65535
{1 inc}7FFFFFFF
{1 inc}231-1
Characteristics
DescriptionSelectionLenze
VARUINT32 RWMAP
Symmetrical range around
the position setpoint.
If the actual position value is
outside the range, a
following error occurs and bit
13 of the status word is set.
Causes for following errors:
z The drive is blocked
z The positioning speed is
too high
z The acceleration values
are too high
z The value entered for the
following_error_window
index is too low
z The position controller is
not parameterised
correctly
Theunitcanbesetviathe
factor group.
VARUINT16 RWMAP
If the following error lasts
longer than 100 ms, bit 13 of
the status word is set.
VARINT32ROMAP
Reading-out of the position
controller correction speed.
The correction speed is the
difference between the set
position and the actual
position with consideration
of the gain.
This value is internally
supplied to the speed
controller as a setpoint.
VARUINT32 RWMAP
Symmetrical range around
the target position. The
target position is reached if
the actual position is within
this range for a certain time.
Theunitcanbesetviathe
factor group.
VARUINT16 RWMAP
If the actual position is within
the position window for as
long as defined here, bit 10 of
the status word is set.
84
KHB 13.0002-EN 2.0
7.7Analog inputs
efesotomasyon.com - Lenze
7.7.1Overview
The drive controller is provided with two analog inputs, which can be used, for instance, to
define setpoints. These analog inputs can only be parameterised via the Small Drive
Control program.
7.8Digital inputs and outputs
7.8.1Overview
All digital inputs of the drive controller can be read via the CAN bus and the two digital
outputscanbesetasdesired.
7.8.2Description of the objects
Parameter setting
Analog inputs
Overview
7
IndexNamePossible settings
LenzeSelectionDescription
60FDh0 digital_inputs000000000
Bit no.ValueDigital input
000000001
100000002
300000008
16 - 2503FF0000
60FE
0 digital_outputs
h
1 digital_outputs_
data
000000000
Bit no.ValueDigital outputSetting of the 2 outputs. The
000000001
1600010000
17, 1800060000
Characteristics
h
h
{1}FFFFFFFF
h
h
h
h
h
h
h
Neg. limit switch
Pos. limit switch
Interlock
(controller or
power stage
enable is missing)
DIN0 ... DIN9
{1h}FFFFFFFF
Brake
Ready for
operation
DOUT1, DOUT2
VARUINT32 ROMAP
h
Reading-out of the digital
inputs.
ARRUINT8RO—
Reading-out of the digital
outputs.
—UINT32 RWMAP
h
activation can be delayed by
up to 1 ms. By reading back
index 60FE_00
check when the outputs are
really set.
you can
h
KHB 13.0002-EN 2.0
85
7
efesotomasyon.com - Lenze
Parameter setting
Limit switches
Overview
7.9Limit switches
7.9.1Overview
Limit switches can be us ed to define the home position of the drive controller. More
detailed information on the possible homing methods can be found in the chapter
’Homing operation mode’.
7.9.2Description of the objects
IndexNamePossible settings
LenzeSelectionDescription
6510h11 limit_switch_
polarity
15 limit_switch_
deceleration
10{1}1
2000000{1 rpm/s}200000
Characteristics
—INT16RWMAP
Setting of the limit switch
polarity. The value always
refers to both limit switches.
0NC contact
1NO contact
—INT32RWMAP
Setting of the deceleration
used for braking when the
limit switch is reached in
normal operation (limit
switch emergency stop
ramp).
86
KHB 13.0002-EN 2.0
7.10Device information
efesotomasyon.com - Lenze
7.10.1Description of the objects
Parameter setting
Device information
Description of the objects
7
IndexNamePossible settings
LenzeSelectionDescription
1000
1018
6510
0 device_type
h
0 identity_object
h
1 vendor_id
2 product_code
3 revision_number
4 serial_number
1 serial_number
h
2 drive_code
A1 drive_type
A9 firmware_main_
version
AA firmware_custom_
version
00020192
0000003B
00001111
0x00001111
Characteristics
VARUINT32 RO—
Identification of the bus
device in a multi-axis system.
h
h
h
931E servo inverter
RECUINT8RO—
Not used.
—UINT32 RO—
Manufacturer code
—UINT32 RO—
Product code
931E
—UINT32 RO—
Firmware version
—UINT32 RO—
Hardware serial number
—UINT32 ROMAP
Reading-out of the serial
number.
—UINT32 ROMAP
Reading-out of the
identification.
—UINT32 ROMAP
Reading-out of the device
type, see also index
1018_02
—UINT32 ROMAP
Reading-out the main version
number of the firmware
(product version).
—UINT32 RWMAP
Reading-out of the version
number of the
customer-specific firmware
variant.
product_code.
h
KHB 13.0002-EN 2.0
87
8
efesotomasyon.com - Lenze
Device control
State diagram
Overview
8Device control
8.1State diagram
8.1.1Overview
The following chapter describes how the drive controller is controlled under CANopen, i.e.
how, for instance, the power stage is switched on or how an error is acknowledged.
Stop!
Uncontrolled rotation of the motor
An incorrectly parameterised drive controller can cause uncontrolled rotation
of the motor.
Possible consequences:
ƒ This may result in property damage.
Protective measures:
ƒ Before the initital switch-on of the power stage, ensure that the drive
controller is really parameterised with the correct parameters.
Under CANopen, the entire control of the drive controller is implemented using two
objects:Themastercancontrolthedrivecontrollerviathecontrol word, and the state of
the drive controller can be read back via the status word object. To explain the control of
the drive controller, the following terms are used:
ƒ State
Depending on the powerstage being switched on or an error havingoccurred, the drive
controller isin different states. The states defined under CANopen are described inthis
chapter.
Example: Switch_On_Disabled
ƒ State transition
CANopennot onlydefines thestates, butalso howto getfrom onestate toanother (e.g.
for acknowledging an error). State transitionsare initiatedby themaster bysetting bits
in the control word or internally by the drive controller if, for instance, the controller
detects an error.
ƒ Command
To initiate state transitions, certain bit combinations must be set in the control word.
Such a combination is called a command.
Example: Enable operation
ƒ State diagram (state machine)
All states and state transitions together form the state diagram, i.e. the overview of all
states and the possible transitions.
88
KHB 13.0002-EN 2.0
8.1.2State diagram of the drive controller
efesotomasyon.com - Lenze
Device control
State diagram
State diagram of the drive controller
8
0
Start
0
Not_Ready_To_Switch_On
1
Switch_On_Disabled
2
Ready_To_Switch_On
3
8
9
Fig. 16State diagram of the drive controller
Switched_On
4
Operation_Enable
Power disabled (power stage is inhibited)
Fault (error)
Power enabled (power stage is switched on)
7
6
5
12
10
11
13
Fault_Reaction_Active
14
Fault
15
Quick_Stop_Active
1
2
931e_421
KHB 13.0002-EN 2.0
Danger!
Dangerous voltage
Power stage inhibited means that the power transistors cannot be controlled
anymore. However, a dangerous voltage may still be applied to the motor.
Possible consequences:
ƒ This means a danger to life when working on the motor.
Protective measures:
ƒ Disconnect the motor from the mains before starting to work on it.
After being switched on, the drive controller is initialised and finally reaches the
Switch_On_Disabled state. In this state, the CAN communication is fully operational and
the drive controller can be parameterised (e.g. the speed control operating mode can be
set). The power stage is switched off and the shaft can thus be rotated freely.
Via the state transitions 2, 3, 4 (basically corresponding to the CAN controller enable) the
Operation_Enable state is reached. In this state the power stage is switched on and the
motor is controlled according to the set operating mode. It is therefore essential to ensure
in advance that the drive is parameterised correctly and that a corresponding setpoint is
set to zero.
89
8
efesotomasyon.com - Lenze
Device control
State diagram
State diagram of the drive controller
If an error occurs, finally the fault state will be reached (no matter from which state you
have started). Depending on the severity of the error, certain actions (e.g. an emergency
braking) can be executed before the fault state is reached (Fault_Reaction_Active).
To execute the state transitions mentioned above, certain bit combinations must be set i n
the control word. The bits 0 ... 3 of the control word are evaluated together to initiate a
state transition. In the following sections, first only the most i mportant state transitions
2, 3, 4, 9 and 15 are explained. A table listing all states and state transitions can be found
at the end of this chapter.
The following table contains in the first column the desired state transition and in the
second column the required conditions (usually a c ommand given by the master). The
column control word shows how this command is generated, i.e. which bits are to be set
in the control word.Thefault reset command is generated by a positive edge change of
bit 7.
Transition Command
2Shut down and
controller enable
3Switch onxx111Switching on of the power stage
4Enable operationx1111Control according to the set operating mode
9Disable voltagexxx0xPower stage is inhibited. Motor can be rotated
15Fault reset and error
eliminated
Tab. 11Important state transition of the drive controller
xnotrelevant
Control word (bits)
73210
xx110None
0->1 xxxxError acknowledgement
Action
freely.
Example: Switching on of the power stage (drive controller must be parameterised)
The drive controller is in the Switch_On_Disabled state and is to be set into the
Operation_Enable state. No other bits are to be set in the control word.
Transition Old state
2Switch_On_Disabled x110Ready_To_Switch_On
3Ready_To_Switch_Onx111Switched_On
4Switched_On1111Operation_Enable
1)
The master has to wait until the new state can be read back from the status word.
Control word (bits)
3210
New state
1)
1)
1)
The transitions3 and 4 can besummarised by directlysetting the controlword to 1111. For
the state transition 2, the set bit 3 is not relevant.
90
KHB 13.0002-EN 2.0
8.1.3States of the drive controller
efesotomasyon.com - Lenze
StateMeaning
Not_Ready_To_Switch_OnThe drive controller executes a self-test. The CAN communication is not yet
Switch_On_DisabledThe drive controller has completed the self-test. CAN communication is
Ready_To_Switch_OnThe drive controller waits until the digital input DIN9 ”controller enable” is at
Switched_OnThepowerstagecanbeswitchedon.
Operation_Enable1)Voltage is applied to the motor and the motor is controlled according to the
Quick_Stop_Active1)The quick stop function is executed (see: quick_stop_option_code). Voltage is
Fault_Reaction_Active
FaultAn error has occurred. The motor is de-energised.
Tab. 12States of the drive controller
1)
Thepowerstageisswitchedon
1)
Device control
State diagram
States of the drive controller
working.
working.
24 V. (Controller enable logic ”digital input and CAN”).
operating mode.
applied to the motor and the motor is controlled according to the quick stopfunction.
An error has occurred. Critical errors cause the immediate change to the fault
state. For all other errors, the action selected in the
fault_reaction_option_code is executed. Voltage is applied to the motor and
the motor is controlled according to the fault reaction function.
8
KHB 13.0002-EN 2.0
91
8
efesotomasyon.com - Lenze
Device control
State diagram
State transitions of the drive controller
8.1.4State transitions of the drive controller
Transition Command
0Switched on or reset
executed
1Self-test successfulInternal transitionActivation of CAN communication.
2Shut down and
controller enable
3Switch onxx111None
4Enable operationx1111On transition to the Operation_Enable state,
5Disable operationx0111Power stage is inhibited. Motor can be rotated
6Shut downxx110Power stage is inhibited. Motor can be rotated
7Quick stopxx01xNone
8Shut downxx110Power stage is inhibited. Motor can be rotated
9Disable voltagexxx0xPower stage is inhibited. Motor can be rotated
10Disable voltagexxx0xPower stage is inhibited. Motor can be rotated
11Quick stopxx01xBraking is initiated.
12Disable voltage or
braking completed
13Error occurredInternal transitionFor non-critical errors response according to
14Error handling is
completed
15Fault reset and error
eliminated
Tab. 13State transitions of the drive controller
xnotrelevant
Control word (bits)
73210
Internal transitionExecution of self-test.
xx110None
xxx0xPower stage is inhibited. Motor can be rotated
Internal transitionPower stage is inhibited. Motor can be rotated
0->1 xxxxError acknowledgement (at rising edge).
Action
thepowerstageisswitchedon.
freely.
freely
freely
freely.
freely.
freely.
fault_reaction_option_code. For critical errors
transition 14 follows.
freely.
92
KHB 13.0002-EN 2.0
8.1.5Control word
efesotomasyon.com - Lenze
The control word can be used to change the current state of the drive controller or to
initiate a certain action directly (e.g. start of the homing run). The function of bits 4, 5, 6and
8 depends on the current operating mode (modes_of_operation) of the drive controller.
Device control
State diagram
Control word
8
IndexNamePossible settings
LenzeSelectionDescription
6040h0 controlword0000
h
0000
h
Bit no.Value
00001
10002
20004
30008
40010
50020
60040
70080
80100
90200
100400
110800
121000
132000
144000
158000
{1h}FFFF
h
h
h
h
h
h
h
h
h
h
h
h
h
h
h
h
Characteristics
VARUINT16 RWMAP
h
Change of the drive
controller state.
An action is initiated (e.g.
homing run).
Control of t he state
transitions. (These bits are
evaluated together).
The function of these bits
depends on the operating
mode.
z reset_fault
At the transition from zero to
one, the drive controller tries
to acknowledge the pending
errors. This is only possible if
the cause of the error has
been eliminated.
The bit function depends on
the operating mode.
Set to zero.
KHB 13.0002-EN 2.0
93
8
efesotomasyon.com - Lenze
Device control
State diagram
Control word
The bits 0 ... 3 can be used to execute state transitions. The commands required for this
purpose are listed in the below overview. The
fault reset command is generated by a
LOW/HIGH edge of bit 7.
CommandBit 7Bit 3Bit 2Bit 1Bit 0
Shut downxx110
Switch onxx111
Disable voltagexxx0x
Quick stopxx01x
Disable operationx0111
Enable operationx1111
Fault reset0->1xxxx
Tab. 14Command overview
xnotrelevant
Note!
Since some of the state changes take some time, all state changes initiated via
the control word must be read back via the status word.
Only if the new state can be read in the status word, a new command can be
given via the control word.
94
KHB 13.0002-EN 2.0
Device control
efesotomasyon.com - Lenze
State diagram
Control word
Below the remaining bits of the control word are explained. Some bits have different
meanings dependent on the operating mode (modes_of_operation):
8
Operation
mode
Profile
position
mode
Profile
velocity
mode
Profile
torque mode
Homing
mode
Interpolated
position
mode
Bit 4Bit 5Bit 6Bit 8
z new_set_point
A rising edge indicates to
the drive controller that a
new travel task will be
transferred.
z Reservedz Reservedz Reservedz stop
z Reservedz Reservedz Reservedz stop
z start_homing_operation
A rising edge starts the
parameterised homing run.
A falling edge aborts the
homing run being
performed.
z enable_ip_mode
This bit has to be set if the
interpolation data records
aretobeevaluated.Itis
acknowledged by bit 12
(ip_mode_active) in the
status word.
z change_set_immediately
If this bit is not set, a new
travel task will not be
processed before an already
running task has been
completed. If the bit is set,
the running positioning task
will be aborted immediately
andreplacedbythenew
travel task.
z Reservedz Reservedz stop
z Reservedz Reservedz Reserved
z absolute/relative
If bit 6 is set, this means
”absolute positioning”.
Ifbit6isnotset,this
means ”relative
positioning”.
If the bit is set, the drive
controller refers the target
position (target_position)
of the current travel task
to the set position
(position_demand_value)
of the position controller.
z stop
If the bit is set, the
running positioning task is
aborted. For braking, the
profile_deceleration
(index 6084
After the process has been
completed, bit 10 (target_
reached) is set in the
status word (index 6041
Deleting of the bit has no
effect.
If the bit is set, the speed
is reduced to zero. For
braking, the profile_
deceleration (index 6084
is used. Deleting of the bit
results in the drive
controller being
accelerated again.
If the bit is set, the torque
is set to zero. Deleting of
the bit results in the drive
controller being
accelerated again.
If the bit is set, the
homing run being
performed is aborted.
Deleting of the bit has no
effect.
)isused.
h
).
h
)
h
KHB 13.0002-EN 2.0
95
8
efesotomasyon.com - Lenze
Device control
State diagram
Controller state
8.1.6Controller state
Similar to the combination of several control word bits initiating different state changes,
the combination of different status word bits can be used to read out the current state of
the drive controller.
The below table lists the possible states of the state diagram and the corresponding bit
combinations indicating these states in the status word.
StateBit 6Bit 5Bit 3Bit 2Bit 1Bit 0MaskValue
Not_Ready_To_Switch_On0x0000004Fh0000
Switch_On_Disabled1x0000004Fh0040
Ready_to_Switch_On010001006Fh0021
Switched_On010011006Fh0023
Operation_Enable010111006Fh0027
Fault0x1111004Fh000F
Fault_Reaction_Active0x1111004Fh000F
Quick_Stop_Active000111006Fh0007
Tab. 15Controller state
xnotrelevant
0040h0020h0008h0004h0002h0001
h
h
h
h
h
h
h
h
h
Example:
The above example shows which bits are to be set in the control word to enable the drive
controller. Now the new state is to be read out from the status word:
Transition from Switch_On_Disabled to Operation_Enable:
3. Write state transition 2 into the control word.
4. Wait until the Ready_To_Switch_On state is indicated in the status word.
Transition 2: Control word = 0006
indicated
1)
, wait until (status word + 006Fh) = 0021his
h
5. State transitions 3 and 4 can be summarised and written to the control word
together.
6. Wait until the Operation_Enable state is indicated in the status word.
Transitions 3 and 4: Control word = 000F
indicated
1)
, wait until (status word + 006Fh) = 0027his
h
The example is based on the assumption that no other bits are set in the control word
(since only bits 0 ... 3 are important for the transitions).
1)For the identification of the states, the bits not set have to be evaluated as well (see table). Therefore the status
word must be masked appropriately.
96
KHB 13.0002-EN 2.0
8.1.7Status word
efesotomasyon.com - Lenze
Device control
State diagram
Status word
8
IndexNamePossible settings
LenzeSelectionDescription
6041h0 statusword
0000
h
Bit no.Value
00001
10002
20004
30008
40010
50020
60040
70080
80100
90200
100400
110800
121000
132000
144000
158000
{1h}FFFF
h
h
h
h
h
h
h
h
h
h
h
h
h
h
h
h
Characteristics
VARUINT16 ROMAP
h
Display of the controller
state and of various events.
State of the drive controller,
see Tab. 15.
(These bits must be
evaluated together).
z voltage_disable
This bit is set when the
power stage transistors are
switched on.
Caution! In the event of a
defect, the motor can still be
energised.
State of the drive controller,
see Tab. 15.
z quick_stop
If the bit is deleted, the drive
executes a quick stop
according to index
quick_stop_option_code.
State of the drive controller,
see Tab. 15.
z warning
This bit is undefined. It must
not be evaluated.
z unused
This bit is not used and must
not be evaluated.
z remote
The bit is set if the controller
enable logic is set
correspondingly via index
6510_10
enable_logic.
h
The bit function depends on
the operating mode.
z internal_limit_active
This bit indicates that the I
limitation is active.
The function of these bits
depends on the operating
mode.
z unused
This bit is not used and must
not be evaluated.
z reserved
This bit must not be
evaluated.
2
t
KHB 13.0002-EN 2.0
97
8
efesotomasyon.com - Lenze
Device control
State diagram
Status word
Note!
The bits of the status word are not buffered. They indicate the current
controller state.
In addition to the c ontroller state, the status word indicates various events, i.e. each bit is
assigned with a certain event (e.g. following error).
The bit is set if the current target
position is reached and the current
position (index position_actual_
value) is within the parameterised
position window (index 6067
position_window).
It is also set if the drive comes to
standstill with the stop bit being set.
The bit is deleted if a new target is
selected.
z target_reached
The bit is set if the actual speed
(index 606C
of the drive is within the tolerance
window. This tolerance window can
be set via SDC.
z Reservedz homing_attained
z Reservedz ip_mode_active
velocity_actual_value)
h
h
z set_point_acknowledge
This bit is set if the drive controller
has detected that bit 4 of the control
word (new_set_point) is set.
It is deleted again after bit 4 of the
control word (new_set_point) has
been set to zero.
z speed_0
This bit is set if the current actual
speed (index 606C
value) of the drive is within the
corresponding tolerance window.
This bit is set if the homing run has
been completed successfully.
This bit indicates that interpolation
is active and the interpolation data
records are being evaluated. The bit
is set if this has been requested by
bit 4 of the control word (enable_ip_
mode).
velocity_actual_
h
z following_error
This bit is set if the current actual
position (index position_actual_
value) deviates that much from the
set position (index position_
demand_value) that the deviation is
out of the parameterised tolerance
window (indexes following_error_
window, following_error_time_out).
z Reserved
z homing_error
z Reserved
98
KHB 13.0002-EN 2.0
9Operatingmodes
efesotomasyon.com - Lenze
9.1Setting of the operating mode
9.1.1Overview
Below the operating modes specified in detail under CANopen are listed:
ƒ Speed control (profile velocity mode)
ƒ Homing (homing mode)
ƒ Positioning (profile position mode)
ƒ Synchronous position selection (interpolated position mode)
ƒ Torque control (profile torque mode)
9.1.2Description of the objects
Operating modes
Setting of the operating mode
Overview
9
Note!
The object 6060hmodes_of_operation can only be used to change the
operating mode and the object 6061
be used to read back the operating mode.
Since changing the operating mode can take some time, you have to wait until
the newly selected mode appears in the modes_of_operation_display object.
During this period it may happen that invalid operating modes are displayed
for a short time.
IndexNamePossible settings
LenzeSelectionDescription
6060h0 modes_of_
operation
modes_of_operation_display can only
h
Characteristics
1{1}7
1Position control with
3Speed control with setpoint
4Torque control with setpoint
6Homing
7Synchronous position
VARINT8RWMAP
Selection of the operating
mode
positioning operation
ramp
ramp
selection
KHB 13.0002-EN 2.0
99
9
efesotomasyon.com - Lenze
Operating modes
Setting of the operating mode
Description of the objects
6061h0 modes_of_
operation_display
Possible settingsNameIndex
-1Unknown operating mode /
1Position control with
2Speed control without
3Speed control with setpoint
4Torque control with setpoint
6Homing
7Synchronous position
-11Internal positioning
-12Internal speed control
-13Internal speed control with
-14Internal torque control
-15Internal position control
Characteristics
DescriptionSelectionLenze
VARINT8ROMAP
Display of the operating
mode.
If operation via CANopen is
not possible, an internal
operating mode is displayed.
change of operating mode
positioning operation
setpoint ramp
ramp
ramp
selection
operation
withoutsetpointramp
setpoint ramp
100
KHB 13.0002-EN 2.0
Loading...
+ 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.