6.2.2 Overview: Project structure with CR711S................................................................................... 59
6.3 Use CODESYS user manual .............................................................................................60
6.4 Configure programming interface ......................................................................................61
6.4.1 Set communication path of PLC ................................................................................................. 61
6.5 Add ifm function libraries to the application .......................................................................62
6.6 Activate the access protection for a project .......................................................................63
7 System configuration 64
7.1 Configure PLC....................................................................................................................64
7.1.1 Allocate memory partition ........................................................................................................... 64
7.1.2 Allocate inputs/outputs ............................................................................................................... 65
7.1.3 Manage files ............................................................................................................................... 66
7.1.4 Manage users and groups .......................................................................................................... 66
7.2 Configure inputs and outputs .............................................................................................67
7.2.1 via system configuration ............................................................................................................. 67
7.2.2 via function block ........................................................................................................................ 67
7.3 Configure interfaces ...........................................................................................................68
7.3.1 Configure serial interface............................................................................................................ 68
7.3.2 Configure Ethernet interface ....................................................................................................... 68
7.3.3 Configure CAN interfaces ........................................................................................................... 70
7.3.4 Interface configuration file comconf.cfg ...................................................................................... 76
8 Programming 77
8.1 Objects of a PLC application ..............................................................................................77
8.2 Create PLC application ......................................................................................................78
8.2.1 Supported programming languages ........................................................................................... 78
8.2.2 Supported variable types ............................................................................................................ 79
8.2.3 Options to access input and output data .................................................................................... 80
8.2.4 Configure task processing .......................................................................................................... 80
8.3 Use ifm function libraries ....................................................................................................81
8.3.1 Access to inputs ......................................................................................................................... 81
8.3.2 Access to outputs ....................................................................................................................... 82
8.3.3 Control device ............................................................................................................................ 82
8.3.4 Read device information ............................................................................................................. 82
8.4 Use IO mapping .................................................................................................................83
8.4.1 Access inputs ............................................................................................................................. 84
8.4.2 Access outputs ........................................................................................................................... 85
8.4.3 Read diagnostic data of the device ............................................................................................ 86
8.5 Use RawCAN (CAN Layer 2) .............................................................................................87
8.5.1 RawCAN: Control CAN network nodes ...................................................................................... 87
8.5.2 RawCAN: Send and receive CAN messages ............................................................................. 87
8.5.3 RawCAN: Request and send remote CAN messages ................................................................ 88
8.6 Use CANopen ....................................................................................................................89
8.6.1 CANopen: Send and receive SDO ............................................................................................. 89
8.6.2 CANopen: Network Management (NMT) .................................................................................... 89
8.7 Use SAE J1939 ..................................................................................................................90
9 Operation 91
9.1 Transfer CODESYS project to device ................................................................................91
9.1.1 Load the application to the device .............................................................................................. 91
9.1.2 Delete application from CR711S ................................................................................................ 92
9.2 Operating states .................................................................................................................93
9.3 Status LEDs .......................................................................................................................94
9.3.1 Status LED: system ifm operating system (SYS0+SYS1) .......................................................... 94
9.3.2 Status LED: system PLC (SYS0, SYS1) .................................................................................... 95
9.3.3 Status LED: System bootloader (SYS0) ..................................................................................... 95
9.3.4 Status LED: Ethernet interfaces (ETH0, ETH1) .......................................................................... 96
9.3.5 Controlling LEDs in the applications ........................................................................................... 96