This documentation is valid for 931M/W servo inverters.
Document history
Material No.VersionDescription
.4&ö2.002/2007TD11First 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.0003-EN 2.0
7
1
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.0003-EN 2.0
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.
Safety instructions
Persons responsible for safety
2
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)
KHB 13.0003-EN 2.0
9
2
Safety instructions
General safety instructions
2.2General safety instructions
ƒ 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.
ƒ 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.
10
KHB 13.0003-EN 2.0
2.3Definition of notes used
The following pictographs and signal words 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!
Safety instructions
Definition of notes used
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.
2
Application notes
Pictograph and signal wordMeaning
Note!
Tip!
Important note to ensure troublefree operation
Useful tip for simple handling
Reference to another documentation
KHB 13.0003-EN 2.0
11
3
Technical data
Communication data
3Technical data
3.1Communication data
Communication
Communication profileDS 301, DSP 402
Network topologywithout repeater: line / with repeaters: line or tree
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. 931M/W controller)
2
A
Node n - slave, n = max. 128
n
Stop!
Connect a 120 Ω terminating resistor to the first and last bus device.
CAN_H
CAN_GND
CAN_SHLD
A
CAN_L
n
CAN_H
CAN_GND
CAN_L
CAN_SHLD
W
120
931m_050
If the last bus device is a 931M/W controller, use the »fluxx« software to activate the
terminating resistor.
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
KHB 13.0003-EN 2.0
13
4
Electrical installation
Connection of CAN bus slave
4.2Connection of CAN bus slave
X4.1 / X4.2
Input contact
pattern
Output contact
pattern
PinSignalExplanation
1CAN_SHLDCAN_Shield
2—Reserved
3CAN_GNDCAN_Ground
4CAN_HCAN_HIGH (high is dominant)
5CAN_LCAN_LOW (low is dominant)
4.3Connection of CAN bus master
Below, youcan find the assignment of a 9-pole Sub-Dsocket used by most CAN masters for
the connection of fieldbus devices.
CAN bus connection to a 9-pole Sub-D socket
ViewPinSignalExplanation
1
2
3
4
5
Tab. 1CAN Sub-D socket
1—Reserved
6
2CAN_LCAN_LOW (low is dominant)
7
3CAN_GNDCAN_Ground
8
4—Reserved
9
5(CAN_SHLD) Optional CAN_Shield
6(GND)Optional ground
7CAN_HCAN_HIGH (high is dominant)
8—Reserved
9(CAN_V+)Optional external voltage supply of CAN
14
KHB 13.0003-EN 2.0
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.
KHB 13.0003-EN 2.0
15
5
CANopen communication
About CANopen
Identifier
5.1.2Identifier
The principle of the CAN communication is based on a message-oriented data exchange
betweenasenderandmanyreceivers.Allnodescansendandreceive
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.
Except for the network management and the sync telegram, the identifier contains the
node address of the controller:
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
TPDO3
RPDO3
DirectionBasic identifier
from the driveto the drivehex
X
X600
X180
X200
X280
X300
X380
X400
580
16
KHB 13.0003-EN 2.0
5.1.4User 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 influenced 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.
CANopen communication
About CANopen
User data
5
ƒ 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.
– In general, the transfer of parameters is not time-critical.
– Examples for parameter data are, for instance, operating parameters, diagnostic
information and motor data.
KHB 13.0003-EN 2.0
17
5
CANopen communication
Parameter data transfer (SDO transfer)
Telegram structure
5.2Parameter data transfer (SDO transfer)
5.2.1Telegram structure
The telegram for parameter data has the following structure:
ƒ If an object (e.g. controller parameter) consists of several sub-objects, the
Data
length
Command
code
Index
low byte
Index
high byte
Subindex
Data 1Data 2Data 3Data 4
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).
ƒ If an object has no sub-objects, the value ”0” is entered in byte 4 of the telegram.
in the command code byte indicates that an error has occurred.
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
F0F1F2F3
Error code
5
41000406
5th byte6th byte7th byte8th byte
Low wordHigh word
Low byteHigh byteLow byteHigh byte
The below table lists the meanings of the error numbers:
Error codeExplanation
F3 F2 F1 F0
06 01 00 00 Object access not supported
06 01 00 01 Read access to object which can only be written
06 01 00 02 Write access to object which can only be read
06 02 00 00 Object addressed not listed in object directory
06 04 00 41 Object must not be mapped to PDO
06 04 00 42 Number and length of objects to be transferred exceed PDO length.
06 07 00 10 Protocol error: Unsuitable service parameter length
06 07 00 12 Protocol error: Service parameter length too long
06 07 00 13 Protocol error: Service parameter length not long enough
06 09 00 11 Subindex not available
06 09 00 30 Data exceed object value range
06 09 00 31 Data too high for object
06 09 00 32 Data too low for object
08 00 00 20 Data cannot be transferred / stored.
08 00 00 21 Data cannot be transferred / stored due to local control
08 00 00 22 Data cannot be transferred / stored due to current controller status.
1)
According to DS301, data is returned in case of faulty access to store_parameters / restore_parameters.
2)
May be due to wrong operating mode or if the number of objects to be mapped is written when PDO is activated.
1)
2)
KHB 13.0003-EN 2.0
21
5
CANopen communication
Parameter data transfer (SDO transfer)
Reading parameters (example)
5.2.2Reading parameters (example)
Problem
The operating mode (object 6060_00) of the 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= 05
Command code = 40
Index= 6060
h
h
Subindex= 0z Subindex = 0
Data 1= 00
h
11 bits4bitsUser data
Identifier
601
h
Data
length
05
Command
h
code
40
h
low byte
h
Index
60
h
z Basic identifier for parameter channel = 600
z Node address = 1
z “Read request” command (request to read a
parameter)
z Operating mode index
z Read request only
Index
high byte
60
h
Subindex
00
Data 1Data 2Data 3Data 4
h
00
h
h
–––
Telegram from the drive controller
ValueInfo
Identifier= Basic identifier + node address
=580+1=581
h
Data length= 05
Command code = 43
Index= 6060
h
h
Subindex= 0z Subindex = 0
Data 1= 03
h
11 bits4bitsUser data
Identifier
581
h
Data
length
05
h
Command
code
43
h
Index
low byte
60
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 Operating mode index
z Assumption: The operating mode is set to 03
Index
high byte
60
h
Subindex
00
h
h
(speed).
h
Data 1Data 2Data 3Data 4
03
h
–––
22
KHB 13.0003-EN 2.0
5.2.3Writing parameters (example)
Problem
The operating mode (object 6060_00) of the controller with node address 1 is to be set to
03 (speed) via the SDO (parameter data channel).
Telegram to the drive controller
ValueInfo
Identifier= Basic identifier + node address
=600+1=601
Data length= 05
Command code = 23
Index= 6060
h
h
Subindex= 0z Subindex = 0
Data 1= 03
h
11 bits4bitsUser data
Identifier
601
h
Data
length
05
Command
h
code
23
h
low byte
h
Index
60
CANopen communication
Parameter data transfer (SDO transfer)
Writing parameters (example)
z Basic identifier for parameter channel = 600
z Node address = 1
z “Write request” command (send parameter to the
drive)
z Operating mode index
z Assumption: The operating mode is set to 03
h
Index
high byte
60
h
Subindex
00
Data 1Data 2Data 3Data 4
h
03
h
h
(speed).
h
–––
5
Telegram from the drive controller (acknowledgement for faultless execution)
ValueInfo
Identifier= Basic identifier + node address
=580+1=581
h
Data length= 05
Command code = 60
Index= 6060
h
h
Subindex= 0z Subindex = 0
Data 1= 00
h
11 bits4bitsUser data
Identifier
581
h
Data
length
05
h
Command
code
60
h
Index
low byte
60
h
z Basic identifier for parameter channel = 580
z Node address = 1
z “Write response” command (acknowledgement from
the drive controller)
z Operating mode index
z Acknowledgement only
Index
high byte
60
h
Subindex
00
Data 1Data 2Data 3Data 4
h
00
h
–––
h
KHB 13.0003-EN 2.0
23
5
5.3Process data transfer (PDO transfer)
CANopen communication
Process data transfer (PDO transfer)
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.
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)
24
KHB 13.0003-EN 2.0
5.3.1Telegram structure
The telegram for process data has the following structure:
The drive controller is equipped with three transmit and four 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.
CANopen communication
Process data transfer (PDO transfer)
Telegram structure
5
5.3.3Objects for PDO parameterisation
Three transmit PDOs (TPDO) and four receive PDOs (RPDO) are available in the controller.
The objects of the PDOs are identical.
KHB 13.0003-EN 2.0
25
5
CANopen communication
Process data transfer (PDO transfer)
Objects for PDO parameterisation
1. Transmit PDO
IndexNamePossible settings
LenzeSelectionDescription
1800
h
Transmit PDO1
communication
parameters
0 number_of_entries
1 COB-ID_used_by_
PDO
2 transmission_type FF
80000181
h
h
3 inhibit_time0
4 CMS_priority_
0
group_tpdo1
5 event_timer0
Characteristics
00
h
{1h}05
RECUINT8RO—
h
Maximally supported
subindices.
05
h
80000181
h
{1h}800001FF
Six subindices are supported.
—UINT32 RW—
h
Identifier of transmit PDO1,
+ node address).
(180
h
For processing, bit 31 must
be set (parameterisation of
mapping).
Bit No.Value
0-10X11-bit identifier
11 - 280
The extended identifier
(bit 29) is not supported.
290
Every bit in this range must
be set to ”0”.
300Set to zero.
31
0PDO active
1PDO inactive
0{1}F0h,FEh,FF
h
—
UINT8RW—
Setting the transmission
mode.
0Function is deactivated.
n = 1 ... F0When a value n is entered,
the PDO is accepted every
n-th sync.
n=FECyclic transmission mode.
n=FFEvent-controlled
transmission mode.
0{100 μs}65535 —
UINT16 RW—
Setting the minimum delay
time between two PDOs. The
time can only be changed
when the PDO is not active
(subindex 1, bit 31 = 1).
0{1}255 —
0{1 ms}65535 —
UINT8RW—
UINT16 RW—
Setting the maximum delay
time between two PDOs.
0Function is deactivated.
26
KHB 13.0003-EN 2.0
CANopen communication
Process data transfer (PDO transfer)
Objects for PDO parameterisation
5
IndexNamePossible settings
LenzeSelectionDescription
1A00
Transmit PDO1
h
mapping
parameters
0 number_of_
mapped_objects
1 first_mapped_
object
2 second_mapped_
object
...
4 fourth_mapped_
object
60410010
h
00
04
Characteristics
h
h
{1h}04
{1h}
RECUINT32 RW—
h
Maximally supported
subindices.
Five subindices are
supported.
—UINT32 RW—
COB-ID entry of first mapped
object.
—UINT32 RW—
COB-ID entry of second
mapped object.
—UINT32 RW—
COB-ID entry of fourth
mapped object.
KHB 13.0003-EN 2.0
27
5
CANopen communication
Process data transfer (PDO transfer)
Objects for PDO parameterisation
2. Transmit PDO
IndexNamePossible settings
LenzeSelectionDescription
1801
h
Transmit PDO2
communication
parameters
0 number_of_entries
1 COB-ID_used_by_
PDO
2 transmission_type FF
80000281
h
h
3 inhibit_time0
4 CMS_priority_
0
group_tpdo2
5 event_timer0
Characteristics
00
h
{1h}05
RECUINT8RO—
h
Maximally supported
subindices.
05
h
80000281
h
{1h}800002FF
Six subindices are supported.
—UINT32 RW—
h
Identifier of transmit PDO2,
+ node address).
(280
h
For processing, bit 31 must
be set (parameterisation of
mapping).
Bit No.Value
0-10X11-bit identifier
11 - 280
The extended identifier
(bit 29) is not supported.
290
Every bit in this range must
be set to ”0”.
300Set to zero.
31
0PDO active
1PDO inactive
0{1}F0h,FEh,FF
h
—
UINT8RW—
Setting the transmission
mode.
0Function is deactivated.
n = 1 ... F0When a value n is entered,
the PDO is accepted every
n-th sync.
n=FECyclic transmission mode.
n=FFEvent-controlled
transmission mode.
0{100 μs}65535 —
UINT16 RW—
Setting the minimum delay
time between two PDOs. The
time can only be changed
when the PDO is not active
(subindex 1, bit 31 = 1).
0{1}255 —
0{1 ms}65535 —
UINT8RW—
UINT16 RW—
Setting the maximum delay
time between two PDOs.
0Function is deactivated.
28
KHB 13.0003-EN 2.0
CANopen communication
Process data transfer (PDO transfer)
Objects for PDO parameterisation
5
IndexNamePossible settings
LenzeSelectionDescription
1A01
Transmit PDO2
h
mapping
parameters
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
04
Characteristics
h
h
{1h}04
{1h}
{1h}
RECUINT32 RW—
h
Maximally supported
subindices.
Five subindices are
supported.
—UINT32 RW—
COB-ID entry of first mapped
object.
—UINT32 RW—
COB-ID entry of second
mapped object.
—UINT32 RW—
COB-ID entry of third
mapped object.
—UINT32 RW—
COB-ID entry of fourth
mapped object.
KHB 13.0003-EN 2.0
29
5
CANopen communication
Process data transfer (PDO transfer)
Objects for PDO parameterisation
3. Transmit PDO
IndexNamePossible settings
LenzeSelectionDescription
1802
h
Transmit PDO3
communication
parameters
0 number_of_entries
1 COB-ID_used_by_
PDO
2 transmission_type FF
80000381
h
h
3 inhibit_time0
4 CMS_priority_
0
group_tpdo3
5 event_timer0
Characteristics
00
h
{1h}05
RECUINT8RO—
h
Maximally supported
subindices.
05
h
80000381
h
{1h}800003FF
Six subindices are supported.
—UINT32 RW—
h
Identifier of transmit PDO3,
+ node address).
(380
h
For processing, bit 31 must
be set (parameterisation of
mapping).
Bit No.Value
0-10X11-bit identifier
11 - 280
The extended identifier
(bit 29) is not supported.
290
Every bit in this range must
be set to ”0”.
300Set to zero.
31
0PDO active
1PDO inactive
0{1}F0h,FEh,FF
h
—
UINT8RW—
Setting the transmission
mode.
0Function is deactivated.
n = 1 ... F0When a value n is entered,
the PDO is accepted every
n-th sync.
n=FECyclic transmission mode.
n=FFEvent-controlled
transmission mode.
0{100 μs}65535 —
UINT16 RW—
Setting the minimum delay
time between two PDOs. The
time can only be changed
when the PDO is not active
(subindex 1, bit 31 = 1).
0{1}255 —
0{1 ms}65535 —
UINT8RW—
UINT16 RW—
Setting the maximum delay
time between two PDOs.
0Function is deactivated.
30
KHB 13.0003-EN 2.0
CANopen communication
Process data transfer (PDO transfer)
Objects for PDO parameterisation
5
IndexNamePossible settings
LenzeSelectionDescription
1A02
Transmit PDO3
h
mapping
parameters
0 number_of_
mapped_objects
1 first_mapped_
object
2 second_mapped_
object
3 third_mapped_
object
4 fourth_mapped_
object
60410010
60640020
h
h
00
04
Characteristics
h
h
{1h}04
{1h}
{1h}
RECUINT32 RW—
h
Maximally supported
subindices.
Five subindices are
supported.
—UINT32 RW—
COB-ID entry of first mapped
object.
—UINT32 RW—
COB-ID entry of second
mapped object.
—UINT32 RW—
COB-ID entry of third
mapped object.
—UINT32 RW—
COB-ID entry of fourth
mapped object.
KHB 13.0003-EN 2.0
31
5
CANopen communication
Process data transfer (PDO transfer)
Objects for PDO parameterisation
1. Receive PDO
IndexNamePossible settings
LenzeSelectionDescription
1400
Receive PDO1
h
communication
parameters
0 number_of_entries
1 COB-ID_used_by_
PDO
2 transmission_type FF
80000201
h
h
Characteristics
00
h
02
h
80000201
Bit No.Value
0-10X11-bit identifier
11 - 280
290
300Set to zero.
31
0{1}F0h,FEh,FF
0Function is deactivated.
n = 1 ... F0When a value n is entered,
n=FECyclic transmission mode.
n=FFEvent-controlled
h
0PDO active
1PDO inactive
{1h}02
{1h}800002FF
RECUINT8RO—
h
Maximally supported
subindices.
Three subindices are
supported.
—UINT32 RW—
h
Identifier of receive PDO1
+ node address)
(200
h
For processing, bit 31 must
be set (parameterisation of
mapping).
The extended identifier
(bit 29) is not supported.
Every bit in this range must
be set to ”0”.
UINT8RW—
—
h
Setting the transmission
mode.
the PDO is accepted every
n-th sync.
transmission mode.
32
KHB 13.0003-EN 2.0
CANopen communication
Process data transfer (PDO transfer)
Objects for PDO parameterisation
5
IndexNamePossible settings
LenzeSelectionDescription
1600
Receive PDO1
h
mapping
parameters
0 number_of_
mapped_objects
1 first_mapped_
object
2 second_mapped_
object
...
4 fourth_mapped_
object
60400010
h
00
04
Characteristics
h
h
{1h}04
{1h}
RECUINT32 RW—
h
Maximally supported
subindices.
Five subindices are
supported.
—UINT32 RW—
COB-ID entry of first mapped
object.
—UINT32 RW—
COB-ID entry of second
mapped object.
—UINT32 RW—
COB-ID entry of fourth
mapped object.
KHB 13.0003-EN 2.0
33
5
CANopen communication
Process data transfer (PDO transfer)
Objects for PDO parameterisation
2. Receive PDO
IndexNamePossible settings
LenzeSelectionDescription
1401
Receive PDO2
h
communication
parameters
0 number_of_entries
1 COB-ID_used_by_
PDO
2 transmission_type FF
80000301
h
h
Characteristics
00
h
02
h
80000301
Bit No.Value
0-10X11-bit identifier
11 - 280
290
300Set to zero.
31
0{1}F0h,FEh,FF
0Function is deactivated.
n = 1 ... F0When a value n is entered,
n=FECyclic transmission mode.
n=FFEvent-controlled
h
0PDO active
1PDO inactive
{1h}02
{1h}800003FF
RECUINT8RO—
h
Maximally supported
subindices.
Three subindices are
supported.
—UINT32 RW—
h
Identifier of receive PDO2
+ node address)
(300
h
For processing, bit 31 must
be set (parameterisation of
mapping).
The extended identifier
(bit 29) is not supported.
Every bit in this range must
be set to ”0”.
UINT8RW—
—
h
Setting the transmission
mode.
the PDO is accepted every
n-th sync.
transmission mode.
34
KHB 13.0003-EN 2.0
CANopen communication
Process data transfer (PDO transfer)
Objects for PDO parameterisation
5
IndexNamePossible settings
LenzeSelectionDescription
1601
Receive PDO2
h
mapping
parameters
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
04
Characteristics
h
h
{1h}04
{1h}
{1h}
RECUINT32 RW—
h
Maximally supported
subindices.
Five subindices are
supported.
—UINT32 RW—
COB-ID entry of first mapped
object.
—UINT32 RW—
COB-ID entry of second
mapped object.
—UINT32 RW—
COB-ID entry of third
mapped object.
—UINT32 RW—
COB-ID entry of fourth
mapped object.
KHB 13.0003-EN 2.0
35
5
CANopen communication
Process data transfer (PDO transfer)
Objects for PDO parameterisation
3. Receive PDO
IndexNamePossible settings
LenzeSelectionDescription
1402
Receive PDO3
h
communication
parameters
0 number_of_entries
1 COB-ID_used_by_
PDO
2 transmission_type FF
80000401
h
h
Characteristics
00
h
02
h
80000401
Bit No.Value
0-10X11-bit identifier
11 - 280
290
300Set to zero.
31
0{1}F0h,FEh,FF
0Function is deactivated.
n = 1 ... F0When a value n is entered,
n=FECyclic transmission mode.
n=FFEvent-controlled
h
0PDO active
1PDO inactive
{1h}02
{1h}800004FF
RECUINT8RO—
h
Maximally supported
subindices.
Three subindices are
supported.
—UINT32 RW—
h
Identifier of receive PDO3
+ node address)
(400
h
For processing, bit 31 must
be set (parameterisation of
mapping).
The extended identifier
(bit 29) is not supported.
Every bit in this range must
be set to ”0”.
UINT8RW—
—
h
Setting the transmission
mode.
the PDO is accepted every
n-th sync.
transmission mode.
36
KHB 13.0003-EN 2.0
CANopen communication
Process data transfer (PDO transfer)
Objects for PDO parameterisation
5
IndexNamePossible settings
LenzeSelectionDescription
1602
Receive PDO3
h
mapping
parameters
0 number_of_
mapped_objects
1 first_mapped_
object
2 second_mapped_
object
3 third_mapped_
object
4 fourth_mapped_
object
60400010
607A0020
h
h
00
04
Characteristics
h
h
{1h}04
{1h}
{1h}
RECUINT32 RW—
h
Maximally supported
subindices.
Five subindices are
supported.
—UINT32 RW—
COB-ID entry of first mapped
object.
—UINT32 RW—
COB-ID entry of second
mapped object.
—UINT32 RW—
COB-ID entry of third
mapped object.
—UINT32 RW—
COB-ID entry of fourth
mapped object.
KHB 13.0003-EN 2.0
37
5
CANopen communication
Process data transfer (PDO transfer)
Objects for PDO parameterisation
4. Receive PDO
IndexNamePossible settings
LenzeSelectionDescription
1403
Receive PDO4
h
communication
parameters
0 number_of_entries
1 COB-ID_used_by_
PDO
2 transmission_type FF
80000501
h
h
Characteristics
00
h
02
h
80000501
Bit No.Value
0-10X11-bit identifier
11 - 280
290
300Set to zero.
31
0{1}F0h,FEh,FF
0Function is deactivated.
n = 1 ... F0When a value n is entered,
n=FECyclic transmission mode.
n=FFEvent-controlled
h
0PDO active
1PDO inactive
{1h}02
{1h}800004FF
RECUINT8RO—
h
Maximally supported
subindices.
Three subindices are
supported.
—UINT32 RW—
h
Identifier of receive PDO4
+ node address)
(500
h
For processing, bit 31 must
be set (parameterisation of
mapping).
The extended identifier
(bit 29) is not supported.
Every bit in this range must
be set to ”0”.
UINT8RW—
—
h
Setting the transmission
mode.
the PDO is accepted every
n-th sync.
transmission mode.
38
KHB 13.0003-EN 2.0
CANopen communication
Process data transfer (PDO transfer)
Objects for PDO parameterisation
5
IndexNamePossible settings
LenzeSelectionDescription
1603
Receive PDO4
h
mapping
parameters
0 number_of_
mapped_objects
1 first_mapped_
object
2 second_mapped_
object
3 third_mapped_
object
4 fourth_mapped_
object
60400010
60FF0020
h
h
00
04
Characteristics
h
h
{1h}04
{1h}
{1h}
RECUINT32 RW—
h
Maximally supported
subindices.
Five subindices are
supported.
—UINT32 RW—
COB-ID entry of first mapped
object.
—UINT32 RW—
COB-ID entry of second
mapped object.
—UINT32 RW—
COB-ID entry of third
mapped object.
—UINT32 RW—
COB-ID entry of fourth
mapped object.
KHB 13.0003-EN 2.0
39
5
CANopen communication
Process data transfer (PDO transfer)
Description of the objects
5.3.4Description of the objects
Identifier of the PDO (COB_ID_used_by_PDO)
Enter the identifier to be used to transmit or receive the PDO in the object
COB_ID-used_by_PDO. Ifbit 31 is set, the PDO isdeactivated. This is the default setting for
all PDOs.
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
ƒ Write the read COB ID + 80000000
ƒ Write the new COB ID + 80000000
ƒ 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 indicates 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 controller. The time interval is
determined by the event_time object.
RPDOs, however, are only evaluated immediately after the receipt.
Event-controlled with cyclic overlay
The TPDO is sent, if, at least 1 bit of the PDO data has changed or if the time of the
event_timer object is over. When 0 ms is selected, the timer is deactivated and a
PDO is only sent when a new event occurs.
inhibit_time can be u sed to determine the minimum time interval in 100 μssteps
between the transmission of two PDOs.
TPDO
RPDO
TPDO
(RPDO)
TPDO
40
The use of all other values is not permitted.
Number of objects to be transferred (number_of_mapped_objects)
This object indicates how many objects are to be mapped intothe 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).
KHB 13.0003-EN 2.0
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 object - 8, 16 or 32 bits (hex)
In order to simplify the mapping, the following procedure is given:
1. The number o f 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).
5
3. The number of the mapped objects is set to a value between 1 ... 4. The length of all
these objects must not exceed 64 bits.
KHB 13.0003-EN 2.0
41
5
CANopen communication
Process data transfer (PDO transfer)
Example of a process data telegram
5.3.5Example of a process data telegram
The following objects are to be transferred together in a PDO:
ƒ Status word, index 6041_00
ƒ Modes_of_operation_display, index 6061_00
The first transmit PDO (TPDO 1) is to be used. 187
h
(operating mode)
h
is to be used as PDO identifier.
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 each:
Index = 6041h, subindex = 00h,length=10h(UINT16)first_mapped_object60410010
Index = 6061h, subindex = 00h,length=08h(INT8)second_mapped_object60610008
3. Parameterise the number of o bjects.
DescriptionNameValue
The PDO has to contain 2 objectsnumber_of_mapped_objects2
h
4. Parameterise the transmission mode.
DescriptionNameValue
The PDO is to be sent when data is changed.transmission_typeFF
The PDO is to be sent not more often than every 10 ms
(100 × 100 μs).
inhibit_time64
h
h
h
h
5. Parameterise the identifier.
DescriptionNameValue
The PDO has 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_pdo80000181
Write new identifier:cob_id_used_by_pdo80000187
Activate PDO by deleting bit 31:cob_id_used_by_pdo00000187
Note!
The parameterisation of the PDO can only be changed if the network state
(NMT) is not operational.
h
h
h
h
42
KHB 13.0003-EN 2.0
5.3.6Activation 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:
It is possible to synchronise several controllers of a plant with each other. For this, the
master usually periodically sends synchronisation messages. All controllers connected
receive these messages and use them for PDO processing.
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.
PDO1-TXPDO1-RX
1.
Fig. 3Synchronisation 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.
44
KHB 13.0003-EN 2.0
5.4.3Description of the objects
CANopen communication
Sync telegram
Description of the objects
5
IndexNamePossible settings
LenzeSelectionDescription
1005h0COB-ID_sync_
message
1006h0 communication_
cycle_period
1007h0 synchronous_
window_length
00000080
0
0
h
Characteristics
00000080
Bit No.Value
0-10X11-bit identifier.
11 - 280
290
30
31XAs you choose
0No synchronisation message
0Function is deactivated.
h
0Controller does not generate
1Controller generates sync
{1h}80000080
{1 μs}
{1 μs}
VARUINT32 RW—
h
The identifier of the
synchronisation object is 80
Determining whether the
controller is to receive or
send synchronisation
messages.
The extended identifier
(bit 29) is not supported.
Every bit in this range must
be set to ”0”.
sync telegrams.
telegrams.
VARUINT32 RO—
Setting the cycle time of
synchronisation messages.
sending.
VARUINT32 RO—
Setting the time slot in
which the sync telegrams are
sent.
h.
KHB 13.0003-EN 2.0
45
5
CANopen communication
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
46
KHB 13.0003-EN 2.0
5.5.2Telegram 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)
KHB 13.0003-EN 2.0
47
5
CANopen communication
Network management (NMT)
Telegram structure
State transitions
(1)
Initialisation
(2)
(14)
Pre-Operational
(7)
(4)
(13)
(3)
(12)
Operational
(5)
(6)
Stopped
(8)
Fig. 4Network management state t ransitions
(11)
(10)
(9)
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.
48
KHB 13.0003-EN 2.0
5.6Emergency telegram
The controller monitors the functioning of its main components, e. g. voltage supply and
power stage. In addition, the motor (temperature, phase-angle encoder) and the limit
switches are checked continuously. Incorrect parameter settings can also lead to error
messages (division by zero, etc.).
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
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 heartbeat telegram is not acknowledged when the heartbeat method is
used, an error can occur (depending on the error management setting).
The consumers monitor if the heartbeat message is received within the ”heartbeat
consumer” time. The time must be longer than the corresponding ”heartbeat producer”
time.
Heartbeat producer
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
54
KHB 13.0003-EN 2.0
5.7.2Description of the objects
CANopen communication
Heartbeat telegram
Description of the objects
5
IndexNamePossible settings
LenzeSelectionDescription
1016
1017h0 producer_
Consumer_
h
heartbeat_time
0 number_of_entries
1 consumer_
heartbeat_time
heartbeat_time
0
Characteristics
01
h
01
h
0{1 ms}65535
Bit No.
0-15Heartbeat time
16 - 23Node address of the
24 - 31Reserved, value 0.
0{1 ms}65536
0Function is deactivated.
{1h}7F
VARUINT8RO—
h
Maximally supported
subindices.
1 subindex is supported.
VARUINT32 RW—
Setting the time in which the
controller expects a message
from the master. The time
must be longer than the
corresponding index
producer_heartbeat_time.
”0” means that the function
is deactivated.
controller.
VARUINT16 RW—
Time between two heartbeat
telegrams.
If the controller starts with a
time unequal zero, the
boot-up telegram is the first
heartbeat.
KHB 13.0003-EN 2.0
55
5
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.
56
KHB 13.0003-EN 2.0
5.9Node Guarding
CANopen communication
Node Guarding
5
NMT-Master
request
confirm
Node
Guard
time
Node
Time
Life
Node Guarding EventLife Guarding Event
Fig. 6Node guarding telegram
1)
Controller
sController status
tToggle bit
request
confirm
indication
COB-ID = 700 + Node-ID
Remote transmit request
0
t
1
s
6…0
7
COB-ID = 700 + Node-ID
Remote transmit request
0
t
1
s
6…0
7
NMT-Slave
indication
response
indication
response
indication
1)
931m_051
Description
The node guarding telegram monitors the connection between master and slave.
Under index 100C
”Guard time”, you can enter a time, under index 100Dh”Life time
h
factor”, you can enter a factor. The multiplication of both indices results in the monitoring
time within which the master must send a node guarding telegram to the slave. If one of
the two indices is set to zero, the monitoring time is also zero, and thus deactivated. The
slave sends a telegram with its current status to the master.
With event-controlled process data transfer, node guarding ensures the cyclic monitoring
of the controller.
ƒ The master starts node guarding by sending the node guarding telegram.
ƒ Unless the slave (controller) receives a telegram within the monitoring time, the
node guarding event is activated. The controller switches to the status set under
6007
.
h
ƒ A reset is carried out by a status change to Operational.
KHB 13.0003-EN 2.0
57
5
CANopen communication
Node Guarding
Description of the objects
5.9.1Description of the objects
IndexNamePossible settings
LenzeSelectionDescription
100Ch0 guard_time0
100Dh0 life_time_factor0
6007h0 abort_connection_
option_code
0
Characteristics
0{1 ms}65535
0Function is deactivated.
0{1}255
0Function is deactivated.
0{1}3
0No action
1Malfunction: Control word = 0
2Device control command: Disable
voltage
3Device control command: Quick stop
VARUINT16 RW—
Setting the cyclic monitoring
time in which the master
queries the status of the
slaves.
VARUINT8RW—
The maximum time between
two queries of the master
results from the product of
guard_time and
life_time_factor.
VARINT16RWMAP
Determining the event to be
activated when the master
fails.
58
KHB 13.0003-EN 2.0
6Commissioning
6.1Activation of CANopen
The controllers are default set to CAN bus communication.
Commissioning
Activation of CANopen
6
931m_100
In the CAN Bus field, three parameters must be set:
ƒ Node ID
For an unambiguous identification in the network, a node address must be assigned to
eachnode.Each node address may onlybeassignedonce in thenetwork.Thenodeaddress
is used to address the device.
ƒ Baud rate
This parameter determines the baud rate in kBaud or kbits/s that is used on the CAN bus.
Please observe that high baud rates require a low maximum cable length.
ƒ Bus terminator
If thecontroller is the lastnode ina bus system,the terminating resistormust beactivated.
When the physical connection to the master has been established, programming can be
started.
Note!
The controllers can either be parameterised and controlled via the serial
interface using the »fluxx« software or via the CAN bus.
In case of a CAN bus parameterisation and operation, the »fluxx« software
may be maximally operated in the operating mode ”Online Level 1”. If a higher
operating mode is selected, the »fluxx« software will have the parameter
change rights. In this case, the operating status cannot be changed via the
CAN.
KHB 13.0003-EN 2.0
59
6
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 setp oint
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
60
KHB 13.0003-EN 2.0
Commissioning
Speed control
Parameterising of a process data object (TPDO and RPDO)
6
No. DescriptionIdentifier Control
1Network management (NMT)
For parameterising the PDO, the
network management is set to
Pre-operational (80
2Deactivating the TPDO
The PDO is deactivated by
setting bit 31.
3Deleting the number of objects
For changing the object
mapping, the number of objects
(number_of_mapped_objects)
must be set to zero.
4Parameterising the first object
to be mapped
Here, the index of the object to
be mapped 1A00_01
mapped_object) and the length
of the corresponding variable
type must be indicated. The first
object to be mapped is the
actual speed (index 606C_00
withalengthof32bits(20
5Parameterising the second
object to be mapped
The second object to be mapped
(second_mapped_object) is the
status word (index 6041_00
withalengthof16bits(10
6Defining the number of objects
In this example, 2 mapped
objects (actual speed and status
word) are to be transmitted
(number_of_mapped_objects).
7Parameterising the transmission
mode
The PDO transmission is
event-controlled and depends
on the transmission cycle time,
i.e. maximally every 10 ms.
(Entry FF
type).
8Defining the transmission cycle
time
The transmission cycle time
(inhibit_time) is to be set to 10
ms (100 × 100 μs).
9Activating the TPDO
The TPDO is activated by
resetting bit 31.
10 Network management (NMT)
For parameterising the PDO, the
network management is set to
Operational (01
in the transmission_
h
Tab. 2Example parameterisation of a transmit PDO
).
h
(first_
h
h
).
h
)
h
).
h
).
h
0028000000000000000
60182300180181010080
60152F001A0000000000
601823001A0120006C60
)
601823001A0210004160
60152F001A0002000000
60152F001802FF000000
60162B00180364000000
60182300180181010000
0020100000000000000
field
Data
length
Command
code
IndexSubindex Data 1 Data 2 Data 3 Data 4
Low
High
byte
byte
KHB 13.0003-EN 2.0
61
6
Commissioning
Speed control
Parameterising of a process data object (TPDO and RPDO)
No. DescriptionIdentifier Control
1Network management (NMT)
For parameterising the PDO, the
network management is set to
Pre-operational (80
2Deactivating the RPDO
The RPDO is deactivated by
setting bit 31.
3Deleting the number of objects
For changing the object
mapping, the number of objects
(number_of_mapped_objects)
must be set to zero.
4Parameterising the first object
to be mapped
Here, the index of the object to
be mapped (first_mapped_
object) and the length of the
corresponding variable type
must be indicated. The first
object to be mapped is the
setpoint speed (index 60FF_00
withalengthof32bits(20
5Defining the number of objects
In this example, one mapped
object (setpoint speed) is to be
transmitted (number_of_
mapped_objects).
6Parameterising the transmission
mode
The PDO transmission is
event-controlled and depends
on the transmission cycle time
(entry FF
type).
7Activating the RPDO
The PDO is activated by
resetting bit 31.
8Network management (NMT)
For parameterising the PDO, the
network management is set to
Operational (01
in the transmission_
h
Tab. 3Example parameterisation of a receive PDO
).
h
).
h
).
h
0028000000000000000
60182300140101020080
60152F00160000000000
6018230016012000FF60
)
h
60152F00160001000000
60152F001402FF000000
60182300140101020000
0020100000000000000
field
Data
length
Command
code
IndexSubindex Data 1 Data 2 Data 3 Data 4
Low
High
byte
byte
62
KHB 13.0003-EN 2.0
6.2.2Parameterising of the speed control
Before starting a control mode, the controller parameters often have to be adapted to
ensure a dynamic and adequately damped operating behaviour. Before this, the controller
parameters have to be selected depending on the system and the corresponding process.
In the following,speedcontrol is to beselected andthen parameterised by meansof ashort
example. In addition to the control parameters (K
operation (maximum speed, maximum acceleration, maximum deceleration and
maximum current) are determined.
Commissioning
Speed control
Parameterising of the speed control
), the limit values required for safe
p,Tn
6
No. DescriptionIdentifier Control
1Defining the operating mode
Speed control (03) is used as
operating mode (modes_of_
operation).
2Defining the maximum current
For limiting the current (max_
current) and the maximum
torque, the current is limited to
1.5 times the rated motor
current (1.5 times equals 1500
or 05DC
3Speed controller setting (Kp)
A gain (velocity_control_gain) of
K
4Speed controller setting (Tn)
An adjustment time (velocity_
control_time) of T
(equals 4E20
5Differential component setting
(TV)
The differential time constant of
the speed controller (velocity_
control_differential_time) is set
to 8000 μs (equals 1F40
6Defining the maximum
acceleration
The maximum acceleration
(profile_acceleration) is
20000 rev. × 4096 incr./rev. × 1/
min/s (equals 4E20000
7Defining the maximum
deceleration
The maximum deceleration
(profile_deceleration) is
20000 rev. × 4096 incr./rev. × 1/
min/s (equals 4E20000
).
h
=2(equals200h) is selected.
p
= 20000 μs
n
) is selected.
h
).
h
).
h
).
h
Tab. 4Speed controller parameterisation
60152F60600003000000
60162B736000DC050000
60162BF9600100020000
60162BF96002204E0000
60162BF96003401F0000
6018238360000000E204
6018238460000000E204
field
Data
length
Command
code
IndexSubindex Data 1 Data 2 Data 3 Data 4
Low
High
byte
byte
KHB 13.0003-EN 2.0
63
6
Commissioning
Speed control
Running through the state machine
6.2.3Running through the state machine
After having defined all control parameters required, the drive can be commissioned via
the status machine. First, aspeed setpoint isdefined andsent once via SDO access andonce
via the RPDO. Then, the status machine is traversed.
No. DescriptionIdentifier Control
length
1Selecting the speed setpoint via
SDO access
The speed setpoint (target_
velocity) is set to 1000 rpm.
2Selecting the speed setpoint via
RPDO
The speed setpoint is set to
1000 rpm via the RPDO. For
speed selection, you can either
use the method described under
1or2.
3Status check (reading)60144041600000000000
4Control word: Error
acknowledgement
If an error has occurred, it can be
reset with the fault reset
command after the cause of the
error has been removed. If no
error has occurred, you can
directly continue with 6.
5Status check (reading)60144041600000000000
6Control word: Shut down
With the shut down command,
the status is changed to readyto switch on.
7Status check (reading)60144041600000000000
8Control word: Switch on
With the switch on command,
the status is changed to
switched on.
9Status check (reading)60144041600000000000
10 Control word: Enable operation
With the enable operation
command, the status is changed
to operation enable.
Now, the motor is energised and
the setpoint is approached.
11 Status check (reading)60144041600000000000
12 Control operation
During the control operation,
further changes (e.g. setpoint)
can be made.
13 Control word: Disable voltage
With this command, the drive is
switched off and set to the
status switch on disabled.
Tab. 5Commissioning the speed control via the status machine
601823FF6000E8030000
2014E803000000000000
60162B40600008800000
60162B40600006800000
60162B40600007800000
60162B4060000F800000
——————————
60162B40600000800000
field
Data
Command
code
IndexSubindex Data 1 Data 2 Data 3 Data 4
Low
High
byte
byte
64
KHB 13.0003-EN 2.0
Commissioning
Speed control
Running through the state machine
6
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 80h 00h 00h
601h 607h 40h 60h 00h 07h 80h 00h 00h
601h 60Fh 40h 60h 00h 0Fh 80h 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 80h 00h 00h
931m_052
KHB 13.0003-EN 2.0
65
6
Commissioning
Position control
Parameterising of the homing run
6.3Position control
The following example describes the parameterisation and execution of homing. A
controller with node address 1 is used as communication device. In addition, the
commissioning of a position control will be explained.
Select the settings for the lower-level speed control as described in chapter 6.2.2. The
following explanation is based on these controller settings.
6.3.1Parameterising of the homing run
Before homing is started, the homing method, homing speed and accelerations have to be
defined. After this, the home position can be approached.
No. DescriptionIdentifier Control
1Selecting the operating mode
Homing
Homing (06) is used as
operating mode (modes_of_
operation).
2Defining the homing method
Traversing to the negative limit
switch under consideration of
the zero pulse (value 1) is
selected as homing method.
Alternative setting: current
position (value 35).
3High homing speed setting
The search speed used while
searching for the limit switch
(speed_during_search_for_swit
ch) is set to 100 rpm.
4Low homing speed setting
The search speed used while
searching for the zero pulse
(speed_during_search_for_zero)
is set to 50 rpm.
Tab. 6Parameterisation 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 status can be seen from the status word. Bit 12indicates whether homing has
been completed (homing_attained) or is still being carried out.
Unlike the other operating modes, this operating mode requires another step after the
status change to operation enabled when traversing the status machine. Then, homing is
started through bit 4 of the control word.
66
KHB 13.0003-EN 2.0
Commissioning
Position control
Parameterising of the homing run
6
No. DescriptionIdentifier Control
1Status check (reading)
Every status change must be
carried out depending on the
basic status. After a status
change, you have to wait until
the status change is indicated in
the status word.
2Control word: Shut down
With the shut down command,
the status is changed to
Ready_To_Switch_On.
3Status check (reading)
(for explanation see 1)
4Control word: Switch on
With the switch on command,
the status is changed to
Switched_On.
5Status check (reading)
(for explanation see 1)
6Control word: Enable operation
With the enable operation
command, the status is changed
to Operation_Enable.
Now, the motor is energised.
But, homing is not started yet.
7Status check (reading)
(for explanation see 1)
8Control word: Enable operation
and homing start
With the enable operation and
homing start command, homing
is started.
9Status check (reading)
Thehomepositionis
approached. Homing is
completed when bit 12 (homing
attained) is set in the status
word.
10 Control word: Disable voltage
With this command, the drive is
switched off and set to the
status Switch_On_Disabled.
Tab. 7Execution of homing by means of the status machine
60144041600000000000
60162B40600006800000
60144041600000000000
60162B40600007800000
60144041600000000000
60162B4060000F800000
60144041600000000000
60162B4060001F800000
60144041600000000000
60162B40600000800000
field
Data
length
Command
code
IndexSubindex Data 1 Data 2 Data 3 Data 4
Low
High
byte
byte
KHB 13.0003-EN 2.0
67
6
Commissioning
Position control
Running through the state machine
6.3.2Running through the state machine
After homing, thepos ition control canbe started. Inadditionto the definitionof thetarget
position, the required control accuracy and the ramps and speed for the profile generator
must be defined.
No. DescriptionIdentifier Control
1Defining the operating mode
Position control (01) is used as
operating mode (modes_of_
operation).
2Defining the profile speed
With the profile velocity,you
determine the speed at which
the drive traverses during
positioning (v = 100 rpm).
3Profile acceleration setting
The profile_acceleration object
is used to define the
acceleration.
4Profile deceleration setting
The profile_deceleration object
is used to define the
deceleration.
5Position window setting
In the position window
(position_error_tolerance_wind
ow), you can define a range in
which the controller does not
intervene.
One revolution corresponds to
an entry of 65536. 1/100 rev.
(655) is used as entry.
6Defining the position window
The target position
(target_position) is reached
when the actual position of the
position controller(position_
actual_value) is within a
window (position_window)
around the target position.
1/100 rev. is selected as value.
7Position controller setting (Kp)
A gain (position_control_gain)
= 0.02 (equals 0148h)is
of K
p
selected.
Tab. 8Parameterisation of the position control
60152F60600001000000
60182381600064000000
60182383600088130000
60182384600088130000
601823FB60058F020000
6018236760008F020000
60162BFB600148010000
field
Data
length
Command
code
IndexSubindex Data 1 Data 2 Data 3 Data 4
Low
High
byte
byte
68
KHB 13.0003-EN 2.0
Commissioning
Position control
Running through the state machine
As in allother operatingmodes,a position change ismade bychangingthe statusmachine.
yet.
10 Status check (reading)60144041600000000000
11 Control word: Enable operation
and new setpoint
With the enable operation and
new setpoint command, the
status is changed to
Operation_Enable.Now,the
motor is energised and the
setpoint is approached.
12 Status check (reading)60144041600000000000
13 Control operation
During operation, further
changes (e.g. setpoint) can be
made.
14 Control word: Disable voltage
With this command, the drive is
switched off and set to the
status Switch_On_Disabled.
Tab. 9Commissioning the position control via the status machine
6018237A600000100000
60162B40600008800000
60162B40600006800000
60162B40600007800000
60162B4060000F800000
60162B4060001F800000
——————————
60162B40600000800000
field
Data
Command
code
IndexSubindex Data 1 Data 2 Data 3 Data 4
Low
High
byte
byte
KHB 13.0003-EN 2.0
69
6
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 80h 00h 00h
601h 607h 40h 60h 00h 07h 80h 00h 00h
601h 60Fh 40h 60h 00h 0Fh 80h 00h 00h
601h 60Fh 40h 60h 00h 1Fh 80h 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 80h 00h 00h
931m_053
70
KHB 13.0003-EN 2.0
7Parameter setting
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 controller has three parameter sets:
ƒ Current parameter set
The current parameter set is stored in the volatile controller memory (RAM). It can be
written and read as you like by using the »fluxx« parameterisation program or via the
CAN bus. When the controller is switched on, the application parameter set is copied
to the current parameter set.
Parameter setting
Loading and saving of parameter sets
Overview
7
ƒ Default parameter set
The default controller parameter set is default set and cannot be changed. By writing
to the CANopen object 1011_01h (restore_all_default_parameters), the defaultparameter set can be copied to the current parameter set. Copying is only possible
when the power stage is switched off.
ƒ Application parameter set
The current parameter set can be saved in the non-volatile flash memory. Saving is
activated by a write access to the CANopen object 1010_01h (save_all_parameters).
When the controller is switched on, the application parameter set is automatically
copied to the current parameter set.
The following chart shows the connections between the individual parameter sets.
of the
Application
parameter set
CANopen-
object 1010
Default
parameter set
CANopen
object 1011
Switch-on
controller
Current
parameter set
KHB 13.0003-EN 2.0
931e_412
Fig. 9Connections between the p arameter sets
71
7
Parameter setting
Loading and saving of parameter sets
Overview
You can choose between two different parameter set management variants:
1. The parameter set is created by using the »fluxx« parameterisation program and
transferred to the individual controllers. In this case, you only have to set the objects
which can only be accessed via CANopen via the CAN bus.
The disadvantage of this variant is that the parameterisation software is always
required whena newcontroller is commissioned or incase of repairs (whenexchanging
the controller). Therefore, this variant is only useful when only one controller is used.
2. This variant is based on the fact that in most application-specific parameter sets
only a few parameters differ from the default parameter set. Therefore, the currentparameter set can be recreated via the CAN bus after every switch on of the system.
For this, the higher-level control loads the default parameter set (call of CANopen
object 1011_01h restore_all_default_parameters) first. After this, only the objects
that are different are transferred. This takes less than 1 second per controller. Of
advantage is that this method can also be used for controllers which have not been
parameterised yet so that the commissioning of new systems and exchange of
individual controllers is easy without requiring the parameterisation software.
Note!
We recommend to use variant 2. Please observe that it is not possible to set all
parameters via the CAN. If other parameters have to be set, the first variant
must be used.
Stop!
Uncontrolled motor rotation
A wrong parameter set can lead to an uncontrolled rotation of the motor.
Possible consequences:
ƒ This can cause damage to material.
Protective measures:
ƒ Before switching on the power stage, please ensure that the controller really
contains the required parameter set.
72
KHB 13.0003-EN 2.0
7.1.2Description of the objects
Parameter setting
Loading and saving of parameter sets
Description of the objects
7
IndexNamePossible settings
LenzeSelectionDescription
1010
1011
Store_parameters
h
0 largest_supported_
subindex
1 save_all_
parameters
Restore_default_
h
parameters
1 restore_all_default_
parameters
00000001h00000000
00000001h00000000
00000000
65766173
64616F6C
00000001
Characteristics
VARUINT8 RO—
h
h
h
h
h
h
{1h}65766173
SaveDefault parameter set is
{1h}64616F6C
LoadLoading the default
—UINT32 RW—
h
Accepting the default
parameter set in the
application parameter set.
Default parameter set is not
accepted.
accepted.
VARUINT32 RW—
h
Loading the default
parameter set, only possible
when the p ower stage is
deactivated.
The CAN communication
parameters (node No., baud
rate and operating mode)
remain unchanged.
parameter set.
Read access: Reset to default
values.
KHB 13.0003-EN 2.0
73
7
Parameter setting
Conversion factors (factor group)
Overview
7.2Conversion factors (factor group)
7.2.1Overview
Controllers are used in various app lications, e.g. as direct drives, with downstream
gearbox, for line drives, etc.
To make parameter setting for all these applications easy, the factor group can be used to
parameterise thecontroller in a way that allows the user to enter and read all values, such
as, for instance, the speed, directly in the required units on the drive.
The controller uses the factor group to convert the entries into its internal units. I.e. the
factor group is used to define the mathematical relation (gearbox ratio and polarity)
between the physical units and the internal controller units.
7.2.2Description of the objects
IndexNamePossible settings
LenzeSelectionDescription
6091
607E
h
Gear_ratio
h
0 number_of_
supported_entries
1 motor_revolutions11{1}1000
2 shaft_revolutions11{1}1000
0 polarity00
h
00
h
02
h
00
h
Bit 640
Bit 780
Characteristics
{1h}02
{04h}40h,80h,C0
0multiply by 1position_polarity-flag
h
1multiply by -1
0multiply by 1velocity_polarity-flag
h
1multiply by -1
VARUINT8 RO—
h
Maximally supported
subindices.
Two subindices are
supported.
VARINT32RW—
Gearbox ratio
VARINT32RW—
Gearbox ratio
VARUINT8 RW—
h
Setting the sign of the
position and velocity values.
The direction of rotation can
be inverted by changing the
sign.
Often, it is useful to set both
flags to the same value.
Note!
If both the direction of rotation of the position controller and the direction of
rotation of the lower-level speed controller are inverted with a position
control, the signal will not be inverted due to the double inversion (first in the
position, then in the speed controller).
74
KHB 13.0003-EN 2.0
7.3Power stage parameters
7.3.1Overview
The rectified mains voltage is smoothed by the DC-bus capacitors. The motor is fed from
the DC bus via the switchable semiconductor components. The power stage includes
several safety functions some of which can be parameterised:
ƒ Overvoltage / undervoltage monitoring
ƒ Overcurrent monitoring
ƒ Power stage monitoring
The implementation of the safety functions requires some basic information on the motor
to be controlled. The objects designed for this, are described below:
The power stage can be activated in different ways:
ƒ Power stage activation via the CAN bus (state machine)
Parameter setting
Power stage pa rameters
Overview
7
ƒ Power stage activation via the »fluxx« software
ƒ Power stage activation via the digital input (start/stop)
7.3.2Description of the objects
IndexNamePossible settings
LenzeSelectionDescription
6079
0 DC_link_circuit_
h
voltage
{1 mV}
Characteristics
VARUINT32 ROMAP
Reading the DC-bus voltage.
KHB 13.0003-EN 2.0
75
7
7.4Motor adaptation
7.4.1Overview
Parameter setting
Motor adaptation
Overview
Stop!
Uncontrolled motor rotation
When the phase sequence in the motor or phase-angle encoder cable is
reversed, a direct feedback may occur and the motor speed cannot be
controlled.
Possible consequences:
ƒ This can cause damage to material.
Protective measures:
ƒ Before switching on the motor, ensure that the phase sequence in the motor
cable and the phase-angle encoder cable is correct.
The controller parameter set must be adapted to the connected motor and the cable set.
This concerns the following parameters:
ƒ Rated current: Depending on the motor
ƒ Overload capacity: Depending on the motor
ƒ Direction of rotation: Depending on the motor and the phase sequence in the motor
and phase-angle encoder cable
ƒ Offset angle: Depending on the motor and the phase sequence in the motor and
phase-angle encoder cable
The controllers are default set by Lenze. For more detailed information, please see the
Software Manual.
76
KHB 13.0003-EN 2.0
7.4.2Description of the objects
Parameter setting
Motor adaptation
Description of the objects
7
IndexNamePossible settings
LenzeSelectionDescription
6075
6073
6076
6072
6410
0 motor_rated_
h
h
h
h
h
current
0 max_current{motor_rated_current/1000}
0 motor_rated_
torque
0 max_torque15000{motor_rated_torque/1000}1500
Motor_data
1 resolver_offset10{1 inc}4096
2 number_of_pole_
21{1}13
pairs
3 braking _times{1 ms}
4 brake_voltage001A0012{1 V}
{1 mA}
{0.001 Nm}
Bit No.Meaning
0 ... 3Pole pair number
4Reversal of direction of resolver
Bit No.Meaning
0 ... 15Disengagement time
16 ... 31 Engagement time
Bit No.Meaning
0 ... 15Minimum limit value (18 ... 22 V)
16 ... 31 Maximum limit value (26 ... 32 V)
Characteristics
VARUINT32 RO—
Reading the rated current for
.
I
rat
The default value depends on
thesizeofthedrive.
VARUINT16 RW—
Input value for I
max
.
The default value depends on
thesizeofthedrive.
VARUINT32 RO—
Reading the rated torque.
The default value depends on
thesizeofthedrive.
VARUINT16 RW—
Input value for M
max
.
Maximum setting: 1.5 times
the rated torque of the
controller.
VARUINT16 RW—
Setting the resolver offset.
VARUINT16 RW—
Setting the pole pair number.
VARUINT32 RW—
Setting the disengagement
and engagement time of the
brake.
VARUINT32 RW—
Setting the value range for
the brake voltage.
KHB 13.0003-EN 2.0
77
7
7.5Speed controller
7.5.1Overview
Parameter setting
Speed controller
Overview
The controller parameter set must be adapted to your application. Especially the gain
strongly depends on the masses possibly connected to the motor. The data must be
optimally determined when commissioning the system with the »fluxx« software.
Stop!
Uncontrolled vibrations
Incorrect speed controller p arameter settings can lead to strong vibrations.
Possible consequences:
ƒ Parts of the system can be destroyed.
Protective measures:
ƒ Ensure that the speed controller parameter settings are correct, before
switching on the controller.
The speed controller settings are identical with the control parameters of the position
controller. This is why the object velocity_control_parameters_set is used for parameter
setting.
78
KHB 13.0003-EN 2.0
7.5.2Description of the objects
Parameter setting
Speed controller
Description of the objects
7
IndexNamePossible settings
LenzeSelectionDescription
60F9
h
Velocity_control_
parameter_set
1 velocity_control_
gain
2 velocity_control_
time
3 velocity_control_
differential_time
4 sampling_time800500{1 μs}5000
19200.01 × 128{128}100 × 128
100002000{1 μs}65500
65001{1 μs}30000
Characteristics
VARUINT16 RW—
Setting the speed controller
gain.
»fluxx« software:
=1.5
K
p
Here:
15 × 128 = 1920
VARUINT16 RW—
Setting the time constant T
of the speed controller.
»fluxx« software: T
Here: 2 ms = 2000 μs
VARUINT16 RW—
Setting the time constant T
of the speed controller.
To increase the dynamic
performance for following
error or position control, the
speed setpoint changes are
differentiated and the result
is added to the PI speed
controller output. Here, the
time constant of the
differential component can
be set.
VARUINT16 RW—
Settingthesampletimefor
the speed and position
controller.
=2ms
n
n
v
KHB 13.0003-EN 2.0
79
7
7.6Position controller (position control function)
7.6.1Overview
Parameter setting
Position controller (position control function)
Overview
This chapter describes all parameters that are required for the position controller. The
positionsetpoint(position_demand_value) of the driving profile generator is assigned to
theposition controllerinput.In addition,the actualposition value(position_actual_value)
is sent by the phase-angle encoder (resolver, incremental encoder, etc.). The behaviour of
the position controller can be influenced by parameters.
The following subfunctions are defined in this chapter:
1. Following error (Following_Error)
Afollowingerroristhedifferencebetweentheactualpositionvalue
(position_actual_value) and the position setpoint (position_demand_value). If the
following error is for a certain time higher than the value indicated in the following error
window (following_error_window), bit 13 following_error is set in the statusword object.
Fig. 10 shows the definition of the window function for the ”Following error” message.
Symmetrically around the setpoint position (position_demand_value)x
between x
the window (following_error_window). If the drive leaves the window, bit 13
following_error is set in the status word.
and xi+x0is defined. The positions xt2and xt3are, for instance, not within
i-x0
, the range
i
x
t2
x
t3
position x
x-x
i0
Fig. 10Following error
2. Position reached (Position Reached)
This function is used to define a position window around the target position
(target_position). When the target position of the drive is reached - the drive i s withinthe
tolerance window - bit 10 target_reached is set in the status word.
Fig. 11 shows the definition of the window function for the ”Position reached” message.
Symmetricallyaround thetarget position (target_position)x
x
and xi+x0is defined. The positions xt0and xt1are, for instance, within the position
i-x0
window (position_window). When the driveis within this window, bit 10 target_reached
is set in the status word. As soon as the drive leaves the permissible range, bit 10 is reset
to zero.
x
i
x+x
i0
931e_417
, the position range between
i
80
KHB 13.0003-EN 2.0
Parameter setting
Position controller (position control function)
Description of the objects
7
x-x
i0
Fig. 11Position reached
The position limit values which must not be exceeded both by the position_actual_value
and the position_demand_value are the limit values for positioning. They are defined in
the software_position_limit object.
7.6.2Description of the objects
The controller parameter set must be adapted to your application. The position controller
data must be optimally determined when commissioning the system with the »fluxx«
software.
Stop!
Uncontrolled vibrations
Incorrect position controller parameter settings can lead to strong vibrations.
Possible consequences:
ƒ Parts of the system can be destroyed.
Protective measures:
ƒ Ensure that the position controller parameter settings are correct, before
switching on the controller.
x
t0
x
t1
position x
x
i
x+x
i0
931e_419
KHB 13.0003-EN 2.0
81
7
Parameter setting
Position controller (position control function)
Description of the objects
IndexNamePossible settings
LenzeSelectionDescription
60FB
6063
6064
h
h
h
Position_control_
parameter_set
1 position_control_
gain
2 position_control_
end_time
0 position_actual_
value
0 position_actual_
value
10{16384}2
100{1 ms}65535
Characteristics
VARUINT16 RW—
Setting the position
controller gain.
=1(correspondsto
K
p
16384).
The position controller
compares the setpoint
position with the actual
position and - considering the
gain - calculates a correction
speed from the difference
that is sent to the speed
controller.
The position controller is also
used for following error
control.
VARUINT16 RW—
Setting the position control
end time.
This is the time the motor
continues to be actively
energised after reaching the
target position to hold the
target position.
The input of 0 means that
the motor is permanently
energised.
31
-2
31
-2
{1 inc}231-1
{position units}231-1
VARINT32ROMAP
Reading the actual position.
The phase-angle encoder
sends the actual position
value to the position
controller.
Theunitcanbesetviathe
factor group.
VARINT32ROMAP
Reading the actual position.
The phase-angle encoder
sends the actual position
value to the position
controller.
82
KHB 13.0003-EN 2.0
Parameter setting
Position controller (position control function)
Description of the objects
7
6065
6067
Possible settingsNameIndex
0 following_error_
h
h
window
0 position_window1820-2
910200000000
Characteristics
DescriptionSelectionLenze
h
31
{1 inc}7FFFFFFF
{1 inc}231-1
VARUINT32 RWMAP
Symmetrical range around
the position setpoint.
If the actual position value is
not within this range, a
following error occurs and bit
13 is set in the status word.
Causes for the following
error:
z the drive is inhibited
z the positioning speed is
too high
z the acceleration values are
too high
z the value of the
following_error_window
index is too low
z the parameters of the
position controller are not
correct
VARUINT32 RWMAP
Symmetrical range around
the target position. The
target position is reached,
when the actual position
value is for a certain time in
this range.
KHB 13.0003-EN 2.0
83
7
Parameter setting
Position controller (position control function)
Description of the objects
607D
Possible settingsNameIndex
Software_position_
h
limit
0 number_of_
supported_entries
1 min_position_limit{1 inc}
2 max_position_limit{1 inc}
00
02
h
h
{1h}02
Characteristics
DescriptionSelectionLenze
VARUINT8 RO—
h
Maximally supported
subindices.
Two subindices are
supported.
VARINT32RW—
Input value for the minimum
positioning limit.
The value refers relatively to
the home_position. Before
comparing the limit values
with the current
target_position, they have to
be converted:
corrected_min_position_limi
t = min_position_limit
- home_offset.
The calculation must be
repeated whenever the
home_offset or the
software_position_limit are
changed.
VARINT32RW—
Input value for the maximum
positioning limit.
The value refers relatively to
the home_position. Before
comparing the limit values
with the current
target_position, they have to
be converted:
corrected_max_position_limi
t = max_position_limit
- home_offset.
The calculation must be
repeated whenever the
home_offset or the
software_position_limit are
changed.
84
KHB 13.0003-EN 2.0
7.7Digital inputs and outputs
7.7.1Overview
All digital controller inputs can be read via the CAN bus and the digital outputs can be set
as you choose.
7.7.2Description of the objects
Parameter setting
Digital inputs and outputs
Overview
7
IndexNamePossible settings
LenzeSelectionDescription
60FDh0 digital_inputs00000000
Bit No.Digital input
0Neg. limit switchHigh-active
1Pos. limit switchHigh-active
2Reference switch
3Interlock (no
4 ... 15Reserved
16Brake_on
17DOUT0
18 ... 31 Reserved
60FE
h
Digital_outputs
0 number_of_
supported_entries
1 digital_outputs_
data
2 digital_outputs_
mask
00
h
02
h
000000000
Bit No.Digital outputActivating or deactivating
0Brake
1 ... 15Reserved
16DOUT0
17Neg. limit switch
18Pos. limit switch
19Reference switch
20Quick stop
17 ... 31 Reserved
00{1}1
0Output is not selected
1Output is selected
h
controller or
power stage
enable)
h
{1}FFFFFFFF
High-active
{1h}02
{1h}FFFFFFFF
Characteristics
VARUINT32 ROMAP
h
Reading the digital inputs.
VARUINT8 RO—
h
Maximally supported
subindices.
Three subindices are
supported.
VARUINT32 RWMAP
h
special functionalities or
outputs.
With bit 0, you can, for
instance, activate or
deactivate the brake.
VARUINT32 RWMAP
Defining a mask to ensure
that an output is not
activated when this is not
desired.
KHB 13.0003-EN 2.0
85
7
Parameter setting
Digital inputs and outputs
Description of the objects
2005
0 local_output_
h
function
Possible settingsNameIndex
0-128{1}127
ValueFunctionActive
-128 ... -17Reserved
-16Reference setLow
-15 ... -14Reserved
-13StopoverLow
-12Motor
deenergised
-11Controller errorLow
-10Reserved
-9Drive in standstill Low
-8Reserved
-7Homing activeLow
-6 ... -5Reserved
-4Setpoint reachedLow
-3Traversing request
is being processed
-2Fault
-1Warning
0No function
1WarningHigh
2FaultHigh
3Traversing request
is being processed
4Setpoint reachedHigh
5 ... 6Reserved
7Homing activeHigh
8Reserved
9Drive in standstill High
10Reserved
11Controller errorHigh
12Motor
deenergised
13Stopover
14 ... 15Reserved
16Reference setHigh
17 ... 127Reserved
Low
Low
Low
High
High
Characteristics
DescriptionSelectionLenze
VARINT8RW—
Digital output can be
parameterised by the user.
86
KHB 13.0003-EN 2.0
Parameter setting
Digital inputs and outputs
Description of the objects
7
2006
0 local_input_
h
function
Possible settingsNameIndex
0-128{1}127
ValueFunctionActive
-128 ... -9Reserved
-8Start/stopLow
-7Reserved
-6StopoverLow
-5SynchronisationLow
-4Reserved
-3Quick stopLow
-2Power stage offLow
-1ReferenceLow
0No function
1ReferenceHigh
2Output stage offHigh
3Quick stopHigh
4Reserved
5SynchronisationHigh
6StopoverHigh
7Reserved
8Start/stopHigh
9 ... 127Reserved
Characteristics
DescriptionSelectionLenze
VARINT8RW—
Digital input can be
parameterised by the user.
KHB 13.0003-EN 2.0
87
7
Parameter setting
Device information
Description of the objects
7.8Device information
7.8.1Description of the objects
IndexNamePossible settings
LenzeSelectionDescription
6410
6510
h
h
Motor_data
1 resolver_offset10{1 inc}4096
2 number_of_pole_
pairs
3 braking _times{1 ms}
4 brake_voltage001A0012{1 V}
Drive_data
0 number_of_
supported_entries
1 identification
2 serial_number
3 operating_minutes
21{1}13
Bit No.Meaning
0 ... 3Pole pair number
4Reversal of direction of resolver
Bit No.Meaning
0 ... 15Disengagement time
16 ... 31 Engagement time
Bit No.Meaning
0 ... 15Minimum limit value (18 ... 22 V)
16 ... 31 Maximum limit value (26 ... 32 V)
00
03
h
h
{1h}03
Characteristics
VARUINT16 RW—
Setting the resolver offset.
VARUINT16 RW—
Setting the pole pair number.
VARUINT32 RW—
Setting the disengagement
and engagement time of the
brake.
VARUINT32 RW—
Setting the value range for
the brake voltage.
VARUINT8 RO—
h
Maximally supported
subindices.
Four subindices are
supported.
VARUINT32 RO—
Reading the identification.
VARUINT32 RO—
Reading the serial number.
VARUINT32 RO—
Reading the operating
minutes.
88
KHB 13.0003-EN 2.0
Parameter setting
Device information
Description of the objects
7
1018
1008
1009
100Ah0 manufacturer_
0identity_object
h
1 vendor_id
2 product_code
3 revision_number
4 serial_number
0 manufacturer_
h
h
device_name
0 manufacturer_
hardware_version
software_version
Possible settingsNameIndex
03A30018
h
Characteristics
DescriptionSelectionLenze
ARRUINT8RO—
Not used.
—UINT32 RO—
Manufacturer’s code
—UINT32 RO—
Product code
—UINT32 RO—
Firmware version
—UINT32 RO—
Serial number of hardware
VARSTRRO—
Manufacturer’s controller
name.
VARSTRRO—
Current hardware version.
VARSTRRO—
Current software version.
KHB 13.0003-EN 2.0
89
7
Parameter setting
Manufacturer-specific information parameters
Overview
7.9Manufacturer-specific information parameters
7.9.1Overview
In this chapter, additional objects have been created which go beyond the objects in
DSP301 and DSP402. These objects are described in the following.
7.9.2Description of the objects
IndexNamePossible settings
LenzeSelectionDescription
200F
2001
2002
2003
2007
2008
0 remote_request0{1}1
h
0 actual_drive_
h
h
h
h
h
temperature
0 actual_device_
temperature
0 actual_brake_
voltage
0 absolute_
resolver_position
Maximum_control _
difference
0 number_of_
supported_entries
1 maximum_
positive_
control_difference
2 maximum_
negative_
control_difference
-1{1 inc}
ValueMeaning
1Requesting the control
0Not requesting the control
00
h
02
h
authority via the CAN bus
authority via the CAN bus
{1 °C}
{1 °C}
{1 mV}
{1h}02
{1 rpm}
{1 rpm}
Characteristics
VARUINT8 RWMAP
Requesting the control
authority.
Cannot be saved (when the
controller is restarted, the
control authority has to be
requested again).
Bit15ofthecontrolword
need not be set to ”1”.
The control authority can
still only be requested via bit
15 of the control word.
VARINT16RO—
Reading the current motor
temperature.
VARINT8RO—
Reading the current
controller temperature.
VARUINT16 ROMAP
Reading the current brake
voltage.
VARINT16RW—
Determining the absolute
resolver p osition within one
revolution.
VARUINT8 RO—
h
Maximally supported
subindices.
Three subindices are
supported.
VARUINT16 RW—
Set the setting to 0 to start
measurement.
VARUINT16 RW—
Set the setting to 0 to start
measurement.
90
KHB 13.0003-EN 2.0
Parameter setting
Manufacturer-specific information parameters
Description of the objects
7
2009
200Ah0 local_errors
0 local_warnings
h
Possible settingsNameIndex
Bit No.Meaning
0DC-bus voltage > 220 V
122V>brakevoltage>26V
2Motor temperature > 130 °C
3Temperature of electronic components
>70°C
4Following error
5 ... 15Reserved
Bit No.Meaning
0DC-bus voltage < 180 V
120V>brakevoltage>28V
2Motor temperature > 140 °C
3Temperature of electronic components
>78°C
4DC-bus voltage > 400 V
5Quick stop
6Homing
7Motor deenergised
8Driving program
9System parameter
10Drive inhibited
11 ... 15 Reserved
Characteristics
DescriptionSelectionLenze
VARUINT16 ROMAP
Reading warnings.
VARUINT16 ROMAP
Reading error messages.
KHB 13.0003-EN 2.0
91
7
Parameter setting
Manufacturer-specific driving records
Overview
7.10Manufacturer-specific driving records
7.10.1Overview
The 931M/W controllers are equipped with 99 driving programs in which the user can
predefine and save the control mode, setpoints, driving profiles, etc. In this way, the
predefined setpoints and the complete driving profiles canbe directlyaccepted as current
values with a simple SDO command (selection of the corresponding driving program in
object 2100).
Unlike the »fluxx« software and the Profibus interface, driving programs cannot be
automatically combined via the CANopen bus. The driving programs are only used to
accept predefined driving profiles dynamically and with a low bus load.
The individual objects of the driving programs are explained in the following. The
driving_program_number object is used to select the current driving program.
Theparametersdriving_program_acceleration,driving_program_deceleration,
driving_program_velocity, driving_program_position and driving_program_torque are
used to define the driving profile. The setpoint selection depends on the control mode (see
modes_of_operation):
ƒ for torque control, the setpoint corresponds to the driving_program_torque,
ƒ for speed control, the setpoint corresponds to the driving_program_velocity,and
ƒ for position control, the setpoint corresponds to the driving_program_position.
7.10.2Description of the objects
IndexNamePossible settings
LenzeSelectionDescription
2100
0 driving_program_
h
number
00{1}99
Driving programMeaning
0Depending on the active
1 ... 99Depending on the active
control mode, the setpoints
and profile values of the
objects 6071
6083
h
apply.
control mode, the setpoints
and profile values of the
objects 2171
2184
h
, 607Ah, 6081h,
h
, 6084hand 60FF
, 217Ah, 2183h,
h
and 21FFhapply.
Characteristics
VARUINT8 RWMAP
Selecting the current driving
program.
h
92
KHB 13.0003-EN 2.0
Parameter setting
Manufacturer-specific driving records
Description of the objects
7
2171
217A
2183
h
Driving_program_
torque
0 number_of_
supported_entries
1 driving_program_
torque
...
99 driving_program_
torque
Driving_program_
h
position
0 number_of_
supported_entries
1 driving_program_
position
...
99 driving_program_
position
h
Driving_program_
acceleration
0 number_of_
supported_entries
1 driving_program_
acceleration
...
99 driving_program_
acceleration
Possible settingsNameIndex
00
h
{1h}FF
0-1500{rated_torque/1000}1500
0-1500{rated_torque/1000}1500
0-2
0-2
00
00
h
31
31
h
{1h}FF
{1 inc}2
{1 inc}2
{1h}FF
00{1 rpm/s}2
00{1 rpm/s}2
Characteristics
DescriptionSelectionLenze
VARUINT8 RO—
h
Maximally supported
subindices.
VARINT16RW—
Setting the setpoint torques
(with torque control) for the
individual driving programs.
Important: Unlike the »fluxx«
software, with speed,
following error, or position
control,thetorqueisnot
limited here. The value that is
saved is only used as torque
setpoint. The torque can only
be limited via the object
max_torque.
VARINT16RW—
See subindex 1.
VARUINT8 RO—
h
Maximally supported
subindices.
31
VARINT32RW—
Setting the position setpoint
for the individual driving
programs.
31
VARINT32RW—
Setting the position setpoint
for the individual driving
programs.
VARUINT8 RO—
h
Maximally supported
subindices.
18
VARINT32RW—
Setting the acceleration
ramp.
18
VARINT32RW—
Setting the acceleration
ramp.
KHB 13.0003-EN 2.0
93
7
Parameter setting
Manufacturer-specific driving records
Description of the objects
2184
21FF
h
Driving_program_
deceleration
0 number_of_
supported_entries
1 driving_program_
deceleration
...
99 driving_program_
deceleration
h
Driving_program_
velocity
0 number_of_
supported_entries
1 driving_program_
velocity
...
99 driving_program_
velocity
Possible settingsNameIndex
00
h
{1h}FF
00{1 rpm/s}2
00{1 rpm/s}2
00
h
{1h}FF
0-6000{1 rpm}6000
0-6000{1 rpm}6000
Characteristics
DescriptionSelectionLenze
VARUINT8 RO—
h
Maximally supported
subindices.
18
VARINT32RW—
Setting the deceleration
ramp.
18
VARINT32RW—
Setting the deceleration
ramp.
VARUINT8 RO—
h
Maximally supported
subindices.
VARINT32RW—
Setting the speed used to
approach the positions of the
individual driving programs.
With speed control, the value
is used as speed setpoint.
Otherwise, the value is used
as profile velocity.
VARINT32RW—
See subindex 1.
94
KHB 13.0003-EN 2.0
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.
Device control
State diagram
Overview
8
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.
KHB 13.0003-EN 2.0
95
8
Device control
State diagram
State diagram of the drive controller
8.1.2State diagram of the drive controller
0
Start
0
Not_Ready_To_Switch_On
1
Switch_On_Disabled
2
Ready_To_Switch_On
3
8
9
Fig. 12State 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
96
Danger!
Hazardous electrical voltage
Power stage disabled means that the power transistors are no longer
controlled. A hazardous voltage can, however, still be applied to the motor.
Possible consequences:
ƒ Extreme danger when working on the motor.
Protective measures:
ƒ Disconnect the motor from the mains before working on the motor.
After power-on, the controller is initialised and finally reaches the Switch_On_Disabled
status. Inthis status, the CAN communication is fullyoperational and thecontroller can be
parameterised (speed control can, for instance, be selected). The power stage is switched
off and the shaft can thus freely rotate.
KHB 13.0003-EN 2.0
Device control
State diagram
State diagram of the drive controller
With status transitions 2, 3, 4, - basically corresponding to CAN controller enable - you
change to the Operation_Enable status. In this status, the power stage is switched on and
the motor is controlled according to the selected operating mode. Therefore, it is
absolutely necessary to ensure before that the controller parameters are correct and the
corresponding setpoint is zero.
Status transition 9 corresponds to controller inhibit.
If an error occurs, (no matter from which status) the status finally changes to Fault.
Depending on the severity of the error, certain actions, e.g. emergency braking, can be
carried out before the status change (Fault_Reaction_Active).
The execution of the indicated status transitions requires certain bit combinations to be
set in the control word. Bits 0 ... 3 of the control word are evaluated together to activate a
status transition. In the following, only themost important statustransitions (2, 3 , 4, 9 and
15) will be explained. A table of all states and status transitions can be found at the end of
this chapter.
In the first column of the following table, you can find the desired status transition and in
the second column the command required for the transition (usually a command by the
master). In the control word column, you can see, how the command is generated, i.e.
which bits are to be set in the control word.
8
Transition Command
2Shutdown and
controller enable
3Switch on1XX111Power stage is switched on
4Enable operation1X1111Control according to the selected
9Disable voltage1XXX0XPower stage is disabled. Motor can be
15Fault reset and error
removed
Tab. 10Important controller status transitions
Xnotrelevant
Control word (bits)
1573210
1XX110None
10->1XXXXError acknowledgement
Action
operating mode
freely rotated.
KHB 13.0003-EN 2.0
97
8
Device control
State diagram
States of the drive controller
Example: Switching on the power stage (controller must be parameterised)
1. ThecontrollerisintheSwitch_On_Disabled status.
2. ThecontrolleristochangetoOperation_Enable.
3. Transitions 2, 3 and 4 must be executed.
4. For requesting the parameterisation authority via the CAN bus, bit 1 5
remote_request must be set to 1. If this is not the case, another interface (e.g. serial
interface) has got the parameterisation authority and the status machine cannot be
”enabled” or influenced via the CAN bus.
5. Ensure that no other bits are set in the control word, because only bits 0 ... 3 are
important for the transitions.
Transition Old status
2Switch_On_Disabled 1X1108006hReady_To_Switch_On
3Ready_To_Switch_On1X1118007hSwitched_On
4Switched_On11111800FhOperation_Enable
1)
The master must wait until the status can be read in the status word.
Transitions 3 and 4 can be combined by setting the control word directly to 000Fh.Theset
bit 3 is not relevant for status transition 2.
8.1.3States of the drive controller
StatusMeaning
Not_Ready_To_Switch_OnThe controller makes a self-test. CAN communication is not active yet.
Switch_On_DisabledThe self-test has been completed. CAN communication is possible.
Ready_To_Switch_OnThe controller is waiting for the switch-on command, depending on the
Switched_On1)Thepowerstageisswitchedon.
Operation_Enable1)Voltage is applied and the motor is controlled according to the operating
Quick_Stop_Active1)The quick stop function is carried out (see: quick_stop_option_code). Voltage
Fault_Reaction_Active
FaultAn error has occurred. The motor is deenergised.
Tab. 11Controller states
1)
Thepowerstageisswitchedon
1)
Control word
15 3210Value
controller enable logic.
mode.
is applied and the motor is controlled according to the quick stop function.
An error has occurred. With critical errors, the status changes to Fault
immediately. Otherwise, the action selected in the
fault_reaction_option_code is activated. Voltage is applied and the motor is
controlled according to the Fault Reaction function.
New status
1)
1)
1)
98
KHB 13.0003-EN 2.0
State transitions of the drive controller
8.1.4State transitions of the drive controller
The following table lists all states and their meaning. Please observe that bit 15 of the
control word remote_request must always be set to 1 to ensure the parameterisation
authority via the CAN bus.
Device control
State diagram
8
Transition Command
0Switched on or reset Internal transitionStart self-test.
1Self-test successfulInternal transitionActivation of CAN communication.
2Shutdown and
controller and power
stage enable
3Switch on1XX111Power stage is switched on.
4Enable operation1X1111Control according to the selected
5Disable operation1X0111Motor is decelerated and energised at
6Shutdown1XX110Power stage is disabled. Motor can be
7Quick stop1XX01XNone
8Shutdown1XX110Power stage is disabled. Motor can be
9Disable voltage1XXX0XPower stage is disabled. Motor can be
10Disable voltage1XXX0XPower stage is disabled. Motor can be
Internal transitionPower stage is disabled. Motor can be
10->1XXXXError acknowledgement (with rising
Action
operating mode.
standstill.
freely rotated.
freely rotated.
freely rotated.
freely rotated.
freely rotated.
according to fault_reaction_option_
code. With critical errors, transition 14.
freely rotated.
edge).
KHB 13.0003-EN 2.0
99
8
Device control
State diagram
Control word
8.1.5Control word
The controlword is used to change the current controller status oractivate a certainaction
(e.g. start homing). The function of bits 4, 5, 6, 8 and 14 depends on the current operating
mode (modes_of_operation) of the controller.
IndexNamePossible settings
LenzeSelectionDescription
6040h0 control word0000
h
Characteristics
0000
h
Bit No.Meaning
0Switch on
1Enable voltage
2Quick stop
3Enable operation
4 ... 6Operation-mode specificThe bit function depends on
7Reset faultWith a zero/one transition,
8StopThe bit function depends on
9 ... 10ReserveReserved, set to 0.
11 ... 13 Operation-mode specificThe bit function depends on
14Wait for syncThe bit function depends on
15Remote requestWhen this bit is set, remote
{1h}FFFF
VARUINT16 RWMAP
h
Changing the controller
status.
Activating an action (e.g.
homing).
Controlling the status
transitions. (These bits are
evaluated together).
the operating mode.
the controller tries to
acknowledge the existing
errors. This is only successful,
when the cause of the error
has been removed.
the operating mode.
the operating mode.
the operating mode.
control of t he controller via
theCANbusisrequested.
When this bit is not set, local
controller operation (e.g. via
the »fluxx« software) is
enabled.
100
KHB 13.0003-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.