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.
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.
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...
: 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...
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 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...
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...
Need help?
Do you have a question about the TX1200 and is the answer not in the manual?
Questions and answers