beckhoff · TS6250 · 55 pp.
Beckhoff TS6250 TwinCAT 2 Modbus TCP Server Manual & Guide PDF
Related manuals
Contents
Document text
Manual | EN TS6250 TwinCAT 2 Modbus TCP Server 2023-08-10 | Version: 1.2
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 Installation ............................................................................................................................................... 10 5 Configuration...........................................................................................................................................
12 5.1 TwinCAT Modbus TCP Configurator............................................................................................... 12 5.2 Mapping between Modbus and ADS............................................................................................... 14 6 Modbus ADS Diagnose Interface........................................................................................................... 17 7 PLC libraries ............................................................................................................................................
18 7.1 TcModbusSrv .................................................................................................................................. 18 7.1.1 FB_MBReadCoils (Modbus function 1)............................................................................ 18 7.1.2 FB_MBReadInputs (Modbus function 2).......................................................................... 20 7.1.3 FB_MBReadRegs (Modbus function 3) ........................................................................... 22 7.1.4 FB_MBReadInputRegs (Modbus function 4) ...................................................................
24 7.1.5 FB_MBWriteSingleCoil (Modbus function 5).................................................................... 26 7.1.6 FB_MBWriteSingleReg (Modbus function 6) ................................................................... 28 7.1.7 FB_MBWriteCoils (Modbus function 15).......................................................................... 29 7.1.8 FB_MBWriteRegs(Modbus function 16)........................................................................... 31 7.1.9 FB_MBReadWriteRegs (Modbus function 23).................................................................
33 7.1.10 FB_MBDiagnose (Modbus function 8) ............................................................................. 35 7.1.11 UDP.................................................................................................................................. 37 8 Samples ................................................................................................................................................... 51 8.1 Sample: Digital IO Access............................................................................................................... 51 8.2 Sample:
Multiple register access .................................................................................................... 51 9 Return codes ........................................................................................................................................... 53 TS6250 3 Version: 1.2
Table of contents
Table of contents TS6250 4 Version: 1.2
1.1 Notes on the documentation
Foreword 1 Foreword 1.1 Notes on the documentation This description is only intended for the use of trained specialists in control and automation engineering who are familiar with applicable national standards. It is essential that the documentation and the following notes and explanations are followed when installing and commissioning the components. It is the duty of the technical personnel to use the documentation published at the respective time of each installation and commissioning. The responsible staff must ensure that the application or use of the products described satisfy all the requirements for safety, including all the relevant laws, regulations, guidelines and standards.
Disclaimer The documentation has been prepared 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 prior announcement. No claims for the modification of products that have already been supplied may be made on the basis of the data, diagrams and descriptions in this documentation. Trademarks Beckhoff ® , TwinCAT ® , TwinCAT/BSD ® , TC/BSD ® , EtherCAT ® , EtherCAT G ® , EtherCAT G10 ® , EtherCAT P ® , Safety over EtherCAT ® , TwinSAFE ® , XFC ® , XTS ® and XPlanar ® are registered trademarks of and licensed by Beckhoff Automation GmbH.
Other designations used in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owners. Patent Pending The EtherCAT Technology is covered, including but not limited to the following patent applications and patents: EP1590927, EP1789857, EP1456722, EP2137893, DE102015105702 with corresponding applications or registrations in various other countries. EtherCAT ® is a registered trademark and patented technology, licensed by Beckhoff Automation GmbH, Germany Copyright © Beckhoff Automation GmbH & Co. KG, Germany.
The reproduction, distribution and utilization of this document as well as the communication of its contents to others without express authorization are prohibited. Offenders will be held liable for the payment of damages. All rights reserved in the event of the grant of a patent, utility model or design. TS6250 5 Version: 1.2