This documentation only contains descriptions for the CAN bus system and
CANopen−specific functions for servo inverters of the 931 series.
)Note!
This documentation completes the mounting instructions coming with the
931 servo inverter and the corresponding hardware manual.
The mounting instructions and the hardware manual contain safety
instructions which must be observed!
ƒ The features of the CAN bus system and CANopen−specific functions for servo
inverters of the 931 series are described in detail.
ƒ Typical applications are illustrated by use of examples.
About this documentation1
ƒ Furthermore, this documentation contains:
– the most important technical data for CAN communication;
– information on the installation and commissioning of the CAN network;
– information on the CAN data transfer, CAN monitoring functions,
communication−relevant parameters, and different operating modes.
The theoretical connections are only explained as far as required for understanding the
CAN communication for servo inverters of the 931 series.
All trade names listed in this manual are trademarks of their respective owners.
Validity information
The information given in this documentation is valid for servo inverters of the 931 series.
Target group
This documentation addresses to all persons designing, installing, commissioning, and
setting the servo inverters of the 931 series.
ITip!
Documentation and software updates for further Lenze products can be found
on the Internet in the "Services & Downloads" area under
http://www.Lenze.com
KHB 13.0002−EN 4.1
l
7
Page 8
1
About this documentation
Document history
1.1Document history
Material numberVersionDescription
–1.0LKAFirst edition
–1.1LKARevision
131905992.011/2006TD34Complete revision
133445123.004/2010TD34Extended by the 931K servo inverter, chapter "Node
133474634.008/2010TD09Complete revision
.Ckò4.103/2012TD09Extended table − index 1018
Your opinion is important to us!
These instructions were created to the best of our knowledge and belief to give you the
best possible support for handling our product.
If you have suggestions for improvement, please e−mail us to:
feedback−docu@Lenze.de
guarding telegram" has been added, general revision
h
Thank you for your support.
Your Lenze documentation team
1.2Conventions used
This documentation uses the following conventions to distinguish between different
types of information:
Type of informationIdentificationExamples/notes
Spelling of numbers
Decimal separator
Text
Program name» «PC software
Icons
Page reference^Reference to another page with additional
PointIn general, the decimal point is used.
For instance: 1234.56
For example: »Engineer«, »Global Drive
Control« (GDC)
information
For instance: ^ 16 = see page 16
8
l
KHB 13.0002−EN 4.1
Page 9
About this documentation
Notes used
1
1.3Notes 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!
Danger of personal injury through dangerous electrical voltage.
Reference to an imminent danger that may result in death or
serious personal injury if the corresponding measures are not
taken.
Danger of personal injury through a general source of danger.
Reference to an imminent danger that may result in death or
serious personal injury if the corresponding measures are not
taken.
Danger of property damage.
Reference to a possible danger that may result in property
damage if the corresponding measures are not taken.
Application notes
Pictograph and signal wordMeaning
)Note!
ITip!
,
Important note to ensure troublefree operation
Useful tip for simple handling
Reference to another documentation
KHB 13.0002−EN 4.1
l
9
Page 10
2
Product description
Product features
2Product description
2.1Product features
CAN bus features:
ƒ Full compatibility according to CANopen DS301, V4.02.
ƒ Support of NMT slave "Heartbeat" function (DS301 V4.02).
ƒ Number of parameterisable server SDO channels:
– max. 2 channels with 1 ... 8 bytes
ƒ Number of parameterisable PDO channels:
– max. 2 transmit PDOs (TPDOs) with 1 ... 8 bytes (can be set)
– max. 2 receive PDOs (RPDOs) with 1 ... 8 bytes (can be set)
ƒ All PDO channels have the same functions.
ƒ Data reception monitoring of RPDOs
ƒ Adjustable error response to ...
– physical CAN errors (frame, bit, ACK errors)
– bus stop, bus working
– absent PDOs
ƒ Bus status diagnostics
ƒ Emergency telegram generation
ƒ Sync telegram generation and response to sync telegrams:
– Send/receive data
– Synchronisation of internal time base
ƒ Abort codes
10
l
KHB 13.0002−EN 4.1
Page 11
3Technical data
3.1Communication data
Communication
FieldValues
Communication profileDS 301, DSP 402
Communication mediumRS232
Network topologyWithout repeater: line / with repeaters: line or tree
CAN nodeSlave
Baud rate (in kbps)125, 250, 500
Max. cable length per bus segment1000 m (depending on baud rate and cable type)
Bus connectionRJ45 (931E), M12 (931K)
Technical data
Communication data
3
KHB 13.0002−EN 4.1
l
11
Page 12
4
Electrical installation
Wiring according to EMC
4Electrical installation
4.1Wiring according to EMC
General notesl The electromagnetic compatibility of the drive depends on the type of installation and the care taken.
Assemblyl Electrical contacting of the mounting plate:
Shieldingl If possible, only use braided cables.
Earthingl Electrical contacting of the mounting plate:
Especially observe:
– Assembly
– Shielding
– Earthing
l In the case of differing installations, the evaluation of the conformity to the EMC Directive requires the
system to be checked for compliance with the EMC limit values. This applies, for instance, to:
– Use of unshielded cables
l The user is responsible for compliance with the EMC Directive.
– If the following measures are observed, you can assume that no EMC problems will occur during operation
and that the EMC Directive / EMC law is met.
– If devices are operated close to the system which do not meet the CE requirements regarding the noise
immunity according to EN 61000−4−2, these devices may be electromagnetically impaired by the drive.
– Mounting plates with conductive surface (galvanised or stainless steel) enable a permanent contact.
– Painted plates are not suitable for an EMC−compliant installation.
l If you use several mounting plates:
– Contact the mounting plates to each other over a large area (e.g. with copper strips).
l Route signal cables separately from mains cables.
l Route the cables as close as possible to the reference potential. Freely suspended cables act like aerials.
l The overlap rate of the shield should be higher than 80%.
l Always use metal or metallised connectors for the serial data cable coupling. Connect the shield of the data
cable to the connector shell.
l Use metal cable clamps to attach the shield braid.
l Connect the shield to the shield bus in the control cabinet.
l Connect the shields of analog control cables at one end.
– Mounting plates with conductive surface (galvanised or stainless steel) enable a permanent contact.
– Painted plates are not suitable for an EMC−compliant installation.
l If you use several mounting plates:
– Contact the mounting plates to each other over a large area (e.g. with copper strips).
l Route signal cables separately from mains cables.
l Route the cables as close as possible to the reference potential. Freely suspended cables act like aerials.
12
l
KHB 13.0002−EN 4.1
Page 13
Electrical installation
Electrical connections of CANopen
4
4.2Electrical connections of CANopen
A
1
120
6
1
2
9
7
8
5
3
4
CAN-GND
CAN-HIGH
CAN-LOW
Fig. 1Basic wiring of CANopen with Sub−D connector to the master
Node 1 − master (e.g. PLC)
A
1
Node 2 − slave (e.g. drive controller 931E)
A
2
A
Node n − slave, n = max. 127
n
120
W
PES
A
2
X4.1X4.1X4.2X4.2
CGCGCGCGHIHIHIHI
LOLOLOLO
PES
PES
PES
A
n
W
120
931e_420
Specification of the transmission cable
Please observe our recommendations for signal cables.
Bus cable specification
Cable resistance135 − 165 W/km, (f = 3 − 20 MHz)
Capacitance per unit length£ 30 nF/km
Loop resistance< 110 W/km
Wire diameter> 0.64 mm
Wire cross−section> 0.34 mm
2
Wiresdouble twisted, insulated and shielded
ƒ Connection of the bus terminating resistors:
– One resistor of 120 W each at the first and last bus node
ƒ Communication protocol
– CANopen (CAL−based communication profile DS 301/DSP 402)
ƒ Bus extension:
– 40 m for max. data transfer rate of 1 Mbps
– Up to 1 km for reduced data transfer speed
ƒ Signal level according to ISO 11898
ƒ Up to 128 bus nodes possible
KHB 13.0002−EN 4.1
l
13
Page 14
4
Electrical installation
Connection of CAN bus slave
4.3Connection of CAN bus slave
Features
ƒ Parameter selection
ƒ Data exchange between drive controllers
ƒ Connection of operator and input devices
ƒ Connection of higher−level controls
ƒ Baud rates of 125, 250, 500 kBaud
(Stop!
An external 120 W terminating resistor is required to terminate the bus system.
Connection plan for RJ45 socket (931E)
X4.1 / X4.2
931E−001.iso
Fig. 2Connection of CAN bus (X4.1, X4.2)
Pin no. MeaningComment
1CAN−HIGHCAN−HIGH (high is dominant)
2CAN−LOWCAN−LOW (low is dominant)
3CAN−GNDCAN ground
4Reserved
5Reserved
6CAN−SHLDCAN shield (hardware version 1.1 and higher)
7CAN−GNDCAN ground
8Reserved
14
l
KHB 13.0002−EN 4.1
Page 15
Connection plan for M12 socket (931K)
X4.1 / X4.2
Input contact
pattern
Output contact
pattern
PinSignalExplanation
1CAN_SHLDCAN_Shield
2Reserved
3CAN_GNDCAN_Ground
4CAN_HCAN_HIGH (high is dominant)
5CAN_LCAN_LOW (low is dominant)
4.4Connection of CAN bus master
The below table shows the assignment of a 9−pin Sub−D socket such as provided by most
CAN masters for the connection of field devices.
Electrical installation
Connection of CAN bus master
4
Connection of the CAN bus to a 9−pin Sub−D socket
ViewPinSignalExplanation
1
2
3
4
5
Tab. 1CAN Sub−D socket
1Reserved
6
2CAN−LOWCAN−LOW (low is dominant)
7
3CAN−GNDCAN ground
8
4Reserved
9
5(CAN−SHLD)Optional CAN shield
6(GND)Optional ground
7CAN−HIGHCAN−HIGH (high is dominant)
8Reserved
9(CAN−V+)Optional external CAN voltage supply
KHB 13.0002−EN 4.1
l
15
Page 16
5
CANopen communication
About CANopen
Structure of the CAN data telegram
5CANopen communication
5.1About CANopen
The CANopen protocol is a standardised layer 7 protocol for the CAN bus. This layer is 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.
5.1.1Structure of the CAN data telegram
Control fieldCRC delimit.ACK delimit.
StartRTR bit
CRC sequenceACK slotEnd
Fig. 3Basic structure of the CAN telegram
5.1.2Identifier
The principle of the CAN communication is based on a message−oriented data exchange
between one sender and many receivers. All nodes can send and receive
quasi−simultaneously.
The identifier in the CAN telegram − also called COB ID (communication object identifier) −
is used to control which node is to receive a sent message. In addition to the addressing,
the identifier contains information on the priority of the message and on the type of the
user data.
With the exception of the network management and the sync telegram, the identifier
contains the node address of the drive:
IdentifierData
1 bit11 bits1 bit 2 bits4 bits
)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.
length
User data (0 ... 8 bytes)
l Network management
l Process data
l Parameter data
The identifier assignment is specified in the CANopen protocol.
The ex works default setting of the basic identifier is:
l
KHB 13.0002−EN 4.1
Page 17
CANopen communication
About CANopen
Identifier
5
Object
NMT0
Sync80
EmergencyX80
PDO1
(process data channel 1)
PDO2
(process data channel 2)
SDO1
(parameter data channel 1)
Heartbeat/boot−upX700
5.1.3Node address (node ID)
Each node of the CAN network must be assigned with a node address (also called node ID)
within the valid address range for unambiguous identification.
ƒ A node address may not be assigned more than once within a network.
TPDO1
RPDO1
TPDO2
RPDO2
DirectionBasic identifier
From the driveTo the driveHex
X180
X200
X280
X300
X580
X600
KHB 13.0002−EN 4.1
l
17
Page 18
5
5.1.4User data
CANopen communication
About CANopen
User data
The master and the drive controller communicate with each other by exchanging data
telegrams via the CAN bus.
The user data range of the CAN telegram contains network management data, parameter
data or process data:
ƒ Network management data (NMT data)
Network service: E.g. all CAN nodes can be addressed at the same time.
ƒ Process data (PDO, process data objects)
– Process data is transferred via the process data channel.
– Process data can be used to control the drive controller.
– The master can directly access the process data. The data is, for instance, directly
assigned to the I/O area of the master. It is necessary that the control and the drive
controller can exchange data within a very short time interval. For this purpose,
small amounts of data can be transferred cyclically.
– Process data is not stored in the drive controller.
– Process data is transferred between the master and the drive controllers to ensure
a continuous exchange of current input and output data.
– Examples for process data are, for instance, setpoints and actual values.
ƒ Parameter data (SDO, service data objects)
– Parameters are set, for instance, for the initial system set−up during
commissioning or when the material is changed on a production machine.
– Parameter data is transferred by means of so−called SDOs via the parameter data
channel. The transfer is acknowledged by the receiver, i.e. the sender gets a
feedback about the transfer being successful or not.
– The parameter data channel enables the access to all CANopen indexes.
– Parameter changes are automatically stored in the drive controller.
– In general, the transfer of parameters is not time−critical.
– Examples for parameter data are, for instance, operating parameters, diagnostic
information and motor data.
18
l
KHB 13.0002−EN 4.1
Page 19
CANopen communication
Parameter data transfer (SDO transfer)
Telegram structure
5
5.2Parameter data transfer (SDO transfer)
5.2.1Telegram structure
The telegram for parameter data has the following structure:
The object to be addressed is contained in bytes 2 and 3 of the telegram.
ƒ The value for the index is split up into low byte and high byte and entered in the
left−justified Intel format.
Subindex
11 bits4 bitsUser data (up to 8 bytes)
Identifier
ƒ If an object (e.g. controller parameter) consists of several sub−objects, the
Data
length
sub−objects are addressed via subindexes. The number of the corresponding
subindex is entered in byte 4 of the telegram. (See following tables for sub−objects).
in the command code byte indicates that an error has occurred.
h
Command
code
Index
low byte
Index
high byte
Subindex
F0F1F2F3
Error code
These bytes contain the index (bytes 2 and 3) and the subindex (byte 4) at which an
error occurred.
ƒ Bytes 5 to 8:
The data bytes 5 to 8 contain the error code. The error code is represented opposite
to the direction of reading.
Example:
The representation of the error code 06 04 00 41
in bytes 5 to 8
h
Reading direction of the error code
41000406
5th byte6th byte7th byte8th byte
Low wordHigh word
Low byteHigh byteLow byteHigh byte
The below table lists the meanings of the error codes:
Error codeExplanation
F3 F2 F1 F0
06 01 00 00 Access to object is not supported
06 01 00 01 Attempt to read a write−only object
06 01 00 02 Attempt to write to a read−only object
06 02 00 00 Object does not exist in the object directory
06 04 00 41 Object cannot be mapped to the PDO
06 04 00 42 The number and length of objects to be mapped would exceed PDO length.
06 07 00 10 Data type does not match, length of service parameter does not match
06 07 00 12 Data type does not match, length of service parameter is too large
06 07 00 13 Data type does not match, length of service parameter is too small
06 09 00 11 Subindex does not exist
06 09 00 30 Value range of parameter exceeded
06 09 00 31 Parameter values too large
06 09 00 32 Parameter values too small
08 00 00 20 Data cannot be transferred/saved to the application.
08 00 00 21 Data cannot be transferred/saved to the application due to local control.
08 00 00 22 Data cannot be transferred/saved to the application due to current device state.
22
l
KHB 13.0002−EN 4.1
Page 23
CANopen communication
Parameter data transfer (SDO transfer)
Reading parameters (example)
5
5.2.2Reading parameters (example)
Problem
The numerator setting (object 6093_01) of the drive controller with node address 1 is to
be read via the parameter channel.
Telegram to the drive controller
ValueInfo
Identifier= Basic identifier + node address
= 600 + 1 = 601
h
Data length= 08
Command code = 40
Index= 6093
h
h
Subindex= 1l Subindex = 1 (numerator)
Data 1
Data 2
Data 3
Data 4
Data 1 ... 4
= 00
h
= 00
h
= 00
h
= 00
h
= 00 00 00 00
h
11 bits4 bitsUser data
Identifier
601
h
Data
length
08
h
Command
code
40
h
Index
low byte
Telegram from the drive controller
93
h
l Basic identifier for parameter channel = 600
l Node address = 1
l Read request" command (request to read a
parameter)
l Index of the position_factor
l Read request only
Index
high byte
60
h
Subindex
01
Data 1Data 2Data 3Data 4
h
00
h
00
h
h
00
h
00
h
ValueInfo
Identifier= Basic identifier + node address
= 580 + 1 = 581
h
l Basic identifier for parameter channel = 580
l Node address = 1
Data length= 08
Command code = 43
h
Index= 6093
h
l Read response" command (response to the read
request with the actual value)
l Index of the position_factor
Subindex= 1l Subindex = 1 (numerator)
Data 1
Data 2
Data 3
Data 4
Data 1 ... 4
= C0
h
= 4B
h
= 03
h
= 00
h
= C0 4B 03 00
l Assumption: The set numerator value is 00 03 4B C0
(216000d).
h
11 bits4 bitsUser data
Identifier
581
h
Data
length
08
h
Command
code
43
h
Index
low byte
93
h
Index
high byte
60
h
Subindex
01
h
Data 1Data 2Data 3Data 4
C0
h
4B
h
h
h
03
h
00
h
KHB 13.0002−EN 4.1
l
23
Page 24
5
CANopen communication
Parameter data transfer (SDO transfer)
Writing parameters (example)
5.2.3Writing parameters (example)
Problem
The numerator (object 6093_01) of the drive controller with node address 1 is to be set to
216000 via the SDO (parameter data channel).
Telegram to the drive controller
ValueInfo
Identifier= Basic identifier + node address
= 600 + 1 = 601
Data length= 08
Command code = 23
Index= 6093
h
h
Subindex= 1l Subindex = 1 (numerator)
Data 1
Data 2
Data 3
Data 4
Data 1 ... 4
= C0
h
= 4B
h
= 03
h
= 00
h
= C0 4B 03 00
11 bits4 bitsUser data
Identifier
601
h
Data
length
08
Command
h
code
23
h
h
low byte
h
Index
93
h
l Basic identifier for parameter channel = 600
l Node address = 1
l Write request" command (send parameter to the
drive)
l Index of the position_factor
l Assumption: The numerator value to be set is to be
Index
high byte
60
h
00 03 4B C0
Subindex
01
(216000d).
h
Data 1Data 2Data 3Data 4
h
C0
h
4B
h
03
h
h
00
h
Telegram from the drive controller (acknowledgement for faultless execution)
ValueInfo
Identifier= Basic identifier + node address
= 580 + 1 = 581
h
Data length= 08
Command code = 60
Index= 6093
h
h
Subindex= 1l Subindex = 1 (numerator)
Data 1 ... 4= 00 00 00 00
h
11 bits4 bitsUser data
Identifier
581
h
Data
length
08
h
Command
code
60
h
Index
low byte
93
h
l Basic identifier for parameter channel = 580
l Node address = 1
l Write response" command (acknowledgement from
the drive controller)
l Index of the position_factor
l Acknowledgement only
Index
high byte
60
h
Subindex
01
Data 1Data 2Data 3Data 4
h
00
h
00
h
00
h
h
00
h
24
l
KHB 13.0002−EN 4.1
Page 25
CANopen communication
Process data transfer (PDO transfer)
Telegram structure
5
5.3Process data transfer (PDO transfer)
Process data objects (PDOs) can be used, for instance, for the fast event−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
A to B.
When SDOs are used 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)
5.3.1Telegram structure
The telegram for process data has the following structure:
The drive controller is provided with two transmit and two receive PDOs.
Almost all objects of the object directory can be entered in (mapped to) the PDOs, i.e. the
PDO contains for instance the actual speed value or actual position value as data. The drive
controller must know in advance which data is to be transferred because the PDO only
contains user data and no information about the type of the parameter.
In this way almost all kinds of data telegrams can be defined. The settings required are
described in the following chapters.
KHB 13.0002−EN 4.1
l
25
Page 26
5
CANopen communication
Process data transfer (PDO transfer)
Objects for PDO parameterisation
5.3.3Objects for PDO parameterisation
Two transmit PDOs (TPDO) and two receive PDOs (RPDO) are available in the drive
controller. The different objects of the PDOs are identical.
1. Transmit PDO
IndexNamePossible settings
LenzeSelectionDescription
1800
Transmit PDO1
h
Communication
Parameter
0 number_of_entries
1 COB−ID_used_by_
PDO
00000181
h
2 transmission_type255
3 inhibit_time0
Characteristics
00
h
03
h
00000181
Bit no.Value
0 − 10x11−bit identifier
11 − 280
290
301RTR of this PDO is not
31
0{1}240, 254, 255
0Function is switched off
n = 1 ... 240By entering a value n, this
n = 254, 255Event−controlled
0{0.1 ms}65535
h
0PDO is active
1PDO is inactive
{1h}04
{1h}000001FF
RECUINT8RO
h
Maximum number of
supported subindexes.
3 subindexes are supported.
UINT32 RW
h
Identifier of transmit PDO1,
+ node address).
(180
h
For processing, bits 30 and
31 must be set
(parameterisation of
mapping).
The extended identifier
(bit 29) is not supported.
Each bit of this range must
be "0".
permitted (unadjustable).
UINT8RW
Setting of the transmission
mode
PDO is accepted with every
n−th sync.
transmission mode
UINT16 RW
Setting of the minimum
delay time between two
PDOs. The time can only be
changed if the PDO is not
active (subindex 1, bit 31 = 1)
26
l
KHB 13.0002−EN 4.1
Page 27
IndexNamePossible settings
LenzeSelectionDescription
1A00
Transmit PDO1
h
Mapping Parameter
0 number_of_
mapped_objects
1 first_mapped_
object
2 second_mapped_
object
...
4 fourth_mapped_
object
60410010
h
00
01
CANopen communication
5
Process data transfer (PDO transfer)
Objects for PDO parameterisation
Characteristics
h
h
{1h}04
{1h}
RECUINT32 RW
h
Maximum number of
supported subindexes
1 subindex is supported
UINT32 RW
Entry of the COB ID of the
first mapped object
UINT32 RW
Entry of the COB ID of the
second mapped object
UINT32 RW
Entry of the COB ID of the
fourth mapped object
KHB 13.0002−EN 4.1
l
27
Page 28
5
CANopen communication
Process data transfer (PDO transfer)
Objects for PDO parameterisation
2. Transmit PDO
IndexNamePossible settings
LenzeSelectionDescription
1801
Transmit PDO2
h
Communication
Parameter
0 number_of_entries
1 COB−ID_used_by_
PDO
00000281
2 transmission_type255
3 inhibit_time0
Characteristics
00
h
03
h
00000281
h
Bit no.Value
0 − 10x11−bit identifier
11 − 280
290
30
31
0{1}240, 254, 255
0Function is switched off
n = 1 ... 240By entering a value n, this
n = 254, 255Event−controlled
0{0.1 ms}65535
h
0RTR of this PDO is permitted
1RTR of this PDO is not
0PDO is active
1PDO is inactive
{1h}04
{1h}000002FF
RECUINT8RO
h
Maximum number of
supported subindexes
3 subindexes are supported.
UINT32 RW
h
Identifier of transmit PDO2,
(280
+ node address).
h
For processing, bits 30 and
31 must be set
(parameterisation of
mapping).
The extended identifier
(bit 29) is not supported.
Each bit of this range must
be "0".
(Lenze)
permitted (unadjustable)
UINT8RW
Setting of the transmission
mode
PDO is accepted with every
n−th sync.
transmission mode
UINT16 RW
Setting of the minimum
delay time between two
PDOs. The time can only be
changed if the PDO is not
active (subindex 1, bit 31 = 1)
28
l
KHB 13.0002−EN 4.1
Page 29
IndexNamePossible settings
LenzeSelectionDescription
1A01
Transmit PDO2
h
Mapping Parameter
0 number_of_
mapped_objects
1 first_mapped_
object
2 second_mapped_
object
3 third_mapped_
object
4 fourth_mapped_
object
60410010
60610008
h
h
00
02
CANopen communication
5
Process data transfer (PDO transfer)
Objects for PDO parameterisation
Characteristics
h
h
{1h}04
{1h}
{1h}
RECUINT32 RW
h
Maximum number of
supported subindexes.
2 subindexes are supported.
UINT32 RW
Entry of the COB ID of the
first mapped object.
UINT32 RW
Entry of the COB ID of the
second mapped object.
UINT32 RW
Not supported.
UINT32 RW
Not supported.
KHB 13.0002−EN 4.1
l
29
Page 30
5
CANopen communication
Process data transfer (PDO transfer)
Objects for PDO parameterisation
1. Receive PDO
IndexNamePossible settings
LenzeSelectionDescription
1400
Receive PDO1
h
Communication
Parameter
0 number_of_entries
1 COB−ID_used_by_
PDO
00000201
2 transmission_type255
Characteristics
00
h
02
h
00000201
h
Bit no.Value
0 − 10x11−bit identifier
11 − 280
290
30
31
0{1}240, 254, 255
0Function is switched off
n = 1 ... 240By entering a value n, this
n = 254, 255Event−controlled
h
0RTR of this PDO is permitted
1RTR of this PDO is not
0PDO is active
1PDO is inactive
{1h}04
{1h}000002FF
RECUINT8RO
h
Maximum number of
supported subindexes
2 subindexes are supported.
UINT32 RW
h
Identifier of receive PDO1
(200
+ node address)
h
For processing, bits 30 and
31 must be set
(parameterisation of
mapping).
The extended identifier
(bit 29) is not supported.
Each bit of this range must
be "0".
(Lenze)
RTR = remote transmission
request
permitted (unadjustable)
UINT8RW
Setting of the transmission
mode
PDO is accepted with every
n−th sync.
transmission mode, PDO is
accepted immediately
30
l
KHB 13.0002−EN 4.1
Page 31
IndexNamePossible settings
LenzeSelectionDescription
1600
Receive PDO1
h
Mapping Parameter
0 number_of_
mapped_objects
1 first_mapped_
object
2 second_mapped_
object
...
4 fourth_mapped_
object
60400010
h
00
01
CANopen communication
5
Process data transfer (PDO transfer)
Objects for PDO parameterisation
Characteristics
h
h
{1h}04
{1h}
RECUINT32 RW
h
Maximum number of
supported subindexes.
1 subindex is supported.
UINT32 RW
Entry of the COB ID of the
first mapped object.
UINT32 RW
Not supported.
UINT32 RW
Not supported.
KHB 13.0002−EN 4.1
l
31
Page 32
5
CANopen communication
Process data transfer (PDO transfer)
Objects for PDO parameterisation
2. Receive PDO
IndexNamePossible settings
LenzeSelectionDescription
1401
Receive PDO2
h
Communication
Parameter
0 number_of_entries
1 COB−ID_used_by_
PDO
00000301
2 transmission_type255
Characteristics
00
h
02
h
00000301
h
Bit no.Value
0 − 10x11−bit identifier
11 − 280
290
30
31
0{1}240, 254, 255
0Function is switched off
n = 1 ... 240By entering a value n, this
n = 254, 255Event−controlled
h
0RTR of this PDO is permitted
1RTR of this PDO is not
0PDO is active
1PDO is inactive
{1h}04
{1h}000003FF
RECUINT8RO
h
Maximum number of
supported subindexes
2 subindexes are supported.
UINT32 RW
h
Identifier of receive PDO2
(300
+ node address)
h
For processing, bits 30 and
31 must be set
(parameterisation of
mapping).
The extended identifier
(bit 29) is not supported.
Each bit of this range must
be "0".
(Lenze)
RTR = remote transmission
request
permitted (unadjustable)
UINT8RW
Setting of the transmission
mode
PDO is accepted with every
n−th sync.
transmission mode, PDO is
accepted immediately
32
l
KHB 13.0002−EN 4.1
Page 33
IndexNamePossible settings
LenzeSelectionDescription
1601
Receive PDO2
h
Mapping Parameter
0 number_of_
mapped_objects
1 first_mapped_
object
2 second_mapped_
object
3 third_mapped_
object
4 fourth_mapped_
object
60400010
60600008
h
h
00
02
CANopen communication
5
Process data transfer (PDO transfer)
Objects for PDO parameterisation
Characteristics
h
h
{1h}04
{1h}
{1h}
RECUINT32 RW
h
Maximum number of
supported subindexes.
2 subindexes are supported.
UINT32 RW
Entry of the COB ID of the
first mapped object.
UINT32 RW
Entry of the COB ID of the
second mapped object.
UINT32 RW
Not supported.
UINT32 RW
Not supported.
KHB 13.0002−EN 4.1
l
33
Page 34
5
CANopen communication
Process data transfer (PDO transfer)
Objects for PDO parameterisation
1. Transmit masking
IndexNamePossible settings
LenzeSelectionDescription
2014
Transmit PDO1
h
Mask
0 number_of_entries
1 tpdo1_transmit_
mask_low
2 tpdo1_transmit_
mask_high
FFFFFFFF
FFFFFFFF
2. Transmit masking
IndexNamePossible settings
LenzeSelectionDescription
2015
Transmit PDO2
h
Mask
0 number_of_entries
1 tpdo2_transmit_
mask_low
FFFFFFFF
2 tpdo2_transmit_
mask_high
FFFFFFFF
h
h
h
h
00000000
00000000
00000000
00000000
Characteristics
ARRUINT8RO
Maximum number of
supported subindexes
h
h
h
h
{1h}FFFFFFFF
{1h}FFFFFFFF
{1h}FFFFFFFF
{1h}FFFFFFFF
UINT32 RW
h
Mask for masking out
individual bits of the PDOs.
UINT32 RW
h
Mask for masking out
individual bits of the PDOs.
Characteristics
ARRUINT8RO
Maximum number of
supported subindexes
UINT32 RW
h
Mask for masking out
individual bits of the PDOs.
UINT32 RW
h
Mask for masking out
individual bits of the PDOs.
34
l
KHB 13.0002−EN 4.1
Page 35
CANopen communication
Process data transfer (PDO transfer)
Description of the objects
5
5.3.4Description of the objects
Identifier of the PDO (COB_ID_used_by_PDO)
The identifier on which the respective PDO is to be sent or received must be entered in the
COB_ID−used_by_PDO object. If bit 31 is set, the respective PDO is deactivated. This is the
default setting for all PDOs. In addition, bit 30 (no RTR allowed) must be set for every access.
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−out COB ID + C0000000
ƒ Write the new COB ID + C0000000
ƒ Write the new COB ID, the PDO is active again.
Transmission mode (transmission_type and inhibit_time)
For each PDO, the event leading to a message being sent (transmit PDO) or evaluated
(receive PDO) can be defined:
ValueMeaningPermitted for
00h − F0
FE
h
FF
h
Sync telegram
h
The numerical value specifies how many sync telegrams are ignored between two
transmissions before the PDO is
− sent (TPDO) or
− evaluated (RPDO).
Cyclic
The TPDO is cyclically updated and sent by the drive controller. The time interval is
specified with the inhibit_time object.
RPDOs, however, are evaluated immediately after the receipt.
Change
The TPDO is sent if at least one bit of the PDO data has changed.
The inhibit_time can be used to additionally specify the minimum time interval (in
100 ms steps) between the transmission of two PDOs.
h
h
TPDO
RPDO
TPDO
(RPDO)
TPDO
KHB 13.0002−EN 4.1
The use of all other values is not permitted.
Number of objects to be transferred (number_of_mapped_objects)
This object specifies how many objects are to be mapped into the corresponding PDO. The
following restrictions have to be taken into account:
ƒ It is not possible to map more than 4 objects per PDO
ƒ A PDO can have a maximum of 64 bits (8 bytes).
l
35
Page 36
5
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 index, 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 bits8 bits8 bits
ƒ Index: Main index of the object to be mapped (hex)
ƒ Subindex: Subindex of the object to be mapped (hex)
ƒ Length: Length of the object (hex)
The following mandatory procedure serves to simplify the mapping:
1. The number of the mapped objects is set to 0.
2. The first_mapped_object ... fourth_mapped_object parameters can be written (the
total length of all objects is not relevant at this time).
3. The number of the mapped objects is set to a value between 1 ... 4. The total length
of these objects must not exceed 64 bits.
Masking (transmit_mask_high
If "change" is selected for the transmission_type, the TPDO is always sent if at least 1 bit
of the TPDO has changed.
However, very often it is necessary to send the TPDO only if a certain bit has changed. For
this purpose, the TPDO can be provided with a mask. Only those bits of the TPDO are
evaluated which are set to "1" in the mask.
In the default setting all bits of the masks are set.
and transmit_mask_low)
36
l
KHB 13.0002−EN 4.1
Page 37
CANopen communication
Process data transfer (PDO transfer)
Example of a process data telegram
5
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
ƒ Digital_inputs, index 60FD_00
(controller control),
h
h
The first transmit PDO (TPDO 1) is to be used, and it is always to be sent if one of the digital
inputs changes, but not more often than every 10 ms. The identifier used for this PDO is to
be 187
.
h
1. Delete the number of objects.
DescriptionNameValue
To enable the change of the object mapping, the number of
objects has to be set to zero.
2. Parameterise the objects which are to be mapped.
DescriptionNameValue
The objects listed above have to be composed to form a 32−bit
value:
Index = 6041h, subindex = 00h, length = 10h (UINT16)first_mapped_object60410010
Index = 6061h, subindex = 00h, length = 08h (INT8)second_mapped_object60610008
Index = 60FDh, subindex = 00h, length = 20h (UINT32)third_mapped_object60FD0020
3. Parameterise the number of objects.
(digital inputs)
(operating mode)
h
number_of_mapped_objects0
h
h
h
DescriptionNameValue
The PDO has to contain 3 objectsnumber_of_mapped_objects3
h
4. Parameterise the transmission mode.
DescriptionNameValue
The PDO has to be sent if one or several of the above digital
inputs change.
In order to ensure that only changes of the digital inputs cause
the transmission of the PDO, it is masked in such a way that
only the above 16 bits of the object 60FD
The PDO is to be sent not more often than every 10 ms
(100 × 100 ms).
"come through".
h
transmission_typeFF
transmit_mask_high00FFFF00
transmit_mask_low00000000
inhibit_time64
h
h
5. Parameterise the identifier.
DescriptionNameValue
The PDO is to be sent with the identifier 187h. If the PDO is
active, it first has to be deactivated.
Read out the identifier:cob_id_used_by_pdo00000181
Set bit 31 (deactivate PDO):cob_id_used_by_pdoC0000181
Write new identifier:cob_id_used_by_pdoC0000187
Activate PDO by deleting bit 31:cob_id_used_by_pdo40000187
)Note!
The parameterisation of the PDO can only be changed if the network state
(NMT) is not operational.
h
h
h
h
h
h
KHB 13.0002−EN 4.1
l
37
Page 38
5
5.3.6Activation of the PDOs
CANopen communication
Process data transfer (PDO transfer)
Activation of the PDOs
The following criteria must be met to enable the drive controller to send or receive PDOs:
ƒ The number_of_mapped_objects object must be non−zero.
ƒ Bit 31 of the cob_id_used_for_pdos object must be deleted.
ƒ The communication state of the controller must be operational (see chapter 5.5,
network management).
The following criterion must be met to enable the parameterisation of PDOs:
ƒ The communication state of the drive controller must not be operational.
38
l
KHB 13.0002−EN 4.1
Page 39
CANopen communication
Sync telegram
Telegram structure
5
5.4Sync telegram
The sync telegram is an additional and special telegram which enables the drive controller
to cyclically read / accept process data.
5.4.1Telegram structure
11 bits4 bits
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. 4Synchronisation of cyclic process data by means of a sync telegram (without consideration of
asynchronous data)
Sync telegram
2.3.4.
epm−t111
Transmission sequence
1. After the sync telegram has been received, the cyclic process data are send from the
drive controllers to the master. The data is read by the master as process input data.
2. When the sending process is completed, the process output data (of the master) is
received by the drive controllers.
3. The data is accepted by the drive controllers with the next sync telegram.
4. All other telegrams (e.g. for parameters or event−controlled process data) are
accepted asynchronously by the drive controllers after the transmission has been
completed.
KHB 13.0002−EN 4.1
l
39
Page 40
5
CANopen communication
Sync telegram
Description of the objects
5.4.3Description of the objects
IndexNamePossible settings
LenzeSelectionDescription
1005h0 COB−ID_sync_
message
00000080
h
Characteristics
00000080
Bit no.Value
0 − 10x11−bit identifier.
11 − 280
290
30
31xAny
h
0Device does not generate
1Device generates sync
{1h}00000080
VARUINT32 RW
h
Synchronisation object
identifier 80
The extended identifier
(bit 29) is not supported.
Each bit of this range must
be "0".
sync telegrams.
telegrams.
h.
40
l
KHB 13.0002−EN 4.1
Page 41
CANopen communication
Network management (NMT)
Communication phases of the CAN network (NMT)
5
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)
With regard to communication the controller knows the following states:
StatusExplanation
"Initialisation"
(Initialisation)
"Pre−operational"
(before ready for operation)
"Operational"
(Ready for operation)
"Stopped"Only network management telegrams can be received.
After the controller is switched on, the initialisation process starts. During this
phase the controller is not involved in the data exchange on the bus.
Furthermore, a part of the initialisation or the entire initialisation process can
be executed in each NMT status by transmitting different telegrams (see "state
transitions"). All parameters will be written with their set values.
After the initialisation is completed, the controller is in the "Pre−Operational"
status.
The controller can receive parameter data.
The process data is ignored.
The controller can receive parameter data and process data.
) is reserved.
h
KHB 13.0002−EN 4.1
l
41
Page 42
5
CANopen communication
Network management (NMT)
Telegram structure
5.5.2Telegram structure
11 bits4 bitsUser data (2 bytes)
Identifier
Via the NMT, commands can be sent to one or 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 nodes of the network can be addressed 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 of the CANopen nodes are defined in a state diagram. Via the CS byte in the
NMT message state changes can be initiated. These changes are mainly orientated
towards the target state.
In the NI parameter, the node address of the drive controller has 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 only is 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)
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
the case of a change.
Network management telegrams, sync, emergency and parameter data
(SDO) are active (corresponds to enter pre−operational state)
Initialisation of all parameters in the communication module with the
stored values (corresponds to reset node")
Initialisation of communication−relevant parameters (CIA DS 301) in the
communication module with the stored values (corresponds to reset
communication")
With this assignment, all devices connected are addressed by the telegram. The
state can be changed for all devices at the same time.
xx = node IDIf a node address is specified, only the state of the addressed device will be
changed.
KHB 13.0002−EN 4.1
l
43
Page 44
5
CANopen communication
Emergency telegram
Telegram structure
5.6Emergency telegram
The drive controller monitors the functioning of its main components (including voltage
supply, power stage, angle encoder evaluation, technology slots). In addition, the motor
(temperature, angle encoder) and the limit switches are checked continuously. Incorrect
parameter settings can also cause error messages (division by zero, etc.).
If an error occurs, the error number is indicated on the display of the drive controller. If
several errors occur at the same time, the message with the highest priority (the lowest
number) is displayed.
The drive controller sends an emergency telegram if an error occurs. The identifier of this
message is composed of the identifier 80
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
eighth byte are always set to zero.
Reading−out of the number
of stored error messages.
When an error has occurred,
the error has to be
acknowledged to activate
the power stage (bit 7,
control word index 6040
UINT32 RO
Reading−out of last error
message
UINT32 RO
Reading−out of error
message
VARUINT32 RW
h
Emergency object identifier,
+ node address
080
h
The extended identifier
(bit 29) is not supported.
Each bit of this range must
be "0".
).
h
46
l
KHB 13.0002−EN 4.1
Page 47
CANopen communication
Heartbeat telegram
Telegram structure
5
5.7Heartbeat telegram
5.7.1Telegram structure
The heartbeat telegram in implemented to 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
state of the drive controller. The data length is 1.
In addition to the monitoring by the master, the bus system can be 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 controller 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.
11 bits4 bitsUser data (1 byte)
Identifier
(1792d) + node address. It only contains 1 byte of user data and the NMT
If the acknowledgement of the heartbeat telegram is missing in the heartbeat
procedure, this can – depending on the error management settings – cause an
error. This error can only be acknowledged via DIN9 or the parameter setting
program (SDC) or a restart of the drive controller (for more detailed
information please refer to the software manual).
KHB 13.0002−EN 4.1
l
47
Page 48
5
CANopen communication
Heartbeat telegram
Telegram structure
Heartbeat
COB-ID = 1792 + Node-ID
Producer
request
Heartbeat
Producer
Time
request
Fig. 6Heartbeat telegram
rReserved
sState of the Heartbeat Producer
Heartbeat producer
Heartbeat
0
r
0
r
1
s
6…0
7
1
s
6…0
7
Consumer
indication
indication
indication
indication
indication
indication
indication
indication
Heartbeat Event
Heartbeat
Consumer
Time
Heartbeat
Consumer
Time
epm−t134
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
and the drive controller changes to the operational state.
h
ƒ When the cycle time has expired, the drive controller transmits the state telegram
.
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
48
l
KHB 13.0002−EN 4.1
Page 49
5.7.2Description of the objects
CANopen communication
Heartbeat telegram
Description of the objects
5
IndexNamePossible settings
LenzeSelectionDescription
1017h0 producer_
heartbeat_time
0
Characteristics
0{1 ms}65536
0Function is deactivated
VARUINT16 RW
Time interval between two
heartbeat telegrams.
If the drive controller starts
with a non−zero time value,
the boot−up telegram is
considered to be the first
heartbeat.
KHB 13.0002−EN 4.1
l
49
Page 50
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 bits4 bitsUser 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
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.
The node guarding telegram is used to monitor the communication between salve (drive)
and master. In contrast to the heartbeat telegram, here, master and slave mutually
monitor each other.
The master cyclically polls the NMT status of the slave. In every controller response, a
certain bit will be inverted (toggled). If no response is received, the master will react
accordingly.
The slave also monitors the regular reception of the node guarding requests from the
master. If no request has been received for a certain time, the controller will activate error
46 (CAN error number 0x8120).
Since both heartbeat and node guarding telegrams are sent with the identifier
700
+ node address, the two telegrams cannot be active at the same time.
h
If both telegrams are activated at the same time, only the heartbeat telegram will be
active.
)Note!
The node guarding event and the life guarding event will only be triggered if
ƒ at least one RTR request from the NMT slave has been successful, or
ƒ at least one RTR response from the NMT master has been successful.
Please observe that the monitoring times should not be reset.
KHB 13.0002−EN 4.1
l
51
Page 52
5
CANopen communication
Node guarding telegram
Overview
Node
Life
Time
NMT-Master
Node
Guard
Time
Node
Guarding
Event
Request
Confirm
Request
Confirm
RTR
....
8
t
1
s
RTR
....
8
t
1
s
RTR
EMERGENCY
NMT-Slave
Indication
Response
Indication
Response
Life
Guarding
Event
E82ZAFU010
52
l
KHB 13.0002−EN 4.1
Page 53
CANopen communication
Node guarding telegram
Telegram structure
5
5.9.2Telegram structure
Remote Transmit Request (RTR)
NMT-Master
Request
Confirm
RTR
....
8
s
t
The NMT master cyclically sends a data telegram to the NMT slave which is referred to as
remote frame (Remote Transmit Request/RTR).
ƒ For this purpose, the RTR bit in the arbitration field of the RTR is set to the valency
After this, the NMT slave will send a response message ("response") with a user data width
of 1 byte. The identifier of the response message is the same as the identifier of the RTR
telegram.
The user data contain the NMT slave status (s, bits 0 ... 6) and the toggle bit (t, bit 7).
)Note!
The toggle bit is monitored by the NMT master.
If a telegram is received with the incorrect value in the toggle bit, it is treated
as if it were not received; i.e. the monitoring time is not reset and elapses
further.
ƒ The toggle bit
– has the value "0" when the node guarding telegram is activated for the first time.
– must change its value with every response.
– can only be reset to "0" by the "Reset_Communication" telegram of the NMT
master.
KHB 13.0002−EN 4.1
ƒ The NMT slave can change to the following states:
l
53
Page 54
5
CANopen communication
Node guarding telegram
Telegram structure
Bit (s)
Status of NMT slaveValue s
Stopped04
Operational05
Pre−operational7F
h
h
h
6543210
0000100
0000101
1111111
Guard time
The time interval with which the NMT master sends the RTR telegram is the "Guard time",
object 100C. For each NMT slave, an individual time interval can be set.
The RTR prompts the NMT slave to send its current data.
Monitoring starts with the first remote request received from the master. From this time
on, the remote requests must be received before expiry of the set monitoring time.
Otherwise, error 46 will be activated.
If the monitoring time is set to zero, the node guarding monitoring is deactivated.
Node life time
The "node life time" is the product of the guard time" and the life time factor":
Node life time = life time factor x guard time
"Life time factor" and "guard time" have to be known to the NMT master. For this, the
values from the NMT slave are read at each restart, or defined values are sent to the NMT
slave at each restart.
For each NMT slave an individual node life time" can be set.
OK status
The status of the connection is ok ("OK status") if
ƒ the NMT slave has received a request from the NMT master within the "node life
time" and
ƒ the NMT master has received a correct response from the NMT slave within the
"node life time".
In the OK status, the monitoring times for the NMT master and the NMT slave are reset and
the node guarding telegram is continued.
54
l
KHB 13.0002−EN 4.1
Page 55
CANopen communication
Node guarding telegram
Description of the objects
5
5.9.3Description of the objects
IndexNamePossible settings
LenzeSelectionDescription
100Ch0 guard_time0
100Dh0 life_time_factor0
0{1 ms}65535
01
Characteristics
VARUINT16 RW
For activating the node
guarding monitoring
function, the maximum time
between two remote
requests from the master is
parameterised. The
controller calculates this
time from the product of
guard_time and
life_time_factor. Therefore it
is recommended to overwrite
the life_time_factor with 1
and to select the time
directly via the guard_time
in milliseconds.
VARUINT8RW
The life_time_factor should
be overwritten with 1 to
select the guard_time
directly.
KHB 13.0002−EN 4.1
l
55
Page 56
6
Commissioning
Activation of CANopen
6Commissioning
6.1Activation of CANopen
The CAN interface is activated once with the CANopen protocol via the serial interface of
the drive controller. The CAN protocol is activated via the CANopen window of the small
drive control (SDC).
931e_380
Three different parameters have to be set:
ƒ Basic node number (node address)
In order to unambiguously identify the nodes in the network, each node must be assigned
a node address which may only appear once in the network. Via this node address the
device is addressed.
As an additional option, the node address of the drive controller can be made dependent
on the external wiring. If this function is activated, the input combination of the digital
inputs DIN4 and DIN5 (or the DIN0 … DIN5, depending on the selected evaluation of
AIN / DIN in the ’digital inputs’ menu) is added to the basic node address once after a reset.
ƒ Baud rate
This parameter determines the baud rate (in kBaud / kbps) used on the CAN bus. Adapt the
baud rate to the length of the transmission cable.
ƒ CANopen active
Activating communication in this field activates the CAN communication. The CAN
communication parameters cannot be changed anymore until communication has been
deactivated again.
)Note!
Please observe that the parameterisation of the CANopen functionality is only
preserved after a reset if the parameter set of the drive controller has been
saved in the EEPROM of the drive controller.
l 56
KHB 13.0002−EN 4.1
Page 57
Commissioning
Speed control
Parameterising of a process data object (TPDO and RPDO)
6
6.2Speed control
The purpose of this example is to show how a speed control can be commissioned via the
CAN bus.
1. Use/activation of the transmit PDO1 (transmission of actual speed and status word)
and of the receive PDO1 (setpoint speed)
2. Control of the network management
3. Parameterisation of the motor, current and speed controller
4. Definition of the operating mode (speed control)
5. Selection of a speed setpoint
6. Commissioning of the speed controller via the state machine
6.2.1Parameterising of a process data object (TPDO and RPDO)
This example shows the adaptation and activation of a transmit PDO (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
KHB 13.0002−EN 4.1
l 57
Page 58
6
Commissioning
Speed control
Parameterising of a process data object (TPDO and RPDO)
No. DescriptionIdenti
1Network management (NMT)
For the parameterisation of the PDO, the
network management is set to the
’pre−operational’ mode (80
2Deactivation of the TPDO
The PDO is deactivated by setting bit 31.
3Deletion of the number of objects
To enable the changing of the object
mapping, the number of objects
(number_of_mapped_objects) must be
set to zero.
4Parameterisation of the first object to be
mapped
The index of the object to be mapped
1A00_01
the length of the corresponding variable
type must be specified here. The first
object to be mapped is the actual speed
(index 606C_00
bits (20
5Parameterisation of the second object to
be mapped
The second object to be mapped
(second_mapped_object) is the status
word (index 6041_00
16 bits (10
6Definition of the number of objects
In this example, 2 mapped objects
(actual speed and status word) are to be
transferred
(number_of_mapped_objects).
7Parameterisation of the transmission
mode
The PDO is to be transferred at cyclic
intervals (FF
transmission_type).
8Definition of the transmission cycle time
The transmission cycle time
(inhibit_time) is to be set to 10 ms
(100 × 100 ms).
9Activation of the TPDO
The TPDO is activated by cancelling bit
31.
10 Network management (NMT)
For the parameterisation of the PDO, the
network management is set to the
’operational’ mode (01
(first_mapped_object) and
h
) with a length of 32
h
).
h
).
h
is entered for the
h
Tab. 2Example of parameterising a transmit PDO
).
h
) with a length of
h
).
h
Control
fier
length
0028000000000000000
601823001801810100C0
60152F001A0000000000
601823001A0120006C60
601823001A0210004160
60152F001A0002000000
60152F001802FF000000
60162B00180364000000
60182300180181010040
0020100000000000000
field
Data
Comma
nd code
IndexSubin
Low
High
byte
byte
Data 1 Data 2 Data 3 Data 4
dex
l 58
KHB 13.0002−EN 4.1
Page 59
Commissioning
Speed control
Parameterising of a process data object (TPDO and RPDO)
6
No. DescriptionIdenti
1Network management (NMT)
For the parameterisation of the PDO, the
network management is set to the
’pre−operational’ mode (80
2Deactivation of the RPDO
The RPDO is deactivated by setting bit
31.
3Deletion of the number of objects
To enable the changing of the object
mapping, the number of objects
(number_of_mapped_objects) must be
set to zero.
4Parameterisation of the first object to be
mapped
The index of the object to be mapped
(first_mapped_object) and the length of
the corresponding variable type must be
specified here. The first object to be
mapped is the setpoint speed (index
60FF_00
5Definition of the number of objects
In this example, 1 mapped object
(setpoint speed ) is to be transferred
(number_of_mapped_objects).
6Parameterisation of the transmission
mode
The PDO is to be transferred at cyclic
intervals (FF
transmission_type).
7Activation of the RPDO
The PDO is activated by cancelling bit
31.
8Network management (NMT)
For the parameterisation of the PDO, the
network management is set to the
’operational’ mode (01
) with a length of 32 bits (20h).
h
is entered for the
h
Tab. 3Example of parameterising a receive PDO
).
h
).
h
fier
0028000000000000000
601823001401010200C0
60152F00160000000000
6018230016012000FF60
60152F00160001000000
60152F001402FF000000
60182300140101020040
0020100000000000000
Control
field
Data
length
Comma
nd code
IndexSubin
Low
High
byte
byte
Data 1 Data 2 Data 3 Data 4
dex
KHB 13.0002−EN 4.1
l 59
Page 60
6
Commissioning
Speed control
Parameterising of the motor and the current controller
6.2.2Parameterising of the motor and the current controller
In addition to the motor parameters (rated current, number of pole pairs), the
safety−relevant parameters (max. current, i
2
t tripping criterion) also have to be specified
in advance. The current controller parameters can be adapted as well.
No. DescriptionIdenti
1Entry of the rated motor current
The rated motor current
(motor_rated_current) is entered in mA
(example: 5000 mA corresponds to
)
1388
h
2Definition of the maximum current
To restrict the current (max_current) /
the maximum torque, the current is
limited to twice the rated motor current
(corresponds to 2000 / 07D0
3Definition of the number of poles
For a 2−pole−pair motor, the number of
poles (pole_number) is 4.
4Setting of the i2t tripping time
The tripping time (iit_ratio_time) is set
to 5000 ms (corresponds to 1388
5Setting of the current controller (Kp)
A gain (torque_control_gain) of K
(corresponds to 0200
6Setting of the current controller (Tn)
A reset time (torque_control_time) of
= 10 ms (corresponds to 2710h) is
T
n
selected.
Tab. 4Example of parameterising the current controller and the motor type
h
).
h
) is selected.
).
h
= 2
p
Control
fier
length
60182375600088130000
60162B736000D0070000
60152F4D600004000000
60162B10640388130000
60162B2F600100020000
60162BF6600210270000
field
Data
Comma
nd code
Low
byte
IndexSubin
dex
High
byte
Data 1 Data 2 Data 3 Data 4
l 60
KHB 13.0002−EN 4.1
Page 61
Commissioning
Speed control
Parameterising of the speed control
6
6.2.3Parameterising of the speed control
Before a control can be put into operation, it is often necessary to adapt the controller
parameters in order to ensure a dynamic and sufficiently damped operational
performance. The dimensioning of the controller parameters depends on the existing
system / the respective process and must be executed in advance.
The following short example shows the selection and subsequent parameterisation of the
speed control. In addition to the control parameters (K
safe operation (maximum speed, maximum acceleration and maximum braking
deceleration) are specified.
No. DescriptionIdenti
1Definition of the operating mode
For the operating mode
(modes_of_operation), the speed
control (03) is selected.
2Setting of the speed controller (Kp)
A gain (velocity_control_gain) of K
(corresponds to 200
3Setting of the speed controller (Tn)
A reset time (velocity_control_time) of
= 10 ms (corresponds to 2710h) is
T
n
selected.
4Setting of the actual speed value filter
The time constant of the speed filter
(velocity_control_filter_time) is set to
0.5 ms (corresponds to 1F4
5Definition of the maximum speed
The maximum speed (end_velocity) is
set to 3000 rpm (corresponds to 0BB8
6Definition of the maximum acceleration
The maximum acceleration
(profile_acceleration) is
20000 rev × 4096 inc/rev × 1/min/s
(corresponds to 4E20000
7Definition of the maximum braking
deceleration
The maximum deceleration
(profile_deceleration) is
20000 rev × 4096 inc/rev × 1/min/s
(corresponds to 4E20000
Tab. 5Parameterisation of a speed controller
) is selected.
h
h
).
h
).
h
= 2
p
).
).
h
Control
fier
field
Data
length
60152F60600003000000
60162BF9600100020000
60162BF9600210270000
60162BF96004F4010000
601823826000B80B0000
6018238360000000E204
6018238460000000E204
Comma
nd code
p
IndexSubin
Low
High
byte
byte
, Tn), the limit values required for
Data 1 Data 2 Data 3 Data 4
dex
KHB 13.0002−EN 4.1
l 61
Page 62
6
Commissioning
Speed control
Running through the state machine
6.2.4Running through the state machine
After all parameters required for the cascade control (current and speed control) have been
defined, the drive can be commissioned via the state machine. First a speed setpoint is
defined and sent once via an SDO access and once via the RPDO. Then the run through the
state machine follows.
No. DescriptionIdenti
1Selection of the speed setpoint via SDO
access
The speed setpoint (target_velocity) is
set to 1000 rpm.
2Selection of the speed setpoint via RPDO
The speed setpoint is set to 1000 rpm
via the RPDO. For speed selection either
method 1 or method 2 can be used.
3State query (read)60144041600000000000
4Control word: acknowledge error
If an error has occurred, it can be reset
with the ’fault reset’ command after the
error cause has been eliminated. If there
is no error, continue with step 6.
5State query (read)60144041600000000000
6Control word: shut down
With the ’shut down’ command, the
state is adapted to ready to switch on.
7State query (read)60144041600000000000
8Control word: switch on
With the ’switch on’ command, the
state is adapted to switched on.
9State query (read)60144041600000000000
10 Control word: enable operation
With the ’enable operation’ command,
the state is adapted to operation enable.
Voltage is now applied to the motor and
the setpoint is being approached.
11 State query (read)60144041600000000000
12 Operation of the control
While the control is in operation, further
changes (e.g. of the setpoint) can be
made.
13 Control word: disable voltage
This command switches off the drive
and sets it to the switch on disabled
state.
Tab. 6Commissioning of speed control via the state machine
Control
fier
length
601823FF6000E8030000
2014E803000000000000
60162B40600008000000
60162B40600006000000
60162B40600007000000
60162B4060000F000000
60162B40600000000000
field
Data
Comma
nd code
IndexSubin
Low
High
byte
byte
Data 1 Data 2 Data 3 Data 4
dex
l 62
KHB 13.0002−EN 4.1
Page 63
Commissioning
6
Speed control
Running through the state machine
Switched
on disabled
Ready to
switch on
Switched
State
Operation
on
Enable
Controlword
Shut down
Controlword
Switch on
Controlword
Enable Operation
Speed control during operation
Length
Identifier
601h 62Bh 40h 60h 00h 06h 00h 00h 00h
601h 607h 40h 60h 00h 07h 00h 00h 00h
601h 60Fh 40h 60h 00h 0Fh 00h 00h 00h
Command
Mainindex
Subindex
(change of speed setpoint is possible)
Controlword
Switched
on disabled
Fig. 7Representation of a state machine during speed control commissioning
Disable Voltage
601h 61Fh 40h 60h 00h 00h 00h 00h 00h
931E_401
KHB 13.0002−EN 4.1
l 63
Page 64
6
Commissioning
Position control
Parameterising of the homing run
6.3Position control
The aim of this example is to show the principle of parameterising and executing homing
runs. A drive controller with the node address 1 is assumed to be the communicating node.
In addition, the commissioning of a position control is explained.
The lower−level current and speed control must be set according to chapters 6.2.2 and 6.2.3.
The following description assumes these drive controllers being set accordingly.
6.3.1Parameterising of the homing run
Prior to the execution of the homing run, the homing method, the homing speeds and
accelerations must be defined. Then the homing run can be performed.
No.DescriptionIdenti
1Selection of the homing operating mode
For the operating mode
(modes_of_operation), homing (06) is
selected.
2Definition of the homing method
For the homing method, travel to the
limit switch in negative direction under
consideration of the zero pulse is set
(value 1).
3Setting of the fast homing speed
The travelling speed used for searching
for the limit switch
(speed_during_search_for_switch) is set
to 100 rpm.
4Setting of the slow homing speed
The travelling speed used for searching
for the zero pulse
(speed_during_search_for_zero) is set to
50 rpm.
Tab. 7Parameterisation of homing
fier
60152F60600006000000
60152F98600001000000
60162B99600164000000
60162B99600232000000
Control
field
Data
length
Comma
nd code
IndexSubin
Low
High
byte
byte
Data 1 Data 2 Data 3 Data 4
dex
The homing state is indicated in the status word. Bit 12 shows whether the started homing
process is completed (homing_attained) or whether it is still running.
In difference to the other operating modes, an additional step is required for running
through the state machine when the state change operation enabled has been made.
Homing can then be started with bit 4 of the control word.
l 64
KHB 13.0002−EN 4.1
Page 65
Commissioning
Position control
Parameterising of the homing run
6
No. DescriptionIdenti
1State query (read)
Each change of the state must be
executed depending on the initial state.
After a state change you have to wait for
the state change being indicated in the
status word.
2Control word: shut down
With the ’shut down’ command, the
state is adapted to
Ready_To_Switch_On.
3State query (read)
(Explanation see step 1)
4Control word: switch on
With the switch on command, the state
is adapted to Switched_On.
5State query (read)
(Explanation see step 1)
6Control word: enable operation
With the enable operation command,
the state is adapted to
Operation_Enable.
Voltage is now applied to the motor.
However, the homing run does not start
yet.
7State query (read)
(Explanation see step 1)
8Control word: Enable operation and
homing start
The enable operation and homing start
commands start the homing run.
9State query (read)
At this point the homing run is
executed. Homing is completed when
bit 12 (homing attained) is set in the
status word.
10 Control word: disable voltage
This command switches off the drive
and sets it to the Switch_On_Disabled
state.
Tab. 8Execution of the homing run by means of the state machine
fier
60144041600000000000
60162B40600006000000
60144041600000000000
60162B40600007000000
60144041600000000000
60162B4060000F000000
60144041600000000000
60162B4060001F000000
60144041600000000000
60162B40600000000000
Control
field
Data
length
Comma
nd code
IndexSubin
Low
High
byte
byte
Data 1 Data 2 Data 3 Data 4
dex
KHB 13.0002−EN 4.1
l 65
Page 66
6
Commissioning
Position control
Running through the state machine
6.3.2Running through the state machine
When the homing run has been performed, the position control can be executed. This
requires that the target position is defined. In addition the position controller, the required
control accuracy, and the ramps and the speed for the profile generator must be
parameterised.
No. DescriptionIdenti
1Definition of the operating mode
For the operating mode
(modes_of_operation), the position
control (01) is selected.
2Setting of the position controller (Kp)
A gain (position_control_gain) of K
(corresponds to 0200
3Setting of the maximum positioning
speed
The maximum speed
(position_control_v_max) is set to
1000 rpm.
4Definition of the profile speed
The profile velocity is used to define the
travelling speed of the positioning
process (v = 100 rpm).
5Definition of the final speed
The end_velocity is used to define the
travelling speed at the end of the
positioning process.
Must be set to 0 m/s!
6Setting of the profile acceleration
The profile_acceleration object is used
to define the acceleration.
7Setting of the profile deceleration
The profile_deceleration object is used
to define the deceleration.
8Setting of the position window
The position window
(position_error_tolerance_window) is
used to define a range in which the drive
controller does not intervene.
One revolution corresponds to an entry
of 65536. Here 1/100 rev (655) is
entered.
9Definition of the position window
The target position (target_position) is
assumed to be reached if the actual
position of the position controller
(position_actual_value) is within a
window (position_window) around the
target position. The value selected is
1/100 rev.
10 Definition of the position time
If the actual position is within the
position window for the time specified
here (position_window_time), the
target reached bit is set in the status
word. The time is set to 100 ms.
Tab. 9Parameterisation of the position control
) is selected.
h
p
fier
60152F60600001000000
60162BFB600100020000
= 2
601823FB6004E8030000
60182381600064000000
60182382600000000000
60182383600010270000
60182384600010270000
601823FB60058F020000
6018236760008F020000
60162B68600064000000
Control
field
Data
length
Comma
nd code
IndexSubin
Low
High
byte
byte
Data 1 Data 2 Data 3 Data 4
dex
l 66
KHB 13.0002−EN 4.1
Page 67
Commissioning
Position control
Running through the state machine
A change in the position is performed – as for all other operating modes as well – via a
change of the state machine. This is described below:
6
No. DescriptionIdenti
1Selection of the position setpoint via
SDO access
The position setpoint (target_position)
is set to 1000 rev (1 rev = 4096
increments).
2State query (read)60144041600000000000
3Control word: acknowledge error
If an error has occurred, it can be reset
with the fault reset command after the
error cause has been eliminated. If there
is no error, continue with step 4.
4State query (read)60144041600000000000
5Control word: shut down
With the ’shut down’ command, the
state is adapted to
Ready_To_Switch_On.
6State query (read)60144041600000000000
7Control word: switch on
With the switch on command, the state
is adapted to Switched_On.
8State query (read)60144041600000000000
9Control word: enable operation
With the enable operation command,
the state is adapted to
Operation_Enable.
Voltage is now applied to the motor. The
target is not yet being approached.
10 State query (read)60144041600000000000
11 Control word: enable operation and new
setpoint
With the enable operation and new
setpoint commands, the state is
adapted to Operation_Enable. Voltage is
now applied to the motor and the
setpoint is being approached.
12 State query (read)60144041600000000000
13 Operation of the control
During operation further changes (e.g. of
the setpoint) can be made.
14 Control word: disable voltage
This command switches off the drive
and sets it to the Switch_On_Disabled
state.
Tab. 10Commissioning of position control via the state machine
Control
fier
length
6018237A60000000E803
60162B40600008000000
60162B40600006000000
60162B40600007000000
60162B4060000F000000
60162B4060001F000000
60162B40600000000000
field
Data
Comma
nd code
IndexSubin
Low
High
byte
byte
Data 1 Data 2 Data 3 Data 4
dex
KHB 13.0002−EN 4.1
l 67
Page 68
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 00h 00h 00h
601h 607h 40h 60h 00h 07h 00h 00h 00h
601h 60Fh 40h 60h 00h 0Fh 00h 00h 00h
601h 60Fh 40h 60h 00h 1Fh 00h 00h 00h
Command
Mainindex
Subindex
Execution of positioning process
Controlword
Switched
on disabled
Disable Voltage
Fig. 8Representation of a state machine during position control commissioning
601h 61Fh 40h 60h 00h 00h 00h 00h 00h
931E_402
l 68
KHB 13.0002−EN 4.1
Page 69
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 drive controller is provided with three parameter sets:
ƒ Current parameter set
This parameter set is stored in the volatile memory (RAM) of the drive controller. It can
be read or written to as desired with the Small Drive Control parameterisation program
or via the CAN bus. When switching on the drive controller, the application parameter
set is copied into the current parameter set.
Parameter setting
Loading and saving of parameter sets
Overview
7
ƒ Default parameter set
This parameter set is the unchangeable parameter set of the drive controller which is
preset by default. By writing into the CANopen object 1011_01h
(restore_all_default_parameters), the default parameter set can be copied into the
current parameter set . This copying process is only possible if the power stage is
switched off.
ƒ Application parameter set
The current parameter set can be saved in the non−volatile flash memory. The saving
process is initiated by a write access to the CANopen object 1010_01h
(save_all_parameters). When the drive controller is switched on, the applicationparameter set is automatically copied into the current parameter set.
The following diagram illustrates the connections between the different parameter sets.
of the
Application
parameter set
CANopen-
object 1010
Default
parameter set
CANopen
object 1011
Switch-on
controller
Current
parameter set
KHB 13.0002−EN 4.1
931e_412
Fig. 9Connections between the parameter sets
l 69
Page 70
7
Parameter setting
Loading and saving of parameter sets
Overview
There are two possible variants for the parameter set management:
1. The parameter set is created with the Small Drive Control (SDC) parameterisation
program and transferred to the different drive controllers. When this method is
used, only the objects which can solely be accessed via CANopen have to be set via
the CAN bus.
The disadvantage of this method is that the parameterisation software is required for
the commissioning of a new drive controller or in the event of a repair being necessary
(replacement of the drive controller). Therefore this method only makes sense for
single controllers.
2. This variant is based on the fact that most application−specific parameter sets differ
from the default parameter set in only a few parameters. Due to this, it is possible to
recreate the current parameter set via the CAN bus after every switching on of the
system.
For this purpose, the higher−level control first loads the default parameter set (calling
of the CANopen object 1011_01h restore_all_default_parameters). Then only the
differing objects are transferred. The whole process takes less than 1 second per drive
controller. The advantage of this method is that it also functions for unparameterised
drive controllers, so that the commissioning of new systems or the replacement of
individual controllers does not cause any problems and the parameterisation software
is not needed.
)Note!
We recommend to use the second variant. Please observe that not all
parameters can be set via CAN. If the setting of these parameters is required,
the first variant has to be used.
(Stop!
Uncontrolled rotation of the motor
An incorrect parameter set can cause uncontrolled rotation of the motor.
Possible consequences:
ƒ This may result in property damage.
Protective measures:
ƒ Before the initial switch−on of the power stage, ensure that the drive
controller really contains the correct parameter set.
l 70
KHB 13.0002−EN 4.1
Page 71
Parameter setting
Loading and saving of parameter sets
Description of the objects
7
7.1.2Description of the objects
IndexNamePossible settings
LenzeSelectionDescription
1010h0 store_parameters
1 save_all_
parameters
1011h0 restore_parameters
1 restore_all_default
_parameters
00000001h00000000
00000001h00000000
00000000
65766173
64616F6C
00000001
Characteristics
ARRUINT8RO
Not used.
h
h
h
h
h
h
{1h}65766173
SaveDefault parameter set is
{1h}64616F6C
LoadLoading of default parameter
UINT32 RW
h
Acceptance of default
parameter set in application
parameter set.
Default parameter set is not
accepted.
accepted.
ARRUINT8RO
Query on the number of
possible objects.
UINT32 RW
h
Loading of the default
parameter set, only possible
if the power stage is
deactivated.
The CAN communication
parameters (node no., baud
rate and operating mode)
remain unchanged.
set.
Read access: Reset to default
values.
KHB 13.0002−EN 4.1
l 71
Page 72
7
Parameter setting
Conversion factors (factor group)
Overview
7.2Conversion factors (factor group)
7.2.1Overview
Drive controllers are used in numerous applications, for instance as direct drives, with
downstream gearboxes, for linear drives, etc.
To enable simple parameterisation for all these different applications, the drive controller
can, by means of the factory group, be parameterised in such a way that the user can enter
or read out all quantities (e.g. the speed) directly on the drive in the units desired (e.g.
position values in millimetres and speeds in millimetres per second in the case of a linear
axis).
The drive controller then converts the entries to internal units by means of the factor group.
For every physical quantity (position, speed and acceleration) there is a conversion factor
for adapting the user units to the own application.
The units set by the factor group are generally designated as positions_units, speed_units
or acceleration_units.
The below diagram illustrates the function of the factor group.
Factor Group
02
position_units
speed_units
acceleration_units
Fig. 10Factor group
0 User units
1 Controller−internal units
2 Position
3 Speed
4 Acceleration
position_factor
3
velocity_encoder_factor
4
acceleration_factor
±1
position_polarity_flag
±1
±1
velocity_polarity_flag
±1
1
increments (inc)
1 rpm
1 rpm/256s
931e_414
l 72
KHB 13.0002−EN 4.1
Page 73
Parameter setting
Conversion factors (factor group)
Overview
In the controller, all parameters are stored in the form of internal units. When they are
written or read out, they are converted by means of the factor group.
)Note!
The factor group should be set prior to the first parameterisation and should
not be changed during a parameterisation process.
The factory group is set to the following units as default:
QuantityDesignationUnitExplanation
Lengthposition_unitsincrements65535 increments per revolution
Speedspeed_unitsrpmRevolutions per minute
Accelerationacceleration_unitsrpm/sSpeed increase per second
U
E
x
1
7
Fig. 11Overview: Factor Group
U
Input−end speed
E
Output−end speed
U
A
Position_units in degrees
x
1
Position_units in mm
x
2
U
A
x
2
931e_415
KHB 13.0002−EN 4.1
l 73
Page 74
7
Parameter setting
Conversion factors (factor group)
Description of the objects
7.2.2Description of the objects
Object 6093
The position_factor object serves to convert all length units of the application from
position_units to the internal unit of increments (65535 increments correspond to
1 revolution).
The numerator and the denominator have to be written separately into the drive
controller. It can, therefore, be necessary to bring the fraction to integers by appropriate
expansions.
The position_factor is calculated using the following formula:
position_factor +
Example: The unit required at the output end is 1 rev (position_unit)
1. 1 inc = 1/65535 rev
2. Result:
Numerator = 1
Divisor = 65535
: position_factor
h
numerator
divisor
l 74
KHB 13.0002−EN 4.1
Page 75
Parameter setting
Conversion factors (factor group)
Description of the objects
Object 6094h: velocity_encoder_factor
The velocity_encoder_factor object serves to convert all speed values of the application
from speed_units to the internal unit of revolutions per minute.
The object consists of two parts: A factor for conversion of internal length units to
position_units and a factor for conversion of internal time units to user−defined time units.
The velocity_encoder_factor is calculated using the following formula:
7
velocity_encoder_factor +
Object 6097h: acceleration_factor
The acceleration_factor object serves to convert all acceleration values of the application
from acceleration_units to the internal unit of revolutions per minute per 256 seconds.
The object consists of two parts: A factor for conversion of internal length units to
position_units and a factor for conversion of internal time units to user−defined time units.
The acceleration_factor is calculated using the following formula:
acceleration_factor +
numerator
divisor
Object 607Eh: polarity
IndexNamePossible settings
LenzeSelectionDescription
607Eh0 polarity00
h
numerator
divisor
00
h
Bit 640
Bit 780
Characteristics
{04h}40
0multiply by 1velocity_polarity flag
h
1multiply by −1
0multiply by 1position_polarity flag
h
1multiply by −1
80
h,
VARUINT8RWMAP
C0
h,
h
Setting of the signs of
position and speed values.
By changing the sign, the
direction of rotation can be
inverted.
Often it makes sense to set
both flags to the same value.
KHB 13.0002−EN 4.1
l 75
Page 76
7
Parameter setting
Power stage parameters
Overview
7.3Power stage parameters
7.3.1Overview
7.3.2Description of the objects
The power stage of the drive controller comprises several safety functions, some of which
can be parameterised:
ƒ Controller enable logic (software and hardware enable)
ƒ Overcurrent monitoring
ƒ Overvoltage / undervoltage monitoring of the DC bus
ƒ Power stage monitoring
Object 6510_10
h
{Danger!
Dangerous voltage
Even if the digital input DIN9 (controller enable) is not set, a dangerous voltage
may be applied to the motor.
Possible consequences:
ƒ This means a danger to life when working on the motor.
Protective measures:
ƒ Disconnect the motor from the mains before starting to work on it.
: enable_logic
With a rising edge and a HIGH level at the digital input DIN9 controller enable is detected.
To enable the activation of the controller’s power stage, the drive controller must be in the
"ready for operation" state.
If this is the case, the drive controller changes to the "switch on power stage" state and the
microprocessor activates the power transistors.
This in turn means that a previously switched−on power stage cannot be switched off if the
microprocessor is defective. The only possibility to switch off the power stage in this case
is to switch off the DC bus and the logic supply.
The drive controller’s response to the cancellation of the signal depends on the operating
mode:
ƒ Positioning operation and speed−controlled operation
When the signal is cancelled, the motor is braked along a defined deceleration ramp.
The power stage is switched off when the motor speed falls below 10 rpm and the
eventually existing holding brake has been applied.
ƒ Torque−controlled operation
When the signal is cancelled, the power stage is immediately switched off.
Simultaneously an eventually existing holding brake is applied. This means that the
motor coasts without braking or is only stopped by the eventually existing holding
brake.
l 76
KHB 13.0002−EN 4.1
Page 77
Parameter setting
Power stage parameters
Description of the objects
7
IndexNamePossible settings
LenzeSelectionDescription
6510h10 enable_logic20{1}2
0Controller enable via digital
1Controller enable via digital
2Controller enable via digital
Characteristics
UINT16 RWMAP
Setting of the power stage
enable.
input DIN9
inputs DIN9 and RS232
inputs DIN9 and CAN−Bus
KHB 13.0002−EN 4.1
l 77
Page 78
7
Parameter setting
Current controller and motor adaptation
Overview
7.4Current controller and motor adaptation
(Stop!
Motor and drive controller overload
The current controller parameters and the current limitation can be set
incorrectly and cause overloading of the motor and the drive controller.
Possible consequences:
ƒ The motor and the drive controller can be damaged within a very short
period of time.
Protective measures:
ƒ Before switching on the drive controller, ensure that the current controller
parameters and the current limitation are correctly set.
7.4.1Overview
(Stop!
Uncontrolled rotation of the motor
If the phase sequence is reversed in the motor or angle encoder cable, positive
feedback effects may occur resulting in the motor speed not being
controllable.
Possible consequences:
ƒ This may result in property damage.
Protective measures:
ƒ Before switching on the motor, check that the motor cable and the angle
encoder cable are connected in the correct phase relation.
The parameter set of the drive controller has to be adapted to the connected motor and to
the cable set used. This concerns the following parameters:
ƒ Rated current: Depends on the motor
ƒ Overload capacity: Depends on the motor
ƒ Number of poles: Depends on the motor
ƒ Current controller: Depends on the motor
ƒ Direction of rotation: Depends on the motor and on the phase sequence in the
motor cable and the angle encoder cable
ƒ Offset angle: Depends on the motor and on the phase sequence in the motor cable
and the angle encoder cable
This data has to be specified by means of the Small Drive Control program at the first use
of a motor type. For several motors, there are ready−made parameter sets available from
Lenze. Please observe that the direction of rotation and the offset angle also depend on the
cable set used.
l 78
KHB 13.0002−EN 4.1
Page 79
Parameter setting
Current controller and motor adaptation
Description of the objects
7
7.4.2Description of the objects
IndexNamePossible settings
LenzeSelectionDescription
6075h0 motor_rated_
current
6073h0 max_current20230{motor_rated_
604Dh0 pole_number22{2}254
6410h0 motor_data
3 iit_time_motor20000{1 ms}10000
4 iit_ratio_motor{1 }
10 phase_order10{1}1
11 resolver_offset_
angle
5000{1 mA}
65535
current/1000}
0Phase sequence: left
1Phase sequence: right
11360−32767{1 inc}32767
Characteristics
VARUINT32 RWMAP
Input value for Ir (specified on
the motor nameplate). The
value must be smaller than
the rated controller current.
If this index is changed, the
index 6073
also must be parameterised
again.
VARINT16RWMAP
Input value for I
The value for index 6075
motor_rated_ current must
be entered before this value
can be input.
VARUINT8RWMAP
Number of motor poles.
RECUINT8RO
Reading−out of the motor
data.
UINT16 RW
Setting of the time interval
for which the motor can be
fed with I
When this time has expired,
the motor is automatically
limited to the value set under
6075
UINT16 ROMAP
Reading−out of the actual
utilisation ratio of the I
limitation.
UINT16 RWMAP
Setting of the phase
sequence.
See ’angle encoder’ dialog
box in the SDC
parameterisation program.
INT16RWMAP
Setting of the angle encoder
orientation with respect to
the permanent magnetic
field of the rotor.
See ’angle encoder offset
angle’ dialog box in the SDC
parameterisation program.
Conversion:
a = offset angle
× 32767/180°
= 11360 (with offset angle
= 62.4°)
.
h
max_current
h
max
(index 6073h).
max
.
h
2
t
KHB 13.0002−EN 4.1
l 79
Page 80
7
Parameter setting
Current controller and motor adaptation
Description of the objects
2415h0 current_limitation
1 limit_current_
input_channel
2 limit_current00{1 mA}100000
60F6h0 torque_control_
parameters
1 torque_control_
gain
2 torque_control_
time
Possible settingsNameIndex
00
h
2560{1}32 × 256
2000100{1 ms}65500
00
h
0No limitation
1AIN0
2AIN2
3RS232
4CAN
{1h}04
Characteristics
DescriptionSelectionLenze
RECINT8RO
Limitation von I
(independently of the
operating mode).
Torque−limited speed
operation is possible.
INT8RW
h
Setpoint source for the
limiting torque.
INT32RW
l Setpoint source RS232,
CAN: limitation of the
torque−proportional
current
l Setpoint sources AIN0,
AIN1: Selection of the
scaling factor for the
analog inputs. The current
in mA corresponds to an
applied voltage of 10 V.
RECUINT8RO
Reading−out of PI−controlled
current controller data.
The gain and the time
constant apply to both the
field−generating and the
torque−generating current
controller.
UINT16 RW
Setting of the proportional
gain of the current controller.
From the SDC program:
= 1.0
K
p
Setting here:
1.0 × 256 = 256 (100
UINT16 RW
Setting of the current
controller time constant.
From the SDC program:
= 2 ms
T
n
Setting here: 2 ms = 2000 ms
max
)
h
l 80
KHB 13.0002−EN 4.1
Page 81
Parameter setting
Speed controller
Overview
7
7.5Speed controller
7.5.1Overview
The parameter set of the drive controller has to be adapted to the application. Especially
the gain strongly depends on masses which may be coupled to the motor. At the
commissioning of the system, the data has to be optimised by means of the Small Drive
Control program.
(Stop!
Uncontrolled vibrations
Incorrect settings of the speed controller parameters can cause heavy
vibrations.
Possible consequences:
ƒ Parts of the system may be damaged.
Protective measures:
ƒ Before switching on the drive controller, ensure that the speed controller
parameters are correctly set.
7.5.2Description of the objects
IndexNamePossible settings
LenzeSelectionDescription
60F9h0 velocity_control_
parameter_set
1 velocity_control_
gain
2 velocity_control_
time
4 velocity_control_
filter_time
17926{1}64 × 256
8000200{1 ms}32000
1600200{1 ms}32000
Characteristics
RECUINT8RO
Reading−out of the speed
controller data.
UINT16 RWMAP
Setting of the speed
controller gain.
From the SDC program:
= 0.7
K
p
Setting here:
0.7 × 256 = 179
UINT16 RWMAP
Setting of the speed
controller time constant.
From the SDC program:
= 8 ms
T
n
Setting here: 8 ms = 8000 ms
UINT16 RWMAP
Setting of the filter time
constant for the actual speed
value.
The filter serves to reduce the
measurement noise.
From the SDC program:
T = 1.6 ms
Setting here:
1.6 ms = 1600 ms
KHB 13.0002−EN 4.1
l 81
Page 82
7
Parameter setting
Position controller (position control function)
Overview
7.6Position controller (position control function)
7.6.1Overview
This chapter describes all parameters required for the position controller. The position
setpoint (position_demand_value) from the trajectory generator is applied to the input of
the position controller. In addition, the position controller is fed with the actual position
(position_actual_value) from the angle encoder (resolver, incremental encoder, etc.). The
behaviour of the position controller can be influenced by parameters. To keep the position
control loop stable, the output quantity can be limited (control_effort). The output
quantity is fed to the speed controller as the speed setpoint. All input and output
quantities of the position controller are converted from the application−specific units to
the corresponding internal units of the drive controller in the factor group. The internal
quantities are marked with an asterisk.
The following subfunctions are defined in this chapter:
1. Following error (Following_Error)
The following error is the deviation of the actual position (position_actual_value) from the
position setpoint (position_demand_value). If this following error exceeds the value
specified in the following error window (following_error_window) for a certain time, bit
13 following_error of the status word object is set. The permissible time interval can be
defined via the following_error_time_out object.
following_error_time_out
(6066h)
following_error_
window
(6067h)
[position units]
Fig. 12Following error − functional survey
Limit
Function
home_offset (607Ch)
position_demand_value*
position_actual_value*
(6063h)
Multiplier
position_factor (6093h)
polarity (607Eh)
[inc]
-
[inc]
Windows
Compar ator
Timer
following_error
status_word
(6041h)
931e_416
l 82
KHB 13.0002−EN 4.1
Page 83
Parameter setting
Position controller (position control function)
Overview
Fig. 13 shows the definition of the window function for the "following error" message. The
range between x
i−x0
and xi+x
(position_demand_value) x
this window (following_error_window). If the drive leaves this window and does not enter
it again within the time specified in the following_error_time_out object, then bit 13
following_error of the status word is set.
is defined symmetrically around the set position
0
. The positions xt2 and x
i
are, for instance, located outside
t3
7
x
t2
x
t3
position x
x-x
i0
Fig. 13Following error
2. Position reached
This function allows you to define a position window around the target position
(target_position). If the actual position of the drive is within this range for a certain time
(the position_window_time), then bit 10 target_reached of the status word is set.
position_window
(6067h)
[position units]
target_position
(607Ah)
[position units]
Fig. 14Position reached − functional survey
Limit
Function
home_offset
(607Ch)
Limit
Function
home_offset
(607Ch)
position_actual_value*
(6063h)
x
i
position_window_time
(6068h)
Multiplier
position_factor (6093h)
polarity (607Eh)
Multiplier
position_factor
(6093h)
polarity (607Eh)
x+x
i0
[inc]
Comparator
[inc]
-
Windows
Timer
target reached
status_word
(6041h)
931e_417
931e_418
KHB 13.0002−EN 4.1
l 83
Page 84
7
Parameter setting
Position controller (position control function)
Description of the objects
Fig. 15 shows the definition of the window function for the "position reached" message.
The positioning range between x
position (target_position) x
position window (position_window). When the drive enters this window, a timer is started
in the controller. When the timer has reached the time specified in the
position_window_time object and the drive has not left the valid range between x
during this time, then bit 10 target_reached of the status word is set. If the drive
x
i+x0
leaves the valid range, both bit 10 and the timer are set to zero.
. The positions xt0 and x
i
i−x0
and xi+x
is defined symmetrically around the target
0
are, for instance, located within this
t1
and
i−x0
Fig. 15Position reached
7.6.2Description of the objects
The parameter set of the drive controller has to be adapted to the application. At the
commissioning of the system, the data of the position controller has to be optimised by
means of the Small Drive Control program.
(Stop!
Uncontrolled vibrations
Incorrect settings of the position controller parameters can cause heavy
vibrations.
Possible consequences:
ƒ Parts of the system may be damaged.
Protective measures:
ƒ Before switching on the drive controller, ensure that the position controller
parameters are correctly set.
x-x
i0
x
t0
x
t1
position x
x
i
x+x
i0
931e_419
l 84
KHB 13.0002−EN 4.1
Page 85
IndexNamePossible settings
LenzeSelectionDescription
60FBh0 position_control_
6062h0 position_demand_
6063h0 position_actual_
6064h0 position_actual_
parameter_set
1 position_control_
gain
4 position_control_
v_max
5 position_error_
tolerance_window
value
value
value
520{1}64 × 256
5000{1 rpm}32767
130{1 inc}65535
Parameter setting
Position controller (position control function)
Description of the objects
Characteristics
RECUINT8RO
Reading−out of the position
controller data.
The position controller
operates with internal
feedforwarding so that
deviation control is
minimised and the controller
settling time is reduced.
UINT16 RW
Setting of the position
controller gain.
From the SDC program:
K
Setting here: 0.2 × 256 = 52
UINT32 RWMAP
Limitation of the position
controller correction speed.
This is required since even
small position deviations can
cause considerable correction
speeds.
UINT32 RWMAP
Definition of the size of a
position deviation up to
which the position controller
does not intervene (dead
zone). This can be used for
stabilisation purposes, for
instance, if there is backlash
present in the system.
31
−2
31
−2
31
−2
{1 inc}231−1
{1 inc}231−1
{position units}231−1
VARINT32ROMAP
Reading−out of the position
setpoint.
This value is supplied to the
position controller by the
trajectory generator.
VARINT32ROMAP
Reading−out of the actual
position.
The unit can be set via the
factor group.
VARINT32ROMAP
Reading−out of the actual
position.
= 0.2
p
7
KHB 13.0002−EN 4.1
l 85
Page 86
7
Parameter setting
Position controller (position control function)
Description of the objects
Possible settingsNameIndex
6065h0 following_error_
window
6066h0 following_error_
time_out
60FAh0 control_effort{speed units}
910200000000
1000{1 ms}27314
h
6067h0 position_window1820−2
6068h0 position_window_
time
00{1 ms}65535
31
{1 inc}7FFFFFFF
{1 inc}231−1
Characteristics
DescriptionSelectionLenze
VARUINT32 RWMAP
Symmetrical range around
the position setpoint.
If the actual position value is
outside the range, a
following error occurs and bit
13 of the status word is set.
Causes for following errors:
l The drive is blocked
l The positioning speed is
too high
l The acceleration values
are too high
l The value entered for the
following_error_window
index is too low
l The position controller is
not parameterised
correctly
The unit can be set via the
factor group.
VARUINT16 RWMAP
If the following error lasts
longer than 100 ms, bit 13 of
the status word is set.
VARINT32ROMAP
Reading−out of the position
controller correction speed.
The correction speed is the
difference between the set
position and the actual
position with consideration
of the gain.
This value is internally
supplied to the speed
controller as a setpoint.
VARUINT32 RWMAP
Symmetrical range around
the target position. The
target position is reached if
the actual position is within
this range for a certain time.
The unit can be set via the
factor group.
VARUINT16 RWMAP
If the actual position is within
the position window for as
long as defined here, bit 10 of
the status word is set.
l 86
KHB 13.0002−EN 4.1
Page 87
Parameter setting
Analog inputs
Overview
7
7.7Analog inputs
7.7.1Overview
The drive controller is provided with two analog inputs, which can be used, for instance, to
define setpoints. These analog inputs can only be parameterised via the Small Drive
Control program.
7.8Digital inputs and outputs
7.8.1Overview
All digital inputs of the drive controller can be read via the CAN bus and the two digital
outputs can be set as desired.
7.8.2Description of the objects
IndexNamePossible settings
LenzeSelectionDescription
60FDh0 digital_inputs000000000
Bit no.ValueDigital input
000000001
100000002
300000008
16 − 2503FF0000
60FE
0 digital_outputs
h
1 digital_outputs_
data
000000000
Bit no.ValueDigital outputSetting of the 2 outputs. The
000000001
1600010000
17, 1800060000
Characteristics
h
h
{1}FFFFFFFF
h
h
h
h
h
h
h
Neg. limit switch
Pos. limit switch
Interlock
(controller or
power stage
enable is missing)
DIN0 ... DIN9
{1h}FFFFFFFF
Brake
Ready for
operation
DOUT1, DOUT2
VARUINT32 ROMAP
h
Reading−out of the digital
inputs.
ARRUINT8RO
Reading−out of the digital
outputs.
UINT32 RWMAP
h
activation can be delayed by
up to 1 ms. By reading back
index 60FE_00h you can
check when the outputs are
really set.
KHB 13.0002−EN 4.1
l 87
Page 88
7
Parameter setting
Limit switches
Overview
7.9Limit switches
7.9.1Overview
Limit switches can be used to define the home position of the drive controller. More
detailed information on the possible homing methods can be found in the chapter
’Homing operation mode’.
7.9.2Description of the objects
IndexNamePossible settings
LenzeSelectionDescription
6510h11 limit_switch_
polarity
15 limit_switch_
deceleration
10{1}1
2000000{1 rpm/s}200000
Characteristics
INT16RWMAP
Setting of the limit switch
polarity. The value always
refers to both limit switches.
0NC contact
1NO contact
INT32RWMAP
Setting of the deceleration
used for braking when the
limit switch is reached in
normal operation (limit
switch emergency stop
ramp).
l 88
KHB 13.0002−EN 4.1
Page 89
Parameter setting
Device information
Description of the objects
7
7.10Device information
7.10.1Description of the objects
IndexNamePossible settings
LenzeSelectionDescription
1000h0 device_type
1018h0 identity_object
1 vendor_id
2 product_code
3 revision_number
4 serial_number
6510h1 serial_number
2 drive_code
A1 drive_type
A9 firmware_main_
version
AA firmware_custom_
version
00020192
00001121
0000003B
00001111
00001112
00001133
00001134
00001138
00001137
h
h
h
h
h
h
h
h
h
0x00001111
Characteristics
VARUINT32 RO
Device identification in a
multi−axis system.
931E servo inverter
931KxK42 servo inverter
931KxN42 servo inverter
RECUINT8RO
Not used.
UINT32 RO
Manufacturer code
UINT32 RO
Product code
931ECK
931EPK
931KxK
931KxN
931KxK (STO)
931KxN (STO)
UINT32 RO
Firmware version
UINT32 RO
Hardware serial number
UINT32 ROMAP
Reading−out of the serial
number.
UINT32 ROMAP
Reading−out of the
identification.
UINT32 ROMAP
Reading−out of the device
type, see also index
1018_02
UINT32 ROMAP
product_code.
h
Reading−out the main version
number of the firmware
(product version).
UINT32 RWMAP
Reading−out of the version
number of the
customer−specific firmware
variant.
KHB 13.0002−EN 4.1
l 89
Page 90
8
Device control
State diagram
Overview
8Device control
8.1State diagram
8.1.1Overview
The following chapter describes how the drive controller is controlled under CANopen, i.e.
how, for instance, the power stage is switched on or how an error is acknowledged.
(Stop!
Uncontrolled rotation of the motor
An incorrectly parameterised drive controller can cause uncontrolled rotation
of the motor.
Possible consequences:
ƒ This may result in property damage.
Protective measures:
ƒ Before the initital switch−on of the power stage, ensure that the drive
controller is really parameterised with the correct parameters.
Under CANopen, the entire control of the drive controller is implemented using two
objects: The master can control the drive controller via the control 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 power stage being switched on or an error having occurred, the drive
controller is in different states. The states defined under CANopen are described in this
chapter.
Example: Switch_On_Disabled
ƒ State transition
CANopen not only defines the states, but also how to get from one state to another (e.g.
for acknowledging an error). State transitions are initiated by the master by setting 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.
90
l
KHB 13.0002−EN 4.1
Page 91
Device control
State diagram
State diagram of the drive controller
8
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
Switched_On
4
7
6
5
12
10
13
Fault_Reaction_Active
14
Fault
15
1
2
Operation_Enable
Fig. 16State diagram of the drive controller
0 Power disabled (power stage is inhibited)
1 Fault (error)
2 Power enabled (power stage is switched on)
11
Quick_Stop_Active
931e_421
{Danger!
Dangerous voltage
Power stage inhibited means that the power transistors cannot be controlled
anymore. However, a dangerous voltage may still be applied to the motor.
Possible consequences:
ƒ This means a danger to life when working on the motor.
Protective measures:
ƒ Disconnect the motor from the mains before starting to work on it.
After being switched on, the drive controller is initialised and finally reaches the
Switch_On_Disabled state. In this state, the CAN communication is fully operational and
the drive controller can be parameterised (e.g. the speed control operating mode can be
set). The power stage is switched off and the shaft can thus be rotated freely.
KHB 13.0002−EN 4.1
Via the state transitions 2, 3, 4 (basically corresponding to the CAN controller enable) the
Operation_Enable state is reached. In this state the power stage is switched on and the
motor is controlled according to the set operating mode. It is therefore essential to ensure
in advance that the drive is parameterised correctly and that a corresponding setpoint is
set to zero.
l
91
Page 92
8
Device control
State diagram
State diagram of the drive controller
If an error occurs, finally the fault state will be reached (no matter from which state you
have started). Depending on the severity of the error, certain actions (e.g. an emergency
braking) can be executed before the fault state is reached (Fault_Reaction_Active).
To execute the state transitions mentioned above, certain bit combinations must be set in
the control word. The bits 0 ... 3 of the control word are evaluated together to initiate a
state transition. In the following sections, first only the most important state transitions
2, 3, 4, 9 and 15 are explained. A table listing all states and state transitions can be found
at the end of this chapter.
The following table contains in the first column the desired state transition and in the
second column the required conditions (usually a command given by the master). The
column control word shows how this command is generated, i.e. which bits are to be set
in the control word. The fault reset command is generated by a positive edge change of
bit 7.
Transition Command
2Shut down and
controller enable
3Switch onxx111Switching on of the power stage
4Enable operationx1111Control according to the set operating mode
9Disable voltagexxx0xPower stage is inhibited. Motor can be rotated
15Fault reset and error
eliminated
Tab. 11Important state transition of the drive controller
x not relevant
Control word (bits)
73210
xx110None
0−>1 xxxxError acknowledgement
Action
freely.
Example: Switching on of the power stage (drive controller must be parameterised)
The drive controller is in the Switch_On_Disabled state and is to be set into the
Operation_Enable state. No other bits are to be set in the control word.
Transition Old state
2Switch_On_Disabled x110Ready_To_Switch_On
3Ready_To_Switch_Onx111Switched_On
4Switched_On1111Operation_Enable
1)
The master has to wait until the new state can be read back from the status word.
Control word (bits)
3210
New state
1)
1)
1)
92
The transitions 3 and 4 can be summarised by directly setting the control word to 1111. For
the state transition 2, the set bit 3 is not relevant.
l
KHB 13.0002−EN 4.1
Page 93
Device control
State diagram
States of the drive controller
8
8.1.3States of the drive controller
StateMeaning
Not_Ready_To_Switch_OnThe drive controller executes a self−test. The CAN communication is not yet
Switch_On_DisabledThe drive controller has completed the self−test. CAN communication is
Ready_To_Switch_OnThe drive controller waits until the digital input DIN9 "controller enable" is at
Switched_OnThe power stage can be switched on.
Operation_Enable 1)Voltage is applied to the motor and the motor is controlled according to the
Quick_Stop_Active 1)The quick stop function is executed (see: quick_stop_option_code). Voltage is
Fault_Reaction_Active
FaultAn error has occurred. The motor is de−energised.
Tab. 12States of the drive controller
1)
The power stage is switched on
1)
working.
working.
24 V. (Controller enable logic "digital input and CAN").
operating mode.
applied to the motor and the motor is controlled according to the quick stopfunction.
An error has occurred. Critical errors cause the immediate change to the fault
state. For all other errors, the action selected in the
fault_reaction_option_code is executed. Voltage is applied to the motor and
the motor is controlled according to the fault reaction function.
KHB 13.0002−EN 4.1
l
93
Page 94
8
Device control
State diagram
State transitions of the drive controller
8.1.4State transitions of the drive controller
Transition Command
0Switched on or reset
executed
1Self−test successfulInternal transitionActivation of CAN communication.
2Shut down and
controller enable
3Switch onxx111None
4Enable operationx1111On transition to the Operation_Enable state,
5Disable operationx0111Power stage is inhibited. Motor can be rotated
6Shut downxx110Power stage is inhibited. Motor can be rotated
7Quick stopxx01xNone
8Shut downxx110Power stage is inhibited. Motor can be rotated
9Disable voltagexxx0xPower stage is inhibited. Motor can be rotated
10Disable voltagexxx0xPower stage is inhibited. Motor can be rotated
11Quick stopxx01xBraking is initiated.
12Disable voltage or
braking completed
13Error occurredInternal transitionFor non−critical errors response according to
14Error handling is
completed
15Fault reset and error
eliminated
Tab. 13State transitions of the drive controller
x not relevant
Control word (bits)
73210
Internal transitionExecution of self−test.
xx110None
xxx0xPower stage is inhibited. Motor can be rotated
Internal transitionPower stage is inhibited. Motor can be rotated
0−>1 xxxxError acknowledgement (at rising edge).
Action
the power stage is switched on.
freely.
freely
freely
freely.
freely.
freely.
fault_reaction_option_code. For critical errors
transition 14 follows.
freely.
94
l
KHB 13.0002−EN 4.1
Page 95
Device control
State diagram
Control word
8
8.1.5Control word
The control word can be used to change the current state of the drive controller or to
initiate a certain action directly (e.g. start of the homing run). The function of bits 4, 5, 6 and
8 depends on the current operating mode (modes_of_operation) of the drive controller.
IndexNamePossible settings
LenzeSelectionDescription
6040h0 controlword0000
h
0000
h
Bit no.Value
0 0001
10002
20004
30008
40010
50020
60040
70080
80100
90200
100400
110800
121000
132000
144000
158000
{1h}FFFF
h
h
h
h
h
h
h
h
h
h
h
h
h
h
h
h
Characteristics
VARUINT16 RWMAP
h
Change of the drive
controller state.
An action is initiated (e.g.
homing run).
Control of the state
transitions. (These bits are
evaluated together).
The function of these bits
depends on the operating
mode.
l reset_fault
At the transition from zero to
one, the drive controller tries
to acknowledge the pending
errors. This is only possible if
the cause of the error has
been eliminated.
The bit function depends on
the operating mode.
Set to zero.
KHB 13.0002−EN 4.1
l
95
Page 96
8
Device control
State diagram
Control word
The bits 0 ... 3 can be used to execute state transitions. The commands required for this
purpose are listed in the below overview. The
LOW/HIGH edge of bit 7.
CommandBit 7Bit 3Bit 2Bit 1Bit 0
Shut downxx110
Switch onxx111
Disable voltagexxx0x
Quick stopxx01x
Disable operationx0111
Enable operationx1111
Fault reset0−>1xxxx
Tab. 14Command overview
x not relevant
fault reset command is generated by a
)Note!
Since some of the state changes take some time, all state changes initiated via
the control word must be read back via the status word.
Only if the new state can be read in the status word, a new command can be
given via the control word.
96
l
KHB 13.0002−EN 4.1
Page 97
Device control
State diagram
Control word
Below the remaining bits of the control word are explained. Some bits have different
meanings dependent on the operating mode (modes_of_operation):
8
Operation
mode
Profile
position
mode
Profile
velocity
mode
Profile
torque mode
Homing
mode
Interpolated
position
mode
Bit 4Bit 5Bit 6Bit 8
l new_set_point
A rising edge indicates to
the drive controller that a
new travel task will be
transferred.
l Reservedl Reservedl Reservedl stop
l Reservedl Reservedl Reservedl stop
l start_homing
_operation
A rising edge starts the
parameterised homing
run. A falling edge aborts
the homing run being
performed.
l enable_ip_mode
This bit has to be set if the
interpolation data records
are to be evaluated. It is
acknowledged by bit 12
(ip_mode_active) in the
status word.
l change_set_immediately
If this bit is not set, a new
travel task will not be
processed before an already
running task has been
completed. If the bit is set,
the running positioning task
will be aborted immediately
and replaced by the new
travel task.
l Reservedl Reservedl stop
l Reservedl Reservedl Reserved
l absolute/relative
If bit 6 is set, this means
"absolute positioning".
If bit 6 is not set, this
means "relative
positioning".
If the bit is set, the drive
controller refers the target
position (target_position)
of the current travel task
to the set position
(position_demand_value)
of the position controller.
l stop
If the bit is set, the running
positioning task is aborted.
For braking, the
profile_deceleration (index
6084
h
process has been
completed, bit 10
(target_reached) is set in
the status word (index
6041
h
has no effect.
If the bit is set, the speed is
reduced to zero. For
braking, the
profile_deceleration (index
6084
h
the bit results in the drive
controller being
accelerated again.
If the bit is set, the torque
is set to zero. Deleting of
the bit results in the drive
controller being
accelerated again.
If the bit is set, the homing
run being performed is
aborted. Deleting of the bit
has no effect.
) is used. After the
). Deleting of the bit
) is used. Deleting of
KHB 13.0002−EN 4.1
l
97
Page 98
8
Device control
State diagram
Controller state
8.1.6Controller state
Similar to the combination of several control word bits initiating different state changes,
the combination of different status word bits can be used to read out the current state of
the drive controller.
The below table lists the possible states of the state diagram and the corresponding bit
combinations indicating these states in the status word.
StateBit 6Bit 5Bit 3Bit 2Bit 1Bit 0MaskValue
Not_Ready_To_Switch_On0x0000004Fh0000
Switch_On_Disabled1x0000004Fh0040
Ready_to_Switch_On010001006Fh0021
Switched_On010011006Fh0023
Operation_Enable010111006Fh0027
Fault0x1111004Fh000F
Fault_Reaction_Active0x1111004Fh000F
Quick_Stop_Active000111006Fh0007
Tab. 15Controller state
x not relevant
Example:
0040h0020h0008h0004h0002h0001
h
h
h
h
h
h
h
h
h
The above example shows which bits are to be set in the control word to enable the drive
controller. Now the new state is to be read out from the status word:
Transition from Switch_On_Disabled to Operation_Enable:
3. Write state transition 2 into the control word.
4. Wait until the Ready_To_Switch_On state is indicated in the status word.
Transition 2: Control word = 0006
indicated
1)
, wait until (status word + 006Fh) = 0021
h
is
h
5. State transitions 3 and 4 can be summarised and written to the control word
together.
6. Wait until the Operation_Enable state is indicated in the status word.
Transitions 3 and 4: Control word = 000F
indicated
1)
, wait until (status word + 006Fh) = 0027
h
is
h
The example is based on the assumption that no other bits are set in the control word
(since only bits 0 ... 3 are important for the transitions).
1)For the identification of the states, the bits not set have to be evaluated as well (see table). Therefore the status
word must be masked appropriately.
98
l
KHB 13.0002−EN 4.1
Page 99
Device control
State diagram
Status word
8
8.1.7Status word
IndexNamePossible settings
LenzeSelectionDescription
6041h0 statusword
0000
h
Bit no.Value
0 0001
10002
20004
30008
40010
50020
60040
70080
80100
90200
100400
110800
121000
132000
144000
158000
{1h}FFFF
h
h
h
h
h
h
h
h
h
h
h
h
h
h
h
h
Characteristics
VARUINT16 ROMAP
h
Display of the controller
state and of various events.
State of the drive controller,
see Tab. 15.
(These bits must be
evaluated together).
l voltage_disable
This bit is set when the
power stage transistors are
switched on.
Caution! In the event of a
defect, the motor can still be
energised.
State of the drive controller,
see Tab. 15.
l quick_stop
If the bit is deleted, the drive
executes a quick stop
according to index
quick_stop_option_code.
State of the drive controller,
see Tab. 15.
l warning
This bit is undefined. It must
not be evaluated.
l unused
This bit is not used and must
not be evaluated.
l remote
The bit is set if the controller
enable logic is set
correspondingly via index
6510_10
enable_logic.
h
The bit function depends on
the operating mode.
l internal_limit_active
This bit indicates that the I
limitation is active.
The function of these bits
depends on the operating
mode.
l unused
This bit is not used and must
not be evaluated.
l reserved
This bit must not be
evaluated.
2
t
KHB 13.0002−EN 4.1
l
99
Page 100
8
Device control
State diagram
Status word
)Note!
The bits of the status word are not buffered. They indicate the current
controller state.
In addition to the controller state, the status word indicates various events, i.e. each bit is
assigned with a certain event (e.g. following error).
Some bits have different meanings dependent on the operating mode
(modes_of_operation):
Operation
mode
Profile
position
mode
Profile
velocity
mode
Homing
mode
Interpolated
position
mode
Bit 10Bit 12Bit 13
l target_reached
The bit is set if the current target
position is reached and the current
position (index
position_actual_value) is within the
parameterised position window
(index 6067
It is also set if the drive comes to
standstill with the stop bit being set.
The bit is deleted if a new target is
selected.
l target_reached
The bit is set if the actual speed
(index 606C
of the drive is within the tolerance
window. This tolerance window can
be set via SDC.
l Reservedl homing_attained
l Reservedl ip_mode_active
position_window).
h
velocity_actual_value)
h
l set_point_acknowledge
This bit is set if the drive controller
has detected that bit 4 of the control
word (new_set_point) is set.
It is deleted again after bit 4 of the
control word (new_set_point) has
been set to zero.
l speed_0
This bit is set if the current actual
speed (index 606C
velocity_actual_value) of the drive is
within the corresponding tolerance
window.
This bit is set if the homing run has
been completed successfully.
This bit indicates that interpolation
is active and the interpolation data
records are being evaluated. The bit
is set if this has been requested by
bit 4 of the control word
(enable_ip_mode).
l following_error
This bit is set if the current actual
position (index
position_actual_value) deviates that
much from the set position (index
position_demand_value) that the
deviation is out of the parameterised
tolerance window (indexes
following_error_window,
following_error_time_out).
l Reserved
h
l homing_error
l Reserved
100
l
KHB 13.0002−EN 4.1
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.