ADS-Interface
ADS NetId of the PROFIBUS interface
A NetId is required for the ADS communication. This can be found in the ADS tab of the PROFIBUS interface in the TwinCAT System Manager.
ADS-Interface
All acyclic data are transferred to or from the Embedded PCs with ADS Read, ADS Write or ADS Write Control. The Profibus interface of the Embedded PCs has a dedicated Net ID and supports the following ports:
Port | Description |
---|---|
200 | Addresses the PROFIBUS interface itself, i.e. data stored locally on the PROFIBUS interface, for which usually no additional bus access is required. |
0x1000 - 0x107E | Addresses a connected PROFIBUS device, whereby the address is calculated from port 0x1000 (or 0x1000 + slave address); always includes bus access. |
ADS-Read
An overview of the IndexGroup/IndexOffset supported by the Embedded PCs for ADS Read is provided below.
IndexGroup |
IndexGroup |
IndexOffset |
Description |
---|---|---|---|
0xF181 |
0x0000-0x007E |
BYTE offset within the data |
This will read the diagnostic data of a configured DP slave. The station address is calculated from the IndexGroup(Hi-Word). If the ADS Read is answered without error (error code = 0), the data will contain the diagnostic data of a configured DP slave described in section Slave-Diagnose. |
0xF830 |
0x0000-0x007E |
always 0 |
Can be used to determine which DP slaves are present on the PROFIBUS, regardless of whether they were configured or not; the station address is entered in the IndexGroup (high word). If the ADS-Read is answered without error (error code = 0), the corresponding DP slave has answered correctly. The data contain the Ident no. of the slave (BYTE offset 0-1) and the read CfgData (from BYTE offset 2) (see: Uploading the Configuration). |
IndexGroup |
IndexGroup |
IndexOffset |
Description |
---|---|---|---|
0x00-0xFF |
0x00 |
0x00-0xFF |
This will send a DPV1-Read to the appropriate, configured DPV1 slave via a Class -1 connection; the DPV1 slot number corresponds to the IndexGroup, the DPV1 index corresponds to the IndexOffset. If the ADS Read response is error-free (error code = 0), the data contain the read DPV1 data (see: DPV1 communication) |
ADS-Write
An overview of the IndexGroup/IndexOffset supported by the Embedded PCs for ADS Write is provided below.
IndexGroup |
IndexGroup |
IndexOffset |
Description |
---|---|---|---|
0x00-0xFF |
0x00 |
0x00-0xFF |
This will send a DPV1-Write to the appropriate, configured DPV1 slave via a Class -1 connection; the DPV1 slot number corresponds to the IndexGroup, the DPV1 index corresponds to the IndexOffset (see: DPV1 communication). |
ADS-WriteControl
An overview of services supported by the Embedded PCs for ADS WriteControl is provided below.
AdsState |
DeviceState |
State of the slave |
Description |
---|---|---|---|
STOP (6) |
0x00 |
RUN (5) |
This will stop the slave, i.e. the process data connection to the relevant DP slave (Data_Exchange) is removed (with SetPrm,Unlock). |
RUN (5) |
0x00 |
STOP (6) |
This will restart the slave after a stop, i.e. the process data connection to the relevant DP slave (Data_Exchange) is re-established (normal DP start-up). |