ADS stands for automation device specification. It was developed for data communication between different modules. Without this, we could have nightmares, if we write our own communication modules using TCP/IP that is lots of work. We just use the work done by somebody and focus on our task on hand. The ADS protocol runs on top of the TCP/IP or UDP/IP protocols. It allows the user within the Beckhoff system to use almost any connecting route to communicate with all the connected devices and to parameterize them. if you want to know more please follow the following pages.
The ADS-OCX is an Active-X component. It offers a standard interface to, for instance, Visual Basic, Delphi, etc.
You can link the ADS-DLL (DLL: Dynamic Link Library) into your C program.
The OPC interface is a standardized interface for communication used in automation technology. Beckhoff offer an OPC server for this purpose.
The ADS functions provide a method for accessing the Bus Coupler information directly from the PC. ADS function blocks can be used in TwinCAT for this. The function blocks are contained in the Tc2_System.lib library. It is also equally possible to call the ADS functions from AdsOCX, ADSDLL or OPC.
The AMSNetID provides a reference to the device that is to be addressed. This is taken from the MAC address of the first Ethernet port (X001) and is printed on the side of the CX80xx. For the AMSNetID the bytes 3..6 plus “.1.1” are typically used.
MAC address 00-01-05-01-02-03
The port number distinguishes sub-elements in the connected device.
Port 851: local process data PLC runtime 1
The index group distinguishes different data within a port.
Indicates the offset, from which reading or writing the byte is to start.
Gives the length of the data, in bytes, that is to be read or written.
TCP port number
The TCP port number for the ADS protocol is 48898 or 0xBF02.