1
2017/06
Table of Contents
1 About these instructions 3
1.1 Target Groups 3
1.2 Explanation of Symbols 3
2 Creating a CODESYS Project and Configuring the Network 5
2.1 Installing a CODESYS package 5
2.2 Create CODESYS Standard Project with TBEN-L-PLC-
2.3 Configuring the Network 7
2.3.1 Configuring the Ethernet Interface 8
3 Using the Device as PROFINET Controller 11
3.1 Creating a CODESYS Project and Configuring the Network 11
3.2 Configuring the Device as PROFINET Controller 12
3.2.1 Adding the PROFINET Controller to the Project 12
3.2.2 PROFINET tasks in CODESYS 13
3.3 Configuring PROFINET Devices 14
3.3.1 Installing the GSDML-files 14
3.3.2 Scan Network for PROFINET Devices 15
3.3.3 Adding PROFINET Devices Manually 17
3.3.4 Configuring the BL20 station 19
3.3.5 Configuring the TBEN-S2-4IOL (IO-Link Master) 20
- Configuring the Empty Slots 2 – 5 (IO-Link-Ports) 21
- Configuring the Empty Slots 6 – 8 (Diagnostics, IO-Link-Events, Module Status) 25
3.4 Communication Settings for PROFINET Devices 29
3.4.1 Assigning the IP Address and the Station Name 29
3.4.2 Setting the communication parameters (Send Clock, Reduction Ratio, Phase) 30
3.5 Requesting the Device Status in the Program 31
3.6 Using IO-Link Function Blocks for CODESYS 32
4 Using the Device as PROFINET Device 35
4.1 Creating a CODESYS Project and Configuring the Network 35
4.2 Configuring the PROFINET Device 36
4.2.1 Adding the PROFINET Device to the Project 36
4.2.2 Configuring the PROFINET Device (CDS3 PN-Device) in TIA Portal 39
- Installing the GSDML-file 39
- Configuring the PROFINET parameters 40
- Configuring the in- and output data 41