Implementation manual Festo IO-Link devices into the Siemens TIA portal

Similar documents
Save offset to Encoder from PLC

CMMP Function Activation of Multiturn Encoder for Endless Positioning

Service & Support. How can you establish a connection between a S PLC and SIMATIC NET OPC? S PLC, SIMATIC NET OPC.

Service & Support. How can you establish a connection between an S PLC and SIMATIC NET OPC? S PLC, SIMATIC NET OPC.

The goal is to program the PLC and HMI to count with the following behaviors:

Profinet to EDV111 Series LED Signs Siemens Function Block Software Manual

ABB industrial drives. Quick start-up guide Drive Manager for SIMATIC

Using the WAGO PROFINET Coupler as Remote I/O with a Siemens S7 PLC

PROFINET IRT: Getting Started with The Siemens CPU 315 PLC

Applications & Tools. Configuration of Messages and Alarms in WinCC (TIA Portal) WinCC (TIA Portal) Application description December 2012

USER GUIDE. Ethernet Configuration Guide (Lantronix) P/N: Rev 6

CPU PN/DP: Configuring an ET. 200S as PROFINET IO device SIMATIC. PROFINET CPU PN/DP: Configuring an ET 200S as PROFINET IO device

About This Guide SolarEdge Configuration Tool Software Guide. About This Guide

1 Application Description Objective Goals... 3

CS 326e F2002 Lab 1. Basic Network Setup & Ethereal Time: 2 hrs

BECKHOFF. Application Notes. BC9000: Getting Started Guide. For additional documentation, please visit.

Troubleshooting File and Printer Sharing in Microsoft Windows XP

WinCC. Communication Manual. Manual 2. This manual is part of the documentation package with the order number: 6AV6392-1CA05-0AB0 C79000-G8276-C156-01

HL2170W Windows Network Connection Repair Instructions

Application Note Profinet Modules

Easy Setup Guide for the Sony Network Camera

L5354 ControlNet Communications Interface

Training Document for Integrated Automation Solutions Totally Integrated Automation (TIA) MODULE M1

PROCESS AUTOMATION PLANNING AND INTEGRATION INFORMATION LB8106* Integration in Siemens SIMATIC PCS 7

Commissioning IDENTControl Compact IC-KP2-2HB17-2V1D Profinet Protocol with a Siemens S7 PLC

Section 5: Installing the Print Driver

Training Document for Comprehensive Automation Solutions Totally Integrated Automation (T I A) MODULE A5 Programming the CPU 314C-2DP

Allworx OfficeSafe Operations Guide Release 6.0

DIRECT INTERNET DATA. User s Guide

Training Document for Comprehensive Automation Solutions Totally Integrated Automation (T I A) MODUL E04

E-Blocks Easy Internet Bundle

AXIS Camera Station Quick Installation Guide

TECHNICAL NOTE TNOI34

ABB solar inverters. User s manual ABB Remote monitoring portal

FAQ Communication over IE

ADSL Router Quick Installation Guide Revised, edited and illustrated by Neo

CCNA Discovery Networking for Homes and Small Businesses Student Packet Tracer Lab Manual

enervista UR Setup Software Quick Connect Instructions:

Applications & Tools. Master Slave Communication via a CM PtP using the Modbus RTU Protocol. S CM PtP RS422/485 HF, ET 200SP CM PtP

Intel Unite Solution. Standalone User Guide

Win8 Networking FinishLynx with Meet Management Technical Support Guide

Instructions for Installing and Using the FOCUS DL-15 Data Transfer Software

Section 5: Connecting the Laser to Your Computer

1-Port Wireless USB 2.0 Print Server Model # APSUSB201W. Quick Installation Guide. Ver. 2A

MFC8890DW Vista Network Connection Repair Instructions

a) Network connection problems (check these for existing installations)

User Manual Gigabit Ethernet Vision Quick Start Guide

Applications & Tools. Connecting a SINAMICS G120 Drive to an S7-300/400 CPU in TIA Portal V11 SINAMICS G120 (CU 240E-2 PN(-F)), SIMATIC S7-300/400

Accounting Manager. User Guide A31003-P1030-U

1 crossover cable. the PCs. network

PROFINET IO Diagnostics 1

ACU-1000 Manual Addendum Replacement of CPM-2 with CPM-4

S7 for Windows S7-300/400

Getting Started - SINAMICS Startdrive. Startdrive. SINAMICS Getting Started - SINAMICS Startdrive. Introduction 1

Movie Cube. User s Guide to Wireless Function

Special Note Ethernet Connection Problems and Handling Methods (CS203 / CS468 / CS469)

Guide for Updating Firmware and Troubleshooting Connection Issues

LockView CompX Database & Network Configuration & Installation Manual

BIT COMMANDER. Serial RS232 / RS485 to Ethernet Converter

Application Note: Connecting to a 2500 Series Processor using PLC Workshop

Package Contents. D-Link DSN-3200/3400 Installation Guide. DSN-3200/3400 xstack Storage Area Network (SAN) Array. CD-ROM with User Guide.

TECHNICAL SUPPORT GUIDE

BASLER ACE QUICK INSTALLATION GUIDE

EASE Scan Tool Customers. SECTION I - Installation

(606) Knott County (606) Perry County (606) Letcher County.

Computer Networks I Laboratory Exercise 1

MFC7840W Windows Network Connection Repair Instructions

Setting up VPN Access for Remote Diagnostics Support

Operating Instructions

MaxSea TimeZero NN3D Radar Connection Checklist

ENET-710. ENET Ethernet Module ENET-710 JAN / 06 FOUNDATION

