EUCHNER EKS-A-IIX-G01-ST02/03 Application

EUCHNER EKS-A-IIX-G01-ST02/03 Application

Integration of eks with profinet interface in beckhoff twincat 3

Advertisement

Application
EN
Integration of EKS with PROFINET interface in BECKHOFF TwinCAT 3

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the EKS-A-IIX-G01-ST02/03 and is the answer not in the manual?

Questions and answers

Summary of Contents for EUCHNER EKS-A-IIX-G01-ST02/03

  • Page 1 Application Integration of EKS with PROFINET interface in BECKHOFF TwinCAT 3...
  • Page 2: Table Of Contents

    Scope ............................3 1.3. Target group ..........................3 1.4. Supplementary documents ......................3 1.5. Notice ............................3 Components/modules used .................. 4 2.1. EUCHNER ............................4 2.2. Others ............................4 2.3. Software ............................4 Functional description ................... 4 Overview of the communication data ..............5 4.1. Input ..............................5 4.2.
  • Page 3: About This Document

    Scope The purpose of this document is the integration and configuration of the EKS with PROFINET interface (from device version as per table) in BECKHOFF TwinCAT 3. Order no. Designation Device version 106305 EKS-A-IIX-G01-ST02/03 V3.0.0 106306 EKS-A-IIXA-G01-ST02/03/04 V3.0.0 122352 EKS-A-AIX-G18 V1.X.X...
  • Page 4: Components/Modules Used

    2.1. EUCHNER Description Order number / item EKS with PROFINET interface 106305 / EKS-A-IIX-G01-ST02/03 TIP! M o r e i n f o r m a t i o n a n d d o w n l o a d s...
  • Page 5: Overview Of The Communication Data

    Application EKS Integration of EKS with PROFINET interface in BECKHOFF TwinCAT 3 4. Overview of the communication data 4.1. Input PROFINET Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte 0 Job in progress Job finished Electronic-Key Device ready for...
  • Page 6: Installing The Gsd File

    GSDML-V2.31-EUCHNER-EKS_PN_modular_126145-YYYYMMDD.xml (Order No. 122352/122353) You will find the GSD files in the download area at www.euchner.com. Always use the latest GSD file. Please proceed as follows to integrate the GSD file in TwinCAT 3: Open the path as shown in Figure 1 and then add the unpacked GSDML and bitmap file.
  • Page 7: Setting The Control System Parameters

    Application EKS Integration of EKS with PROFINET interface in BECKHOFF TwinCAT 3 6. Setting the control system parameters Specify the cycle time for the PlcTask. Use the value 2 for this purpose. Figure 2: Setting the control system parameters AP000240-01-01/19 (Application)
  • Page 8: Configuring And Setting The Parameters Of The Eks With Profinet Interface

    Application EKS Integration of EKS with PROFINET interface in BECKHOFF TwinCAT 3 7. Configuring and setting the parameters of the EKS with PROFINET interface 7.1. Configuring the PROFINET network Add the PROFINET network as follows: In Solution Explorer click I/O, right-click Devices and choose Scan. Figure 3: Adding PROFINET network NOTE!
  • Page 9: Configuring The Eks With Profinet Interface

    Application EKS Integration of EKS with PROFINET interface in BECKHOFF TwinCAT 3 You are then prompted as to whether a search is to be made for additional boxes (devices). Please answer this prompt with No because it cannot be ensured the correct EKS will be configured. Figure 5: Rejecting search for devices 7.2.
  • Page 10 Application EKS Integration of EKS with PROFINET interface in BECKHOFF TwinCAT 3 Select the corresponding GSDML file. Figure 7: Selection of the GSDML file Select the corresponding EKS. Figure 8: Selection of the EKS (Application) AP000240-01-01/19...
  • Page 11: Setting The Eks Parameters

    Application EKS Integration of EKS with PROFINET interface in BECKHOFF TwinCAT 3 7.3. Setting the EKS parameters The following PROFINET parameters must be set: Ì Device name (factory setting from GSD file): [eks-pn]. Ì IP address: fixed Figure 9: PROFINET parameters Ì...
  • Page 12: Assigning Profinet Device Names To The Eks

    Application EKS Integration of EKS with PROFINET interface in BECKHOFF TwinCAT 3 7.4. Assigning PROFINET device names to the EKS There are two ways of assigning a device name to the EKS. Either using the EKS web browser (see manual) or using TwinCAT. In the following we show name assignment using TwinCAT.
  • Page 13 Application EKS Integration of EKS with PROFINET interface in BECKHOFF TwinCAT 3 Select the EKS from the list. Enter the device name in Stationname and accept using Set Stationname. Figure 12: Assigning device name TIP! As an alternative to MAC address comparison, you can use Start Signal to see whether you have selected the correct subscriber.
  • Page 14: Using The Beckhoff Library

    The library is intended to assist you during programming. The library contains pre-prepared data that you can then use. Open the page with the EKS applications in the download area at www.euchner.com and download the library for the EKS. 8.1.
  • Page 15 Next you must add the library to the project. In Solution Explorer, right-click References and then choose Add library. Figure 14: Adding library to the project Select the library prepared by EUCHNER. Figure 15: Selection of the library AP000240-01-01/19 (Application)
  • Page 16: Calling The Library And Description Of The Block Interface

    Opening the Input Assistant You will find the library on the Categories tab. Select Function Blocks. You will find the EUCHNER library in the window on the right. You can select two function blocks from the library. EKS_Read is required to read the Electronic-Key data and EKS_Write to write data to the Electronic-Key.
  • Page 17 Application EKS Integration of EKS with PROFINET interface in BECKHOFF TwinCAT 3 The blocks must be instanced. In our example we assign the name EKS_Read_01 for the data type EKS_Read. Then you can repeat this process (step 1 to 3) for the data type EKS_Write. Figure 18: Declaring the data type The program must now be built.
  • Page 18: Description Of The Block Interfaces

    Application EKS Integration of EKS with PROFINET interface in BECKHOFF TwinCAT 3 8.2.2. Description of the block interfaces Parameter Data type Description Device_ready_for_operation BOOL After completion of the configuration of the device, ready for operation is signaled. Electronic_Key_detected BOOL Indication that an Electronic-Key is detected. Job_finished BOOL Provides feedback on the successful completion of a write process.
  • Page 19: Linking The Input And Output Areas In Eks

    Application EKS Integration of EKS with PROFINET interface in BECKHOFF TwinCAT 3 9. Linking the input and output areas in EKS The read (Inputs) and write (Outputs) modules must be linked using the variables generated in chapter 8.2.1. In Solution Explorer, open the tree as shown below. Double-click the read (Inputs) module to open the properties. Figure 21: EKS read (Inputs) module in the hardware configuration AP000240-01-01/19 (Application)
  • Page 20 Application EKS Integration of EKS with PROFINET interface in BECKHOFF TwinCAT 3 In the properties for the read (Inputs) module, click the Linked to... button . Figure 22: Properties of the read (Inputs) module Select the input variable and click OK. To link the output variables, undertake steps 1-3 again for the write (Outputs) module that is to be found in Solution Explorer in Term 3 (Write: 128 bytes).
  • Page 21: Reading And Writing Electronic-Key Data

    Application EKS Integration of EKS with PROFINET interface in BECKHOFF TwinCAT 3 10. Reading and writing Electronic-Key data 10.1. Transferring program to the PLC Transfer the program to the control system by clicking Activate configuration 10.2. Reading content of the memory in the Electronic-Key using the block interface In the following an extract of the status bytes and part of the data in the memory in the Electronic-Key are shown using the block interface.
  • Page 22: Important Note - Please Observe Carefully

    In any event, the information in the operating in- structions on the part of EUCHNER, as well as on the part of third-party suppliers, must be used as the basis before this application is integrated into an overall safety function.
  • Page 23 Application EKS Integration of EKS with PROFINET interface in BECKHOFF TwinCAT 3 AP000240-01-01/19 (Application)
  • Page 24 Edition: AP000240-01-01/19 Title: Application EKS Integration of EKS with PROFINET interface in BECKHOFF TwinCAT 3 Copyright: © EUCHNER GmbH + Co. KG, 01/2019 Subject to technical modifications; no responsibility is accept- ed for the accuracy of this information. (Application) AP000240-01-01/19...

This manual is also suitable for:

Eks-a-iixa-g01-st02/03/04Eks-a-aix-g18Eks-a-aixa-g18

Table of Contents