ADS services
Interface for ADS services
The CNC instances offer an interface for access to the internal elements by the following ADS services:
Data is addressed by the Index Group and the Index Offset.
ADS Read
The ADS Read function read data from an ADS unit.
In | IndexGroup, 4 bytes, index group of the data to be read. IndexOffset, 4 bytes, index offset of the data to be read. Length, 4 bytes, length in bytes of the data to be read. |
Out | Result, 4 bytes, ADS error number Length, 4 bytes, length in bytes of the data returned. Data, n bytes, data returned |
ADS Write
Data is written to an ADS unit with ADS Write.
In | IndexGroup, 4 bytes, index group of the data to be read. IndexOffset, 4 bytes, index offset of the data to be read. ReadLength, 4 bytes, length in bytes of the data to be read. WriteLength, 4 bytes, length in bytes of the data to be written. Data, n bytes, data to be written |
Out | Result, 4 bytes, ADS error number |
ADS Read & Write
The ADS ReadWrite function writes data to an ADS unit. Data can also be read out of the ADS unit.
In | IndexGroup, 4 bytes, index group of the data to be read. IndexOffset, 4 bytes, index offset of the data to be read. ReadLength, 4 bytes, length in bytes of the data to be read. WriteLength, 4 bytes, length in bytes of the data to be written. Data, n bytes, data to be written |
Out | Result, 4 bytes, ADS error number Length, 4 bytes, length in bytes of the data returned. Data, n bytes, data returned |
ADS – Automation Device Specification (source: Beckhoff Help)