MS830 / MS833 Barcode Reader v1.0 9-December-2014

SATO Network Interface Card Configuration Instructions

Allworx Installation Course

Ethernet/IP Comms between a WAGO and a Mettler Toledo JAGXTREME Terminal Application note

LockView 4.2 CompX Database & Network Configuration & Installation Manual

Package Contents. D-Link DSN-3200/3400 Installation Guide. DSN-3200/3400 xstack Storage Area Network (SAN) Array. CD-ROM with User Guide.

Creating the program. TIA Portal. SIMATIC Creating the program. Loading the block library. Deleting program block Main [OB1] Copying program blocks

Rapid Assessment Key User Manual

Additional Requirements for ARES-G2 / RSA-G2. One Ethernet 10 Base T/100 Base TX network card required for communication with the instrument.

Technical Note. Monitoring Ethernet Traffic with Tolomatic ACS & Managed Switch. Contents

1 How configure S7 PLC in the configuration tool

Intel Active Management Technology with System Defense Feature Quick Start Guide

Network/Floating License Installation Instructions

ebus Player Quick Start Guide

Training Document for Comprehensive Automation Solutions Totally Integrated Automation (T I A) MODULE C2. High Level Programming with S7-SCL

AXIS 205 Network Camera Goes anywhere your network goes

TECHNICAL BULLETIN. Configuring Wireless Settings in an i-stat 1 Wireless Analyzer

Hosting Users Guide 2011

Configure SPLM 2012 on Windows 7 Laptop

DME-N Network Driver Installation Guide for M7CL/LS9/DSP5D

Cisco - Configure the 1721 Router for VLANs Using a Switch Module (WIC-4ESW)

c. Securely insert the Ethernet cable from your cable or DSL modem into the Internet port (B) on the WGT634U. Broadband modem

R&S AFQ100A, R&S AFQ100B I/Q Modulation Generator Supplement

Using MagicQ with the Capture visualiser

How to setup a serial Bluetooth adapter Master Guide

InventoryControl for use with QuoteWerks Quick Start Guide

Installing an Omnicast System Omnicast version 3.5

PLC training panel (Twido version)

Andover Continuum Remote Communication Configuration Guide

Transcription:

Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal The main objective of this documentation is to show the implementation of Festo IO-Link devices into the Siemens TIA portal (Totally Integrated Automation). It displays the implementation based on three examples. CMMO-ST-C5-1- LKP; ERMO-25; VPPM; CPV-10 100069

Title... Implementation manual Festo IO-Link devices into the Siemens TIA portal Version... 1.10 Document no.... 100069 Original...en Author... Festo Last saved... 27.04.2016 Copyright Notice This documentation is the intellectual property of Festo AG & Co. KG, which also has the exclusive copyright. Any modification of the content, duplication or reprinting of this documentation as well as distribution to third parties can only be made with the express consent of Festo AG & Co. KG. Festo AG & Co KG reserves the right to make modifications to this document in whole or in part. All brand and product names are trademarks or registered trademarks of their respective owners. Legal Notice Hardware, software, operating systems and drivers may only be used for the applications described and only in conjunction with components recommended by Festo AG & Co. KG. Festo AG & Co. KG does not accept any liability for damages arising from the use of any incorrect or incomplete information contained in this documentation or any information missing therefrom. Defects resulting from the improper handling of devices and modules are excluded from the warranty. The data and information specified in this document should not be used for the implementation of safety functions relating to the protection of personnel and machinery. No liability is accepted for claims for damages arising from a failure or functional defect. In other respects, the regulations with regard to liability from the terms and conditions of delivery, payment and use of software of Festo AG & Co. KG, which can be found at www.festo.com and can be supplied on request, shall apply. All data contained in this document do not represent guaranteed specifications, particularly with regard to functionality, condition or quality, in the legal sense. The information in this document serves only as basic information for the implementation of a specific, hypothetical application and is in no way intended as a substitute for the operating instructions of the respective manufacturers and the design and testing of the respective application by the user. The operating instructions for Festo products can be found at www.festo.com. Users of this document (application note) must verify that all functions described here also work correctly in the application. By reading this document and adhering to the specifications contained therein, users are also solely responsible for their own application. (Festo AG & CO. KG, D-73726 Esslingen, 2016) Internet: http://www.festo.com E-Mail: service_international@festo.com

Table of contents 1 Components/Software used... 5 1.1 Objective of this manual... 5 1.2 List of abbreviations and terms... 6 2 Hardware Setup... 7 2.1 Siemens components... 7 2.2 Festo components... 8 2.2.1 Connecting the CMMO... 9 2.3 Software requirements... 11 2.4 Basic network configuration... 11 3 TIA Portal configuration... 12 3.1 Initializing TIA portal... 12 3.2 Configuration CPV10... 34 3.3 Configuration VPPM... 39 3.4 Configuration CMMO_ST... 51 4 Troubleshooting... 67 4.1 No device can be found during Assign device name... 67 4.2 Problems to run the ERMO... 67 4.3 Compiling errors... 68 4.4 Table of figures... 69 4.5 List of tables... 71 4.6 Links to the support portal... 71

Table of contents

Components/Software used 1 Components/Software used Type/Name Description S7-1200 Siemens PLC ET200SP Siemens distributed IO module CM 4xIO-Link Siemens IO-Link master PM1207 Power supply unit for the PLC and IO modules CPV-10 Festo valve manifold with 8 valves VPPM Festo pressure regulator CMMO-ST-C5-1-LKP Festo motor controller ERMO-25 Festo rotary drive with stepper motor Tab. 1 Components/Software used 1.1 Objective of this manual The main objective of this documentation is to show the implementation of Festo IO-Link devices into the Siemens TIA portal (Totally Integrated Automation). It displays the implementation based on three examples. The manual is only a reference and not a directive of how to implement IO-Link devices. It also doesn t provide a programming guide for the Siemens programming environment. It s intended exclusively for technicians trained in control and automation technology, who have experience in installing, commis- sioning, programming and diagnosing systems and the relevant fieldbuses. Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 5 von 71

