beckhoff TF6281 — 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 Overview .................................................................................................................................................... 8 3 Requirements ............................................................................................................................................ 9 4 Licensing ................................................................................................................................................. 10 5 Configuration...........................................................................................................................................

13 5.1 EtherNet/IP™.................................................................................................................................. 13 5.2 Sync Task ....................................................................................................................................... 14 5.3 Settings dialog................................................................................................................................. 14 5.3.1 Firewall setting .................................................................................................................

16 5.3.2 IP Routing ........................................................................................................................ 17 5.4 Changing EtherNet/IP™ settings .................................................................................................... 17 5.4.1 Object description ............................................................................................................ 18 5.4.2 ADS-Write command ....................................................................................................... 18 5.4.3 ADS-Read command .......................................................................................................

19 5.4.4 Sample............................................................................................................................. 20 5.5 Creating the EtherNet/IP™ adapter in other EtherNet/IP™ scanners ............................................ 20 5.6 Diag History..................................................................................................................................... 23 5.5.1 Sample for Rockwell CPUs.............................................................................................. 22 5.7 Connecting EtherNet/IP™ slaves....................................................................................................

24 5.8 PLC to PLC communication ............................................................................................................ 28 5.8.1 Allen-Bradley-CompactLogix............................................................................................ 31 5.9 Data Table Read and Write............................................................................................................. 35 5.10 Diagnostics...................................................................................................................................... 41 5.11 Acyclic communication via Explicit Messaging ...............................................................................

43 5.11.1 Common Industrial Protocol (CIP) ................................................................................... 43 5.11.2 Forward Message to AMS Port via Explicit Messaging.................................................... 43 6 PLC API .................................................................................................................................................... 51 6.1 Function blocks ............................................................................................................................... 51 6.1.1 FB_GET_ATTRIBUTE_SINGLE......................................................................................

51 6.1.2 FB_SET_ATTRIBUTE_SINGLE ...................................................................................... 53 6.1.3 FB_CUSTOM_SERVICE ................................................................................................. 54 6.1.4 FB_CIP_DATA_TABLE_RDWR ...................................................................................... 56 6.1.5 Error Codes function blocks............................................................................................. 59 6.2 Functions.........................................................................................................................................

60 6.2.1 RSL5KSTRING_TO_STRING.......................................................................................... 60 6.2.2 STRING_TO_RSL5KSTRING.......................................................................................... 60 6.3 Data types ....................................................................................................................................... 61 6.2.3 F_GET_ETHERNETIP_ERROR_TEXT........................................................................... 60 6.3.1 RSL5K_STRING ..............................................................................................................

61 7 Appendix.................................................................................................................................................. 62 TF6281 3 Version: 1.9.0