ADS Interface 4 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. 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. 4.1 Process Data If the scanner is not yet in its RUN state when process data is accessed ( CCO Directory [ } 30] , offset 0x14), error code 0x0708 (Device not ready) is returned. I/O Connection An I/O connection is established to ControlNet adapters (e.g. BK7000, AB-Flex-I/O). Receive Data (ADS Read Response) Send Data (ADS Write Request) Receive Connection A receive connection is established to other ControlNet scanners (e.g. ControlLogix, PLC5). Receive Data (ADS Read Response) TX1000 27 Version: 1.0 IndexGroup Data 0x000000yy Process data [} 27] I/O or receive connection (yy:
Mac-ID) 0x000100yy Process data [} 27] send connection (yy: Produce Buffer ID) 0x000001yy ID Object [} 28] (Read only, yy: Mac-ID) _ 0x000002yy Diagnostic Counter [} 28] (Read only, yy: Mac-ID) _ 0x000003yy Keeper Info [} 29] (Read only, yy: Mac-ID) _ 0x00000400 CCO Directory [} 30] (Read only) _ 0x00000500 Card State [} 30] (Read only) Offset Attributes 0x00 General status (0: ok, 1: error (Status of the connection [} 31]) 0x01 reserved 0x02 Extended Status (0: ok, > 0:
error (Status of the connection [} 31]) 0x04 Update counter (is incremented by the sender whenever new data is transmitted) 0x06 Adapter status (is transmitted) 0x0A Input data (see device description) Offset Attributes 0x00 Scanner status (is transmitted) 0x04 Output data (see device description) Offset Attributes 0x00 General status (0: ok, 1: error (Status of the connection [} 31])