Components/Software used 1.2 List of abbreviations and terms The following hardware is used Abbr. and terms TIA PLC FCT FFT Actuator CPV VPPM Drive ERMO CMMO PC Abbr. and terms TIA PLC FCT FFT Actuator CPV VPPM Drive ERMO Tab. 2 Used hardware Definition Totally Integrated Automation, programming environment of Siemens Programmable Logic Controller Festo Configuration Tool Festo Field Device Tool Product providing a motion or action Product name of a Festo valve manifold Product name of a Festo pressure regulator Controls an actuator Product name of the rotary actuator with an stepper drive Product name of the stepper motor drive Means a desktop PC or a laptop Definition Totally Integrated Automation, programming environment of Siemens Programmable Logic Controller Festo Configuration Tool Festo Field Device Tool Product providing a motion or action Product name of a Festo valve manifold Product name of a Festo pressure regulator Controls an actuator Product name of the rotary actuator with an stepper drive The Festo product portfolio provides a lot of IO-Link capable devices. Listed products are used to cover different difficulties of implementation. Seite 6 von 71 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10

Hardware Setup 2 Hardware Setup 2.1 Siemens components The S7-1200 PLC is wired to the Siemens power supply unit. The ET200SP is mounted together with the power supply and PLC onto a DIN rail and connected to the power supply unit. The communication between the PLC and the ET200SP is realized with Profinet. Therefore an Ethernet cable (RJ45 connectors) is plugged into port X1P2 at the PLC and port P1R at the ET200SP. The PLC (port X1P1) is connected via Ethernet cable to the PC. At last the IO-Link master is plugged into the ET200SP at slot 1 and terminated with the server module in slot 2. All connections have to be checked before supplying power to the system. Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 7 von 71

Hardware Setup 2.2 Festo components A Festo NEBU-M12G5-K cable is used to connect the CPV valve manifold to the IO-Link master. The VPPM pressure regulator is connected with the same cable. Fig. 2 shows the pin assignment of the cable and the components. The CMMO can be connected via a pre-configured cable or single wires (see 5. 2. 1, only 3 wires will be used for this type of connection). Fig.2 Pin assignment Siemens IO-Link master 1 The clamps at the IO-Link master come with cage clamp technology so no ferrules are required 1 Source: https://cache.industry.siemens.com/dl/files/527/67328527/att_830880/v1/et200sp_io_link_master_manual_en-us_en- US.pdf Seite 8 von 71 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10

Hardware Setup 2.2.1 Connecting the CMMO The following pictures are taken from the brief description of the CMMO-ST-C5-1-LKP. Referring to Fig. 2 Fig. 3 Connection of X1 Fig. 4 Connection of X2 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 9 von 71

Hardware Setup Fig. 5 Connection of X3 Fig. 6 Connection of X6 Fig. 7 Connection of X9 Seite 10 von 71 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10

Hardware Setup 2.3 Software requirements Because IO-Link is a newly technology, not every version of the TIA portal supports IO-Link. So it s necessary to carefully check the updates and versions. The described realization is implemented with: - Totally Integrated Automation Portal Version 13 Service Pack 1 Update 5 (TIA V13 SP1 Upd5) - STEP7 Professional Version 13 Service Pack 1 Update 5 (STEP7 Professional V13 SP1 Upd5) - IO-Link support package: HSP0136ET200SP IO-Link V2.1.0 - SIMATIC S7-PCT Version 3.3 HF2 - IO-Link library: 20150327_IO_LINK_Library_V13_SP1 - IODD file CPV10: R01 esto-cpv10-20111223-iodd1.0.1.xml - IODD file VPPM: V1.1 -VPPM-20140601-IODD1.1.xml - IODD file CMMO-ST: V1.9 -CMMO-ST-C5-1-LKP_FHPP_and_FPC- 20150717-IODD1.1.xml - Festo FHPP library: V13.0.10 FestoMotionFHPP_V13_SP1.zal13 - Festo FCT V1.2.1 - FCT plugin for the ERMO: V1.4.1.0 Always make sure that the TIA portal as well as the STEP7 have the same version and update. Otherwise this can cause issues. The used components work with the listed versions. Newer or older versions may also work but were not tested for this manual. 2.4 Basic network configuration It is recommended to work in a local network. Therefore assign a local IP address to the PC/laptop. To assign a local IP address, open the Windows control panel. Navigate to the Network and Sharing Center. If the current IP address of the used PC is assigned to a public network, an unidentified network will be shown in the Network and Sharing Center. The Local Area Connection has to be accessed and the prop- erties must be opened. Afterwards, the Internet Protocol Version 4 (TCP/IPv4) has to be selected and the properties must be opened again. A window will open where the IP-address can be changed. Now, the checkbox called Use the following IP address has to be selected. This makes the fields below available. Furthermore, a local IP address (Class C address) has to be entered. Some basic information about IP addresses and TCP/IP can be found here. A not existing IP address has to be entered into the field IP address. All clients in the network have to have the same first three blocks in the address. Only the last block needs to be unique in the network. All addresses between 192.168.0.1 and 192.168.0.254 are possible, 192.168.0.255 is exempt from use (it s called the broadcast address to reach all clients in the network). Finally, with a click into the subnet mask field, the subnet mask will be entered automatically (255.255.255.0). The correct properties can be checked by open a command prompt R, type in cmd and press enter). With the command ping and the IP address of a device, a ping will be sent to the device. If the Ethernet connection was setup correctly, a response will appear in the command window. Otherwise, a timeout message will be shown. The IP address of the PLC will be assigned later, this happens with the TIA portal during the device con- figuration. Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 11 von 71

