Contents
1 About this manual 4
1.1 Copyright .............................................................................................................................. 4
1.2 Overview: documentation modules for CRnnnn .................................................................. 5
1.3 Which devices are described in this manual? ...................................................................... 5
1.4 What do the symbols and formats mean? ........................................................................... 6
1.5 How is this documentation structured? ................................................................................ 7
1.6 History of the instructions ..................................................................................................... 7
2 Templates and demo programs 8
2.1 Introduction .......................................................................................................................... 8
2.1.1 What are ifm templates?............................................................................................................... 8
2.1.2 What are ifm demo programs? ..................................................................................................... 9
2.2 Set up programming system via templates ........................................................................10
2.2.1 About the ifm templates .............................................................................................................. 11
2.2.2 How do you set up the programming system fast and simply? (e.g. CR2500) ........................... 15
2.2.3 Insert CANopen slave (example: CR2500 <-- CR2011) ........................................................... 16
2.2.4 Supplement project with further functions................................................................................... 17
2.3 ifm demo programs ............................................................................................................20
2.3.1 Demo programs for controller ..................................................................................................... 20
2.3.2 Demo programs for PDM and BasicDisplay ............................................................................... 22
3 Using CAN – description 24
3.1 General about CAN ............................................................................................................24
3.1.1 CAN: hardware ........................................................................................................................... 25
3.1.2 CAN: software ............................................................................................................................ 29
3.2 CAN interfaces ...................................................................................................................31
3.2.1 CAN: interfaces and protocols .................................................................................................... 31
3.3 CAN: exchange of data ......................................................................................................32
3.3.1 Data reception ............................................................................................................................ 32
3.3.2 Transmit data ............................................................................................................................. 32
3.4 Technical details on CANopen ...........................................................................................33
3.4.1 CANopen network configuration, status and error handling ....................................................... 33
3.4.2 CANopen support by CoDeSys .................................................................................................. 34
3.4.3 CANopen master ........................................................................................................................ 35
3.4.4 CANopen slave .......................................................................................................................... 55
3.4.5 CANopen tables ......................................................................................................................... 65
3.5 CANopen network variables ..............................................................................................74
3.5.1 General information .................................................................................................................... 74
3.5.2 Configuration of CANopen network variables ............................................................................. 75
3.5.3 Particularities for network variables ............................................................................................ 78
3.6 Summary CAN / CANopen / network variables .................................................................79
3.7 CAN for the drive engineering ............................................................................................80
3.7.1 Identifier acc. to SAE J1939 ....................................................................................................... 81
3.7.2 Example: Detailed message documentation .............................................................................. 82
3.7.3 Example: Short message documentation ................................................................................... 83
3.8 CAN / CANopen: errors and error handling .......................................................................84
3.8.1 CAN errors ................................................................................................................................. 84
3.8.2 CANopen errors ......................................................................................................................... 87
4 Control outputs – description 96
4.1 PWM functions – description .............................................................................................96
4.1.1 PWM signal processing – description ......................................................................................... 96
4.1.2 Hydraulic control with PWMi ..................................................................................................... 102