Application Note Commissioning VTEM connected to Beckoff PLC via CPX-FB38 bus node Commissioning VTEM connected to Beckoff PLC via CPX-FB38 bus node VTEM 100186
Title... Commissioning VTEM connected to Beckoff PLC via CPX-FB38 bus node Version... 1.10 Document no.... 100186 Original...en Author... Festo Last saved... 11.10.2018 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/sp 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/sp. 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, 2018) Internet: http://www.festo.com E-Mail: service_international@festo.com
Table of contents 1 Components/Software used... 5 1.1 Application description... 5 1.2 Topology... 6 1.3 VTEM function block library structure... 7 2 CPX-FB37 configuration... 8 2.1.1 Prerequisites... 8 2.1.2 Network interface... 8 2.1.3 Setting the EtherCAT address... 9 3 Implementation in TwinCAT V3... 10 3.1 Create new project... 10 3.2 Install the codesys library... 10 3.3 Add the library in your project... 12 3.4 Scan the network (in config mode)... 12 3.5 Add a new PLC item... 15 3.6 Configure GVL... 15 3.7 Add a new POU and function block from the VTEM library... 16 3.8 Link I/O bytes of the CPX-FB37 to the first VTEM valve... 17 4 Run your project... 20 4.1 Active configuration... 20 4.2 Download to PLC and run your program... 20
Components/Software used 1 Components/Software used Type/Name Version Software/Firmware Date of manufacture VTEM-S1-27-E1-B1-Q10-U-Q6-4C- BAPSTPDLP-2PD-2SP-AD 50E- F37GCQS-P To filled September 2017 EtherCAT FB-38 XML Rev 11 (Datatype USINT & BITARR8) 16-12-2014 Codesys Library Festo_MotionTerminal_3 1.1.88.0 (Festo AG & Co.KG) To be filled Table 1.1: 1 Components/Software used 1.1 Application description This part of the documentation describes the connection and configuration of the VTEM within a EtherCAT network. The target audience is technicians who are already familiar with this bus protocol. EtherCAT (Ethernet for Control Automation Technology) is an Ethernet-based fieldbus system, developed by Beckhoff Automation. The protocol is standardized in IEC 61158 and is suitable for both hard and soft real-time computing requirements in automation technology. Application Note Commissioning VTEM connected to Beckoff PLC via CPX-FB38 bus node 1.10 Seite 5 von 21
Components/Software used 1.2 Topology 6 Bytes of data are exchanged cyclically between each valve and the controller Each valve can be used independently from each other Sensors connected to input modules are not accessible directly via Cbus Seite 6 von 21 Application Note Commissioning VTEM connected to Beckoff PLC via CPX-FB38 bus node 1.10
Components/Software used 1.3 VTEM function block library structure Note Do not use the transfer channel in the same time as Operation function block. Application Note Commissioning VTEM connected to Beckoff PLC via CPX-FB38 bus node 1.10 Seite 7 von 21
CPX-FB37 configuration 2 CPX-FB37 configuration 2.1.1 Prerequisites We will use the CPX-FB37 bus node in FB-38 compatibility mode. Download the two CPX-FB-38 XML files in the Festo support portal: https://www.festo.com/net/fr_fr/supportportal/default.aspx?q=552046&tab=4&s=t#result and configure the DIL 1.2: ON (fixed I/O size active (64 byte I/O) Copy the tow XML in : C:\TwinCAT\3.1\Config\Io\EtherCAT 2.1.2 Network interface To connect the CPX to the network, there are two 4-pinM12 sockets with D-coding on the bus node (for industrial Ethernet use, corresponding to IEC 61076-2-101). The sockets are compatible with SPEEDCON plugs. Seite 8 von 21 Application Note Commissioning VTEM connected to Beckoff PLC via CPX-FB38 bus node 1.10
CPX-FB37 configuration 2.1.3 Setting the EtherCAT address You can assign a free EtherCAT address (Explicit Device ID) to the bus node by using DIL switch 3. Setting an EtherCAT address is optional (e.g. for the Hot-Connect function). You can set the EtherCAT address in binary coded format by using switch elements 1 to 8. If the EtherCAT address 0 is set, the programmed address in the EEPROM is used (factory setting). 1 to 255 are thereby available as possible EtherCAT addresses. Application Note Commissioning VTEM connected to Beckoff PLC via CPX-FB38 bus node 1.10 Seite 9 von 21
Implementation in TwinCAT V3 3 Implementation in TwinCAT V3 3.1 Create new project 3.2 Install the codesys library Seite 10 von 21 Application Note Commissioning VTEM connected to Beckoff PLC via CPX-FB38 bus node 1.10
Implementation in TwinCAT V3 Application Note Commissioning VTEM connected to Beckoff PLC via CPX-FB38 bus node 1.10 Seite 11 von 21
Implementation in TwinCAT V3 3.3 Add the library in your project 3.4 Scan the network (in config mode) Seite 12 von 21 Application Note Commissioning VTEM connected to Beckoff PLC via CPX-FB38 bus node 1.10
Implementation in TwinCAT V3 Application Note Commissioning VTEM connected to Beckoff PLC via CPX-FB38 bus node 1.10 Seite 13 von 21
Implementation in TwinCAT V3 Within the solution explorer you should notice that the CPX device are connected to EtherCAT : Seite 14 von 21 Application Note Commissioning VTEM connected to Beckoff PLC via CPX-FB38 bus node 1.10
Implementation in TwinCAT V3 3.5 Add a new PLC item 3.6 Configure GVL In our case, it means that the first byte of the CPX-FB37 correspond to the first valve of the VTEM ( because there are no other existing CPX module between the FB-37 and the VTEM): Application Note Commissioning VTEM connected to Beckoff PLC via CPX-FB38 bus node 1.10 Seite 15 von 21
Implementation in TwinCAT V3 3.7 Add a new POU and function block from the VTEM library Add the function block you need (eg FB control): Declare FB as local or GVL: Link the I/O byte of the first VTEM valve declared in GVL: Seite 16 von 21 Application Note Commissioning VTEM connected to Beckoff PLC via CPX-FB38 bus node 1.10
Implementation in TwinCAT V3 3.8 Link I/O bytes of the CPX-FB37 to the first VTEM valve Application Note Commissioning VTEM connected to Beckoff PLC via CPX-FB38 bus node 1.10 Seite 17 von 21
Implementation in TwinCAT V3 You can also take the name from the linked variable (GVL in this project): Seite 18 von 21 Application Note Commissioning VTEM connected to Beckoff PLC via CPX-FB38 bus node 1.10
Implementation in TwinCAT V3 Repeat the same procedure for Outputs bytes: Application Note Commissioning VTEM connected to Beckoff PLC via CPX-FB38 bus node 1.10 Seite 19 von 21
Run your project 4 Run your project 4.1 Active configuration 4.2 Download to PLC and run your program Seite 20 von 21 Application Note Commissioning VTEM connected to Beckoff PLC via CPX-FB38 bus node 1.10
Run your project Switch PLC in Run mode: Application Note Commissioning VTEM connected to Beckoff PLC via CPX-FB38 bus node 1.10 Seite 21 von 21