CX8030 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.

CX8030 ADS Interface 1:

ADS Interface

All acyclic data are transmitted to or from the CX8030 via ADS-Read, ADS-Write or ADS-Write-Control. The CX8030 has its own 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 IndexGroups/IndexOffsets supported by the CX8030 during ADS-Read is provided below.

IndexGroup for local CX8030 addressing (port 200)

IndexGroup
(Lo-Word)

IndexGroup
(Hi-Word)

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 Diagnosis.

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).

IndexGroup for addressing of a configured PROFIBUS device (port 0x1000-0x107E)

IndexGroup
(Lo-Word)

IndexGroup
(Hi-Word)

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 is answered without error (error code = 0), the data will contain the read DPV1 data (see section DPV1)

ADS Write

An overview of the IndexGroups/IndexOffsets supported by the CX8030 during ADS-Write is provided below.

IndexGroup for addressing of a configured PROFIBUS device (port 0x1000-0x107E)

IndexGroup
(Lo-Word)

IndexGroup
(Hi-Word)

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 section DPV1).

ADS-WriteControl

An overview of services supported by the CX8030 for ADS WriteControl is provided below.

ADS-WriteControl for addressing a configured PROFIBUS device (port 0x1000-0x107E)

AdsState

DeviceState

State of the FC310x/EL6731

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).