Beckhoff TX1200 Manual
Beckhoff TX1200 Manual

Beckhoff TX1200 Manual

Twincat 2 | plc library: tcmodbustcpbc

Advertisement

Quick Links

Manual | EN
TX1200
TwinCAT 2 | PLC Library: TcModbusTCPBC
2022-05-02 | Version: 1.0

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TX1200 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Beckhoff TX1200

  • Page 1 Manual | EN TX1200 TwinCAT 2 | PLC Library: TcModbusTCPBC 2022-05-02 | Version: 1.0...
  • Page 3: Table Of Contents

    Notes on the documentation ...................... 5 Safety instructions .......................... 6 Notes on information security...................... 7 2 Overview .............................. 8 3 Function blocks............................ 9 FB_ModbusTcpOpen ........................ 9 FB_ModbusTcpClose........................ 10 FB_ModbusTcpRequest .........................  12 4 Appendix .............................. 14 BC9xxx return codes ........................ 14 TX1200 Version: 1.0...
  • Page 4 Table of contents Version: 1.0 TX1200...
  • Page 5: Foreword

    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.
  • Page 6: Safety Instructions

    All the components are supplied in particular hardware and software configurations appropriate for the application. Modifications to hardware or software configurations other than those described in the documentation are not permitted, and nullify the liability of Beckhoff Automation GmbH & Co. KG. Personnel qualification This description is only intended for trained specialists in control, automation and drive engineering who are familiar with the applicable national standards.
  • Page 7: Notes On Information Security

    Foreword Notes on information security The products of Beckhoff Automation GmbH & Co. KG (Beckhoff), insofar as they can be accessed online, are equipped with security functions that support the secure operation of plants, systems, machines and networks. Despite the security functions, the creation, implementation and constant updating of a holistic security concept for the operation are necessary to protect the respective plant, system, machine and networks against cyber threats.
  • Page 8: Overview

    Function blocks Name Description Open a MODBUS/TCP connection to a remote FB_ModbusTcpOpen [} 9] partner. Close a MODBUS/TCP connection to a remote FB_ModbusTcpClose [} 10] partner. Send a MODBUS request to a remote partner. FB_ModbusTcpRequest [} 12] Version: 1.0 TX1200...
  • Page 9: Function Blocks

    : when successful, the port number associated with the connection is returned at this output. The port number is a dynamic number, generated afresh each time the connection is established. Error Codes Description 0x8500 Resource error 0x8501 No socket available 0x8502 Open connection error TX1200 Version: 1.0...
  • Page 10: Fb_Modbustcpclose

        iMyPortNo    : WORD; END_VAR bStart: the function block is activated by a rising edge at this input. sRemoteIPAddr: this variable is a string containing the network address (IP address) of the remote partner whose connection is to be closed. Version: 1.0 TX1200...
  • Page 11 In this sample, a rising edge at the bClose input causes a TCP/IP connection to the remote partner with network address '172.16.2.209' to be closed. Requirements Development environment Target platform PLC libraries to include TwinCAT v2.7.0 and below BC9xxx (165) firmware version >= TcModbusTCPBC.Lb6 0xB6 TX1200 Version: 1.0...
  • Page 12: Fb_Modbustcprequest

    Version: 1.0 TX1200...
  • Page 13 In this sample, a rising edge at the bExecute input causes a request to be sent to the remote partner with network address '172.16.2.209'. Requirements Development environment Target platform PLC libraries to include TwinCAT v2.7.0 and below BC9xxx (165) firmware version >= TcModbusTCPBC.Lb6 0xB6 TX1200 Version: 1.0...
  • Page 14: Appendix

    Description Close Error 0x8400 Receive wrong transaction ID 0x8401 Receive wrong protocol ID 0x8402 Receive wrong length Value (hex) Description Open Error 0x8500 Open resource error 0x8501 Open resource error_1 0x8502 Open connection error 0x8503 Open connection already open Version: 1.0 TX1200...
  • Page 16 More Information: www.beckhoff.com/tx1200 Beckhoff Automation GmbH & Co. KG Hülshorstweg 20 33415 Verl Germany Phone: +49 5246 9630 info@beckhoff.com www.beckhoff.com...

Table of Contents