background image

Foreword

TX1200

5

Version: 1.0

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.

Содержание TX1200

Страница 1: ...Manual EN TX1200 TwinCAT 2 PLC Library TcModbusTCPBC 2022 05 02 Version 1 0...

Страница 2: ......

Страница 3: ...1 Foreword 5 1 1 Notes on the documentation 5 1 2 Safety instructions 6 1 3 Notes on information security 7 2 Overview 8 3 Function blocks 9 3 1 FB_ModbusTcpOpen 9 3 2 FB_ModbusTcpClose 10 3 3 FB_Modb...

Страница 4: ...Table of contents TX1200 4 Version 1 0...

Страница 5: ...ve 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...

Страница 6: ...familiar with the applicable national standards Description of symbols In this documentation the following symbols are used with an accompanying safety instruction or note The safety instructions mus...

Страница 7: ...The latter should be connected to the corporate network or the Internet only if appropriate protective measures have been set up In addition the recommendations from Beckhoff regarding appropriate pr...

Страница 8: ...se of resources at a minimum If it is necessary to establish a further connection a connection that is not required must first be closed After about 10 seconds a connection that has not been used duri...

Страница 9: ...during that period is automatically closed and must be reopened if needed VAR_INPUT VAR_INPUT bStart BOOL sRemoteIPAddr STRING 15 tTimeOut TIME END_VAR bStart the function block is activated by a risi...

Страница 10: ...r in order to maintain the use of resources at a minimum If it is necessary to establish a further connection a connection that is not currently in use must first be closed A connection is automatical...

Страница 11: ...put has been reset iErrorId supplies the command specific error code table or the device specific error code 14 if the bError output is set Error Codes Description 0x8400 Connection is already closed...

Страница 12: ...passed here as a parameter The port number is generated afresh dynamically each time the connection is established with the FB_ModbusTcpOpen 9 function block pReqBuff contains the address of the buff...

Страница 13: ...x error Wrong protocol ID 0x8102 Rx error Wrong length 0x8103 Rx error Exceeding length 0x8104 Rx error Wrong unit ID Sample of calling the function block in FBD PROGRAM MAIN VAR fbModbusRequest FB_Mo...

Страница 14: ...Receive exceeding length 0x8104 Receive wrong unit ID Value hex Description Transmit Error 0x8300 Transmit timeout 0x8301 Transmit Shutdown 0x8302 Transmit internal error 0x8303 Transmit resource erro...

Страница 15: ......

Страница 16: ...Beckhoff Automation GmbH Co KG H lshorstweg 20 33415 Verl Germany Phone 49 5246 9630 info beckhoff com www beckhoff com More Information www beckhoff com tx1200...

Отзывы: