Beruflich Dokumente
Kultur Dokumente
03
Doc. Revision D January 6, 2005
Page 1/16
TWCAT Communication Driver
Driver for TCP/IP Communication
with TWINCAT PLC Using TwinCAT ADS Library
Contents
INTRODUCTION....................................................................................................................................................... 2
GENERAL INFORMATION....................................................................................................................................... 3
DEVICE CHARACTERISTICS .................................................................................................................................... 3
LINK CHARACTERISTICS......................................................................................................................................... 3
DRIVER CHARACTERISTICS .................................................................................................................................... 3
CONFORMANCE TESTING....................................................................................................................................... 4
INSTALLING THE DRIVER...................................................................................................................................... 5
CONFIGURING THE DRIVER.................................................................................................................................. 6
SETTING THE COMMUNICATION PARAMETERS......................................................................................................... 6
CONFIGURING THE DRIVER WORKSHEETS .............................................................................................................. 7
EXECUTING THE DRIVER..................................................................................................................................... 12
TROUBLESHOOTING............................................................................................................................................ 13
SAMPLE APPLICATION........................................................................................................................................ 15
REVISION HISTORY............................................................................................................................................... 16
TWCAT Driver Version 1.03
Doc. Revision D January 6, 2005
Page 2/16
Introduction
The TWCAT driver enables communication between the Studio system and TwinCAT PLC using the TwinCAT
ADS Interface PLC over TCP/IP, according to the specifications discussed in this document.
This document was designed to help you install, configure and execute the TWCAT driver to enable
communication with these devices. The information in this document is organized as follows:
Introduction: Provides an overview of the TWCAT driver documentation.
General Information: Provides information needed to identify all the required components (hardware and
software) used to implement communication between Studio and the TWCAT driver.
Installing the Driver: Explains how to install the TWCAT driver.
Configuring the Driver: Explains how to configure the TWCAT driver.
Executing the Driver: Explains how to execute the driver to verify that you installed and configured the
driver correctly.
Troubleshooting: Lists the most common error codes for this protocol and explains how to fix these errors.
Sample Application: Explains how to use a sample application to test the TWCAT driver configuration.
Revision History: Provides a log of all modifications made to the driver and the documentation.
Notes:
This document assumes that you have read the Development Environment chapter in the Studio
Technical Reference Manual.
This document also assumes that you are familiar with the Windows NT/2000/XP environment.
If you are unfamiliar with Windows NT/2000/XP, we suggest using the Help feature (available from the
Windows desktop Start menu) as you work through this guide.
TWCAT Driver Version 1.03
Doc. Revision D January 6, 2005
Page 3/16
General Information
This chapter explains how to identify all the hardware and software components used to implement
communication between the Studio TWCAT driver and the TwinCAT PLC.
The information is organized into the following sections:
Device Characteristics
Link Characteristics
Driver Characteristics
Device Characteristics
To establish communication, you must use devices with the following specifications:
Manufacturer: Beckhoff
Compatible Equipment: Beckhoff TwinCAT Software
Programmer Software: Beckhoff TwinCAT (System Manager and PLC Control)
Link Characteristics
To establish communication, you must use links with the following specifications:
Device Communication Port: TwinCAT TCP/IP Port
Physical Protocol: Ethernet/TCP/IP
Logic Protocol: Proprietary
Device Runtime Software: TwinCAT Software
Third Party Library: TwinCAT ADS Interface PLC Software (tcAdsDll.dll or tcAdsDllCE.dll)
Specific PC Board: Any TCP/IP Adapter (Ethernet Board)
Driver Characteristics
The TWCAT driver is composed of the following files:
TWCAT.INI: Internal driver file. You must not modify this file.
TWCAT.MSG: Internal driver file containing error messages for each error code. You must not modify this file.
TWCAT.PDF: Document providing detailed information about the TWCAT driver.
TWCAT.DLL: Compiled driver.
Notes:
All of the preceding files are installed in the /DRV subdirectory of the Studio installation directory.
You must use Adobe Acrobat