3 TIA Portal configuration The TIA portal from Siemens provides a programming and configuring environment. PLC programs can be created, networks and devices can be configured and Human Machine Interfaces can be implemented. It is a very complex and versatile tool and it needs some time to get familiar with it. The following config- uration and program examples are realized with Organization blocks (OB), Function blocks (FB), Func- tions (FC) and Data blocks (DB). The used languages are FBD (Function block diagram) for the OB and SCL (Structured Control Language) for all FBs., 3.1 Initializing TIA portal The first step will be to run the Siemens Automation License Manager to organize the software licenses. The Automation License Manager will be installed during the TIA portal installation. Activate your TIA license and run the TIA portal. Please make sure the right versions and updates are installed (please refer to chapter 5. 3). After the start of the TIA portal a new project has to be created. Click on Create new project Fig. 8 TIA portal view Seite 12 von 71 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10

Assign a name for project Create Click on Create Fig. 9 Project name assignment Click on Devices & networks Fig. 10 First steps Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 13 von 71

Click on Configure networks Fig. 11 Device overview Expand the controllers tab Fig. 12 Network view Seite 14 von 71 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10

Select 6ES7215-1AG40-0XB0 Fig. 13 Selection of the PLC Drag and drop the selected PLC Drag Fig. 14 Insert the PLC Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 15 von 71

Expand the Distributed I/O tab and then expand ET200SP, Interface modules, PROFINET and IM155-6 PN ST and select 6ES7 155-6AU00-0BN0 Fig. 15 Distributed I/O selection Drag and drop the selected module Fig. 16 Insert the distributed I/O terminal Seite 16 von 71 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10

Drag and drop a connection between the green frames. Afterwards, make a double click onto the ET220SP Fig. 17 PROFINET connection Expand the Communication modules Fig. 18 Device configuration ET200SP Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 17 von 71

Expand IO-Link Master, CM 4xIO-Link and select 6ES7137-6BD00-0BA0 Fig. 19 IO-Link Master selection Drag and drop the selected module to slot 1 Make a right click to Slot 0 and select Assign device name in the upcoming menu bar Fig. 20 Insert the IO-Link Master Seite 18 von 71 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10

