ADS Interface

The various ControlNet services are represented through ADS-Read and ADS-Write. The Net-ID of the PC is to be given as the Net-ID, with 16000 as the port number. In the IndexGroup, the Mac-ID that is to be addressed (or the Produce Buffer-ID in the case of send connections (e.g. to a PLC5 or ControlLogix)) is to be given, along with the desired data. The IndexOffset specifies the offset within the data.

IndexGroup

Data

0x000000yy

Process data I/O or receive connection (yy: Mac-ID)

0x000100yy

Process data send connection (yy: Produce Buffer ID)

0x000001yy

ID_Object (Read only, yy: Mac-ID)

0x000002yy

Diagnostic_Counter (Read only, yy: Mac-ID)

0x000003yy

Keeper_Info (Read only, yy: Mac-ID)

0x00000400

CCO_Directory (Read only)

0x00000500

Card_State (Read only)

If a 5136CN card is not found, the ADS-Error-Code 0x70C (Files, etc. not found) is returned. In the NT System32 directory there are also debug files named "sststartup.txt", "sstcyclic.txt" and "sstshutdown.txt". The last two only contain data after the TwinCAT system has been halted.