beckhoff · KL6301 · 71 pp.
Beckhoff KL6301 TwinCAT 2 PLC Library TcEIB — Operation manual
Руководство по библиотеке TwinCAT PLC TcEIB для обмена данными с устройствами EIB через терминал KL6301. Описывает интеграцию в TwinCAT, программирование, функциональные блоки, функции и типы данных.
Related manuals
Contents
Document text
Manual | EN TX1200 TwinCAT 2 | PLC Library: TcEIB 2023-09-13 | Version: 1.4
Table of contents
Table of contents Table of contents 1 Foreword.................................................................................................................................................... 5 1.1 Notes on the documentation ............................................................................................................. 5 1.2 For your safety .................................................................................................................................. 6 1.3 Notes on information security............................................................................................................
7 2 Introduction ............................................................................................................................................... 8 3 Target groups ............................................................................................................................................ 9 4 Function of the KL6301........................................................................................................................... 10 5 Integration into TwinCAT........................................................................................................................
11 5.1 KL6301 - Linking to the TwinCAT System Manager ....................................................................... 11 5.2 Integration in TwinCAT (CX9020) ................................................................................................... 14 5.3 Integration into TwinCAT (BC9191) ................................................................................................ 16 6 Programming...........................................................................................................................................
20 6.1 General information......................................................................................................................... 22 6.2 EIB group filter ................................................................................................................................ 22 6.3 Function blocks ............................................................................................................................... 23 6.3.1 Function blocks details.....................................................................................................
24 6.3.2 KL6301............................................................................................................................. 26 6.3.3 KL6301_EX...................................................................................................................... 27 6.3.4 EIB_2OCTET_FLOAT_REC............................................................................................ 29 6.3.5 EIB_2OCTET_SIGN_REC............................................................................................... 29 6.3.6 EIB_2OCTET_UNSIGN_REC..........................................................................................
30 6.3.7 EIB_3BIT_CONTROL_REC............................................................................................. 30 6.3.8 EIB_4OCTET_FLOAT_REC............................................................................................ 31 6.3.9 EIB_4OCTET_SIGN_REC............................................................................................... 31 6.3.10 EIB_4OCTET_UNSIGN_REC.......................................................................................... 32 6.3.11 EIB_8BIT_SIGN_REC .....................................................................................................
32 6.3.12 EIB_8BIT_UNSIGN_REC ................................................................................................ 33 6.3.13 EIB_ALL_DATA_TYPES_REC........................................................................................ 33 6.3.14 EIB_ALL_DATA_TYPES_REC_EX ................................................................................. 34 6.3.15 EIB_BIT_CONTROL_REC............................................................................................... 34 6.3.16 EIB_BIT_REC ..................................................................................................................
35 6.3.17 EIB_DATE_REC .............................................................................................................. 36 6.3.18 EIB_TIME_REC ............................................................................................................... 36 6.3.19 EIB_2OCTET_FLOAT_SEND.......................................................................................... 37 6.3.20 EIB_2OCTET_FLOAT_SEND_EX................................................................................... 38 6.3.21 EIB_2OCTET_SIGN_SEND ............................................................................................
39 6.3.22 EIB_2OCTET_SIGN_SEND_EX...................................................................................... 40 6.3.23 EIB_2OCTET_UNSIGN_SEND ....................................................................................... 41 6.3.24 EIB_2OCTET_UNSIGN_SEND_EX ................................................................................ 42 6.3.25 EIB_3BIT_CONTROL_SEND .......................................................................................... 43 6.3.26 EIB_4OCTET_FLOAT_SEND..........................................................................................
44 6.3.27 EIB_4OCTET_FLOAT_SEND_EX................................................................................... 45 6.3.28 EIB_4OCTET_SIGN_SEND ............................................................................................ 46 TX1200 3 Version: 1.4
Table of contents
Table of contents 6.3.29 EIB_4OCTET_SIGN_SEND_EX...................................................................................... 47 6.3.30 EIB_4OCTET_UNSIGN_SEND ....................................................................................... 48 6.3.31 EIB_8BIT_SIGN_SEND................................................................................................... 49 6.3.32 EIB_8BIT_SIGN_SEND_EX ............................................................................................ 50 6.3.33 EIB_8BIT_UNSIGN_SEND..............................................................................................
51 6.3.34 EIB_8BIT_UNSIGN_SEND_EX....................................................................................... 52 6.3.35 EIB_ALL_DATA_TYPES_SEND...................................................................................... 54 6.3.36 EIB_BIT_CONTROL_SEND ............................................................................................ 56 6.3.37 EIB_BIT_SEND................................................................................................................ 57 6.3.38 EIB_BIT_SEND_EX.........................................................................................................
58 6.3.39 EIB_BIT_SEND_MANUAL............................................................................................... 59 6.3.40 EIB_DATE_SEND............................................................................................................ 60 6.3.41 EIB_READ_SEND ........................................................................................................... 60 6.3.42 EIB_TIME_SEND............................................................................................................. 61 6.3.43 Error codes.......................................................................................................................
62 6.4 Functions......................................................................................................................................... 63 6.4.1 F_CONV_2GROUP_TO_3GROUP : EIB_GROUP_ADDR............................................. 63 6.4.2 F_CONV_3GROUP_TO_2GROUP : EIB_GROUP_ADDR_2GROUP............................ 64 6.5 Data types ....................................................................................................................................... 64 6.5.1 EIB_ERROR_CODE........................................................................................................
64 6.5.2 EIB_PRIORITY ................................................................................................................ 66 6.5.3 EIB_GROUP_ADDR........................................................................................................ 66 6.5.4 EIB_GROUP_ADDR_2GROUP....................................................................................... 66 6.5.5 EIB_GROUP_FILTER...................................................................................................... 66 6.5.6 EIB_PHYS_ADDR ...........................................................................................................
67 6.5.7 EIB_REC.......................................................................................................................... 67 7 Appendix.................................................................................................................................................. 68 7.1 Examples ........................................................................................................................................ 68 7.2 Support and Service........................................................................................................................ 68 TX1200 4 Version: 1.4
1.1 Notes on the documentation
Foreword | Notes on the documentation 1 Foreword | Foreword 1.1 Notes on the documentation | Notes on the documentation This description is intended exclusively for trained specialists in control and automation technology who are familiar with the applicable national standards. The documentation and the following notes and explanations must be complied with when installing and commissioning the components. The trained specialists must always use the current valid documentation. The trained specialists must ensure that the application and use of the products described is in line with all safety requirements, including all relevant laws, regulations, guidelines, and standards.
Disclaimer The documentation has been compiled with care. The products described are, however, constantly under development. We reserve the right to revise and change the documentation at any time and without notice. Claims to modify products that have already been supplied may not be made on the basis of the data, diagrams, and descriptions in this documentation. Trademarks Beckhoff ® , ATRO ® , EtherCAT ® , EtherCAT G ® , EtherCAT G10 ® , EtherCAT P ® , MX-System ® , Safety over EtherCAT ® , TC/BSD ® , TwinCAT ® , TwinCAT/BSD ® , TwinSAFE ® , XFC ® , XPlanar ® and XTS ® are registered and licensed trademarks of Beckhoff Automation GmbH.
If third parties make use of the designations or trademarks contained in this publication for their own purposes, this could infringe upon the rights of the owners of the said designations. EtherCAT ® is a registered trademark and patented technology, licensed by Beckhoff Automation GmbH, Germany. Copyright © Beckhoff Automation GmbH & Co. KG, Germany. The distribution and reproduction of this document, as well as the use and communication of its contents without express authorization, are prohibited. Offenders will be held liable for the payment of damages. All rights reserved in the event that a patent, utility model, or design are registered.
Third-party trademarks Trademarks of third parties may be used in this documentation. You can find the trademark notices here: https://www.beckhoff.com/trademarks . TX1200 5 Version: 1.4