Select PN/IE Select the upcoming device Select your network port where the Ethernet cable is plugged in Fig. 21 Assignment of ET200SP Enable Flash Flash LED LED and and check if if the the LEDs LEDs on on the the ET200SP ET200SP are are flashing flashing If If the the LEDs on of the ET200SP are Flashing, flashing, click click on on `Assign Assign name name Click Click on on Close Close to to continue Fig. 22 Check the selected device Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 19 von 71

Click on Go online Fig. 23 Going online Select PN/IE Select the used network card Select Direct At slot 1X1 Click on Start search Fig. 24 Selection of connection Seite 20 von 71 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10

Select the PLC Enable Flash LED and check if the LED on the PLC are flashing Click on Go online Click on Go offline Fig. 25 Connection established Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 21 von 71

Click on Download to device Fig. 26 Downloading the configuration Select Stop all Click on Load Fig. 27 Load preview Seite 22 von 71 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10

Continue with Finish Fig. 28 Loading results Make a right click onto the IO-Link master and select Start device tool Fig. 29 Successful implementation of the IO-Link master Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 23 von 71

Select S7-PCT Select Start Fig. 30 Starting the device tool Select PN/E Select the used network card Continue with OK ct Direct at s lot 0X1 Fig. 31 Selection of the used network interface Seite 24 von 71 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10

Check the components Fig. 32 SIMATIC S7-PCT The next step will be choosing the IODD file. Therefore, download the latest IODD file for the CPV10, VPPM and CMMO-ST from the Festo support portal and save it locally on the hard drive. Then extract the.zip file into a folder and keep the location path in mind. Click on Options and then select Import IODD Fig. 33 Open the options Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 25 von 71

Click on Browse Fig. 34 Import IODD files Select the CPV10 xml file Click on Open Fig. 35 Select the CPV IODD file Seite 26 von 71 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10

Click on Browse and repeat the last steps to implement the IODD files for the VPPM and CMMOP-ST Make sure to insert the Festo-CMMO-ST-C5-1- LKP_FHPP_and_FPC-20150717-IODD1.1.xml Fig. 36 Browse for the other IODD files Check all three files Click on Import Continue with Close Fig. 37 Import all IODD files Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 27 von 71

Drag and drop the VPPM to port 1 Fig. 38 Configuring IO-Link master slots Drag and drop the CPV to port 2 Select CPV10 8 Valves Fig. 39 Insert the CPV10 Seite 28 von 71 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10

Drag and drop the CMMO-ST to port 3 Select CMMO-ST-C5-1-LKP (FHPP Standard + FPC) Fig. 40 Insert the CMMO-ST Click on Load Fig. 41 Loading the configuration to the device Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 29 von 71

Click on [Slot 1] CM 4xIO-Link_1 Fig. 42 Successful download Click on Addresses Enable Show absolute addresses Note the addresse s of the devices on each port Finally, close the PCT Fig. 43 Address assignment Seite 30 von 71 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10

Double click on Slot 0 Select Hardware identifier Note the Hardware identifier Fig. 44 Hardware identifier Click on Retrieve library Fig. 45 Retrieve library Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 31 von 71

Now, select the library file: FestoMotionFHPP_V13_SP1.zal13 and open the library. It s very important that the library is Version V13.0.10 or newer!!!, otherwise a problem will occur during compiling. Then include the library in the same way: 20150327_IO_LINK_Library_V13_SP1. Fig. 46 Organizing the project library Drag and drop to Add new type Select IO_LINK_DEVICE and IO_LINK_MASTER Fig. 47 Copying the IO-Link types Seite 32 von 71 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10

Drag and drop to Master copies Select all four master copies Fig. 48 Adding FHPP functions to the project library Double click on Main [OB1] Fig. 49 Finished library configuration Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 33 von 71

3.2 Configuration CPV10 Make a right click Select FBD Fig. 50 Switching programming language of the OB1 4. Type in a name for the block 1. Double click on Add new block 3. Select SCL 2. Select Function block 5. Continue with OK Fig. 51 Creating a function block Seite 34 von 71 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10

Fig. 52 Created function block Program: wcpv := 16#AAAA; Fig. 53 Programming the CPV control function block Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 35 von 71

Make a right click onto the variable Click on Define tag Fig. 54 Define a tag The address is the address from the PCT which was noted before Address: %QW4 Data type: Word Click on Define Fig. 55 Addressing the output word of the CPV Seite 36 von 71 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10

Drag and drop the CPV_con- block to Net- work trol function 1 Double click on Main [OB1] Confirm with OK Fig. 56 Creating the related data block Click on download to device Fig. 57 Downloading the PLC program Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 37 von 71

Click on Load Fig. 58 Load preview Click on Finish Fig. 59 Load results Now the LEDs on the CPV10 should be The next step will be the implementation of the VPPM on.. Seite 38 von 71 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10

3.3 Configuration VPPM Select Libraries Rename the network Fig. 60 Starting the implementation of the VPPM Select IO_LINK_DEVICE Drag and drop IO_LINK_DEVICE to network 2 Fig. 61 Implementation of an IO-Link function block Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 39 von 71

Confirm with OK Fig. 62 Data block VPPM An additional global data block will be created to organize all variable in one data block. Double click on Add new block Fig. 63 Creating a global data block Seite 40 von 71 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10

3. Type in a name for the data block 2. Select Global DB 1. Select Data block 4. Continue with OK Fig. 64 Configuration global data block Fig. 65 Global data block Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 41 von 71

Create these variables Double click on Main [OB1] Fig. 66 Creation of the variables for the VPPM Name Data type Default value VPPMdata Array[0..231] of Byte bvppmdatareq Bool False ivppmindex Int 0 ivppmsubindex Int 0 bvppmrw Bool false ivppmstep Int 1 bvppmdone Bool false Table 3.1: Global data block variable declaration VPPM Seite 42 von 71 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10

Link the variables Double click on Add new block Fig. 67 Link the global variables to the function block Variable name Function block assignment GlobalData.bVPPMdataReq REQ 16#115 ID 227 CAP GlobalData.bVPPMrw RD_WR 1 PORT GlobalData.iVPPMIndex IOL_INDEX GlobalData.iVPPMSubindex IOL_SUBINDEX 8 LEN GlobalData.VPPMdata RECORD_IOL_DATA GlobalData.bVPPMDone DONE_VALID Table 3.2: Assignment list IO_LINK_DEVICE_FB Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 43 von 71

2. Type in a name for the FB Select Function block Select SCL Continue with OK Fig. 68 Creation of a new function block to control the VPPM Fig. 69 VPPM control function block Seite 44 von 71 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10

Select R_TRIG Drag and drop R_TRIG Fig. 70 Implementation of an edge detection Click on OK Fig. 71 Data block R_TRIG Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 45 von 71

Assign the busy output of the IO_LINK_D VICE FB to the CLK variable of the R_TRIG E- Fig. 72 Variable assignment for the edge detection Program: "R_TRIG_DB"(CLK:="IO_LINK_DEVICE_DB".BUSY); CASE "Global- Data".iVPP- MStep OF 1: "GlobalData".iVPPMIndex := 67; "GlobalData".iVPPMSubindex := 1; "GlobalData".bVPPMrw := true; "GlobalData".VPPMdata[0] := 64; //motoring limits active "GlobalData".bVPPMdataReq := true; IF "R_TRIG_DB".Q THEN //positive edge detection "GlobalData".iVPPMStep := 10; END_IF; 10: IF "R_TRIG_DB".Q THEN "GlobalData".bVPPMdataReq := false; "GlobalData".iVPPMStep := 20; END_IF; 20: "GlobalData".iVPPMIndex := 67; "GlobalData".iVPPMSubindex := 3; "GlobalData".bVPPMrw := true; "GlobalData".VPPMdata[0] := 0; // pressure unit: mbar "GlobalData".bVPPMdataReq := true; // start the transfer IF "R_TRIG_DB".Q THEN "GlobalData".iVPPMStep := 30; END_IF; Seite 46 von 71 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10

30: IF "GlobalData".bVPPMDone THEN "Global- Data".bVPPMdataReq := false; "Global- Data".iVPPMStep := 40; END_IF; //low er upper limit 40: "GlobalData".iVPPMIndex := 105; "GlobalData".iVPPMSubindex := 0; "GlobalData".bVPPMrw := true; "GlobalData".VPPMdata[0] := 16#0A; "GlobalData".VPPMdata[1] := 16#28; //write the lower limit: dec->2600 // value has to be split in two bytes "GlobalData".bVPPMdataReq := true; IF "R_TRIG_DB".Q THEN "GlobalData".iVPP- MStep := 50; END_IF; 50: IF "GlobalData".bVPPMDone THEN "Global- Data".bVPPMdataReq := false; "Global- Data".iVPPMStep := 60; END_IF; 60: "GlobalData".iVPPMIndex := 106; "GlobalData".iVPPMSubindex := 0; "GlobalData".bVPPMrw := true; "GlobalData".VPPMdata[0] := 16#0C; "GlobalData".VPPMdata[1] := 16#E4; "GlobalData".bVPPMdataReq := true; //write the upper limit: dec->3300 // value has to be split in two bytes IF "R_TRIG_DB".Q THEN "GlobalData".iVPP- MStep := 70; END_IF; 70: IF "GlobalData".bVPPMDone THEN "Global- Data".bVPPMdataReq := false; "Global- Data".iVPPMStep := 80; END_IF; 80: "wvppmout" := 16#BB8; // setpoint for the pressure value END_CASE; Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 47 von 71

Make a right click onto the variable and then select Define tag Fig. 73 Definition of the output word for the VPPM Data type: Word Address: %QW2 Continue with Define Fig. 74 Assignment of the VPPM output address Seite 48 von 71 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10

Click on Software (rebuild all b locks) Fig. 75 Compile all blocks Double click on Main [OB1] Drag and drop VPPMcontrol Select VPPMcontrol Fig. 76 Calling of the VPPM FB Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 49 von 71

Continue with OK Fig. 77 Creation of a new data block Make a right click and select Compile and rebuild all blocks Click on Download to device Fig. 78 Compile and going online Seite 50 von 71 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10

Click on Load Fig. 79 Load preview The setpoint of the VPPM can be changed by changing the output word wvppmout. To watch the cur- rent pressure value, read the input word at the address %IW2. Create a tag in the same way as the out- put tag. Many other parameters can be read or written. Therefore, the index and subindex at the IO- Link device function block have to be changed. Referring to the operating instructions of the VPPM, the parameters 0-7 can be read/written with the index 0x43. The parameters 8-11 with index 0x68, param- eters 12-13 with index 0x69 and parameters 14-15 with index 0x6A. Use the subindex 0 to write param- eters and also use subindex 0 to read all parameters of an index. 3.4 Configuration CMMO_ST The last device is the CMMO-ST. The CMMO uses the Festo Handling and Positioning Protocol (FHPP). Some basics about the FHPP and documentations can be found in the support portal. The CMMO is connected to the ERMO (connected with a motor and an encoder cable) which has to be parameterized first. Therefore open the Festo Configuration Tool. Create a new project and configure the project as follows. Only the necessary parameters are shown. The other parameters can be left with the default value. Configuration Controller: Controller type: CMMO_ST-C5-1-LKP Configuration Axis Motor Unit: Type: ERMO-25-ST-E (unlimited) Brake: No Encoder: Yes Application Data Operation Modes: Control Interface: IO-Link Used functions: Record Sequence Comparators: Position Application Data Environment: Base load: 0.0 kgcm 2 (if nothing is mounted on the ERMO) Axis Axis Options: Homing Switch Type: None Axis Homing Method: Homing Method: Target: Current Position Fieldbus Operation Parameters: Interface Parameters: Device Profile: FHPP Standard +FPC Record table Basic Data: No.:1 Type: PRN Target: 2.000r Start Condition: Ignore Velocity: 60.000rpm Accl./Decel.: 1300rpm/s Establish the connection, download the parameterization and store it in the CMMO. Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 51 von 71

1. Double click on Main [OB1] 5. Drag and drop FHPP CONTROL 3. Select 2. Rename the third network 4. Select FHPP_CTRL Fig. 80 Rename the third network Continue with OK Fig. 81 Data block for the FHPP_CTRL Seite 52 von 71 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10

Select FHPP_DATA_PEEK Drag and drop Fig. 82 FHPP_DATA_PEEK block Continue with OK Fig. 83 Creation of FHPP_DATA_PEEK DB Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 53 von 71

Select FHPP_DATA_POKE Drag and drop Fig. 84 FHPP_DATA_POKE Continue with OK Fig. 85 Creation of the FHPP_DATA_POKE DB Seite 54 von 71 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10

Select FML_DATATYPES Drag and drop to PLC data types Fig. 86 Implementation of several FHPP data types Double click on GlobalData [DB3] Create a new row with a right click and select Add row Fig. 87 Adding a new variable Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 55 von 71

Make a right click on FML_DATATYPES Select Software (only changes) Fig. 88 Adding a DT_FML_REF data element Create a variable of the type DT_FML_REF Fig. 89 Adding a DT_FML_REF data element Seite 56 von 71 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10

Link ink 4 to IAddress_FHPP CMMO_ST to DeviceType D on t forget the quote, type: CMMO_ST Link the created structure to the FML_REF of the FB Fig. 90 Linkage of the FML_REF structure to the FB Link the created structure to the FML_REF of the FB Link 6 to OAddress_FHPP Link the created structure to the FML_REF of the FB Fig. 91 Linkage of the other structures to the FBs Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 57 von 71

Type in a name Select Function block Continue with OK Fig. 92 Creation of the CMMO control FB Double click on GlobalData Fig. 93 Created CMMO control FB Seite 58 von 71 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10

Create a variable: icmmostep of the data type Int with a default value 1 Double click on CMMOcontrol Fig. 94 Adding a step variable for the CMMO FB Fig. 95 Program to run the ERMO Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 59 von 71

The following code can be used to run the ERMO: CASE "GlobalData".iCMMOStep OF 1: // creating a sequence "FHPP_CTRL_DB".StartHoming := false; IF "FHPP_CTRL_DB".SupplyVoltPresent THEN "FHPP_CTRL_DB".EnableDrive := true; //enable the drive "GlobalData".iCMMOStep := 10; // go to the step 10 END_IF; 10: IF "FHPP_CTRL_DB".DriveEnabled AND "FHPP_CTRL_DB".MC THEN "FHPP_CTRL_DB".Stop := true; "GlobalData".iCMMOStep := 20; END_IF; 20: IF "FHPP_CTRL_DB".Ready THEN "FHPP_CTRL_DB".Halt := true; "FHPP_CTRL_DB".StartHoming := true; "GlobalData".iCMMOStep := 30; END_IF; 30: IF "FHPP_CTRL_DB".HomingValid THEN //check if the homing is already done "FHPP_CTRL_DB".StartHoming := false; "GlobalData".iCMMOStep := 40; ELSE 40: "FHPP_CTRL_DB".StartHoming := false; "GlobalData".iCMMOStep := 20; END_IF; FHPP_CTRL_DB".OPM := 0; // operation mode set selection =0 "FHPP_CTRL_DB".RecordNo := 1; //select record number 1 from the record table in FCT "GlobalData".iCMMOStep := 50; 50: IF ("FHPP_CTRL_DB".StateOPM = 0) THEN "FHPP_CTRL_DB".StartTask := true; "GlobalData".iCMMOStep := 60; END_IF; 60: IF "FHPP_CTRL_DB".AckStart THEN "FHPP_CTRL_DB".StartTask := false; "GlobalData".iCMMOStep := 70; END_IF; 70: IF NOT "FHPP_CTRL_DB".AckStart AND "FHPP_CTRL_DB".MC THEN "GlobalData".iC- MMOStep := 80; END_IF; 80: IF "trig" THEN // if trig is changed to 1, the same sequence starts again from step 30 "trig" := false; "GlobalData".iCMMOStep := 30; END_IF; END_CASE; Seite 60 von 71 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10

Select FHPPPLUS_MAPPING and FPC_MAPPING Drag and drop to program blocks Fig. 96 Adding two reference functions Double click on Main [OB1] Click on next to EN Select CMMOcontrol Drag and drop CMMOcontrol Fig. 97 Open the Main [OB1] Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 61 von 71

Type in a name for the variable, e.g. enablefb Make a right click and select Define tag Fig. 98 Assign a name to the enabling variable Click on Define Fig. 99 Define the tag Seite 62 von 71 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10

Make a right click on Program blocks Select Softw a re (rebuild all blocks) Fig. 100 Compile all program blocks Select download to device Select Stop all Click on Load Fig. 101 Downloading the PLC program Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 63 von 71

Click on Finish Fig. 102 Starting the modules Click on Go online Fig. 103 Going online Seite 64 von 71 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10

Click on monitor Fig. 104 Switch to monitoring mode Make a right click on the enable variable Click on Modify to 1 Fig. 105 Enable the CMMOcontrol FB The ERMO is now performing the configured and selected set from the record table in FCT. Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 65 von 71

To run the sequence again, a trigger was programmed in step 80. This trigger has to be set to 1. Therefore open the CMMOcontrol function block. Double click on CMMOcontrol Click on monito r Scroll down to step 80 Fig. 106 Opened CMMOcontrol FB Make a right click on th e variable Select Modify to 1 Fig. 107 Modify the trigger variable Seite 66 von 71 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10

Troubleshooting 4 Troubleshooting Generally, check if all connectors and cables are plugged in correctly. Also ensure that the power supply is switched on. Working with electricity can be dangerous. Before making changes on the kit, switch off the power supply and wait some time (power supplies can be energized after switching them off for several minutes). 4.1 No device can be found during Assign device name First check the physical Ethernet connection. Check if all cables are plugged in correctly? Open a prompt window ( +R) type in cmd and press enter. Then send a ping to the IP address relating to the PLC, by typing ping < IP address of the PLC > (e.g. ping 192.168.0.22). Fig. 108 Successful ping reply In some rare cases, the PC firewall is blocking the connection. Disable the firewall for the local connection and restart the PLC. 4.2 Problems to run the ERMO Use the FCT to monitor the FHPP status and see which bits are set and which not. Make sure the FCT and enable button for the Device control are disabled. If the START bit is already set, restart the PLC and run the program again. Also to switch the power supply off and on again helps sometimes Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 67 von 71

Troubleshooting 4.3 Compiling errors If errors occur during the compiling saying that the wrong parameters were transmitted to the FHPP_PEEK or the FHPP_POKE block, the wrong library version is used. Also make sure the right library under the PLC was chosen. There are two folders for different types of Siemens PLCs (Fig. 109). Fig. 109 Different library folders Seite 68 von 71 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10

Troubleshooting 4.4 Table of figures Fig. 1 Overview system setup... 4 Fig. 2 Pin assignment Siemens IO-Link master... 5 Fig. 3 Connection of X1... 6 Fig. 4 Connection of X2... 7 Fig. 5 Connection of X3... 7 Fig. 6 Connection of X6... 7 Fig. 7 Connection of X9... 8 Fig. 8 TIA portal view... 10 Fig. 9 Project name assignment... 11 Fig. 10 First steps... 11 Fig. 11 Device overview... 12 Fig. 12 Network view... 12 Fig. 13 Selection of the PLC... 13 Fig. 14 Insert the PLC... 13 Fig. 15 Distributed I/O selection... 14 Fig. 16 Insert the distributed I/O terminal... 14 Fig. 17 PROFINET connection... 15 Fig. 18 Device configuration ET200SP... 15 Fig. 19 IO-Link Master selection... 16 Fig. 20 Insert the IO-Link Master... 16 Fig. 21 Assignment of ET200SP... 17 Fig. 22 Check the selected device... 17 Fig. 23 Going online... 18 Fig. 24 Selection of connection... 18 Fig. 25 Connection established... 19 Fig. 26 Downloading the configuration... 20 Fig. 27 Load preview... 20 Fig. 28 Loading results... 21 Fig. 29 Successful implementation of the IO-Link master... 21 Fig. 30 Starting the device tool... 22 Fig. 31 Selection of the used network interface... 22 Fig. 32 SIMATIC S7-PCT... 23 Fig. 33 Open the options... 23 Fig. 34 Import IODD files... 24 Fig. 35 Select the CPV IODD file... 24 Fig. 36 Browse for the other IODD files... 25 Fig. 37 Import all IODD files... 25 Fig. 38 Configuring IO-Link master slots... 26 Fig. 39 Insert the CPV10... 26 Fig. 40 Insert the CMMO-ST... 27 Fig. 41 Loading the configuration to the device... 27 Fig. 42 Successful download... 28 Fig. 43 Address assignment... 28 Fig. 44 Hardware identifier... 29 Fig. 45 Retrieve library... 29 Fig. 46 Organizing the project library... 30 Fig. 47 Copying the IO-Link types... 30 Fig. 48 Adding FHPP functions to the project library... 31 Fig. 49 Finished library configuration... 31 Fig. 50 Switching programming language of the OB1... 32 Fig. 51 Creating a function block... 32 Fig. 52 Created function block... 33 Fig. 53 Programming the CPV control function block... 33 Fig. 54 Define a tag... 34 Fig. 55 Addressing the output word of the CPV... 34 Fig. 56 Creating the related data block... 35 Fig. 57 Downloading the PLC program... 35 Fig. 58 Load preview... 36 Fig. 59 Load results... 36 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 69 von 71

Troubleshooting Fig. 60 Starting the implementation of the VPPM... 37 Fig. 61 Implementation of an IO-Link function block... 37 Fig. 62 Data block VPPM... 38 Fig. 63 Creating a global data block... 38 Fig. 64 Configuration global data block... 39 Fig. 65 Global data block... 39 Fig. 66 Creation of the variables for the VPPM... 40 Fig. 67 Link the global variables to the function block... 41 Fig. 68 Creation of a new function block to control the VPPM... 42 Fig. 69 VPPM control function block... 42 Fig. 70 Implementation of an edge detection... 43 Fig. 71 Data block R_TRIG... 43 Fig. 72 Variable assignment for the edge detection... 44 Fig. 73 Definition of the output word for the VPPM... 46 Fig. 74 Assignment of the VPPM output address... 46 Fig. 75 Compile all blocks... 47 Fig. 76 Calling of the VPPM FB... 47 Fig. 77 Creation of a new data block... 48 Fig. 78 Compile and going online... 48 Fig. 79 Load preview... 49 Fig. 80 Rename the third network... 50 Fig. 81 Data block for the FHPP_CTRL... 50 Fig. 82 FHPP_DATA_PEEK block... 51 Fig. 83 Creation of FHPP_DATA_PEEK DB... 51 Fig. 84 FHPP_DATA_POKE... 52 Fig. 85 Creation of the FHPP_DATA_POKE DB... 52 Fig. 86 Implementation of several FHPP data types... 53 Fig. 87 Adding a new variable... 53 Fig. 88 Adding a DT_FML_REF data element... 54 Fig. 89 Adding a DT_FML_REF data element... 54 Fig. 90 Linkage of the FML_REF structure to the FB... 55 Fig. 91 Linkage of the other structures to the FBs... 55 Fig. 92 Creation of the CMMO control FB... 56 Fig. 93 Created CMMO control FB... 56 Fig. 94 Adding a step variable for the CMMO FB... 57 Fig. 95 Program to run the ERMO... 57 Fig. 96 Adding two reference functions... 59 Fig. 97 Open the Main [OB1]... 59 Fig. 98 Assign a name to the enabling variable... 60 Fig. 99 Define the tag... 60 Fig. 100 Compile all program blocks... 61 Fig. 101 Downloading the PLC program... 61 Fig. 102 Starting the modules... 62 Fig. 103 Going online... 62 Fig. 104 Switch to monitoring mode... 63 Fig. 105 Enable the CMMOcontrol FB... 63 Fig. 106 Opened CMMOcontrol FB... 64 Fig. 107 Modify the trigger variable... 64 Fig. 108 Successful ping reply... 65 Seite 70 von 71 Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10

Troubleshooting 4.5 List of tables Tab. 1 List of abbreviations and terms 3 Tab. 2 Used hardware 3 Tab. 3 Global data block variable declaration VPPM... 40 Tab. 4 Assignment list IO_LINK_DEVICE FB... 41 4.6 Links to the support portal The catalogue pages of the ERMO-25 can be found here: https://www.festo.com/cat/en-gb_gb/data/doc_enus/pdf/us/ermo_enus.pdf The documentation of the CMMO can be found here: https://www.festo.com/net/en-us_us/supportportal/downloads/379873/379602/8043621g1.pdf The manual for the CMMO-ST and the device profile FHPP can be found here: https://www.festo.com/net/en-us_us/supportportal/downloads/379874/379616/8043629g1.pdf The Siemens support portal can be accessed via this link: https://support.industry.siemens.com/cs/?lc=en-us Application Note Implementation manual Festo IO-Link devices into the Siemens TIA portal 1.10 Seite 71 von 71