Programming
CX8030 / CX803158 Version: 1.6
MSAC-C1 Read
ADS-Read parameters Meaning
Net-ID
Net-ID of the master (see the device's ADS [}54] tab)
Port 0x1000 + station address of the slave
IndexGroup Slot number (DPV1 parameter)
IndexOffset Index (DPV1 parameter)
Length Length of the data that is to be read
Data In response: data that has been read
MSAC-C1 Write
ADS-Write parameters Meaning
Net-ID
Net-ID of the master (see the device's ADS [}54] tab)
Port 0x1000 + station address of the slave
IndexGroup Slot number (DPV1 parameter)
IndexOffset Index (DPV1 parameter)
Length Length of the data that is to be written
Data In request: data that is to be written
7.4.1.3 Slave Diagnosis
DP-State
Each DP slave has a status variable that indicates the current state of that DP slave. This status is
maintained in real time, so that it is always adapted to the current DP slave data, and can be linked to a PLC
variable (-> DpState of the slave):
Diagnostic data
Any DP slave can acyclically report DP diagnostic data during data exchange operation. The slave here sets
the Diag_Flag in the response to the cyclic Data_Exchange telegram, as a result of which the DP master
automatically reads the DP diagnostic data from the slave. This does not affect the Data-Exchange cycle in
the Beckhoff DP master, because the DP diagnostic telegram is sent at the end of the cyclic Data-Exchange
cycle, and before the beginning of the next cycle. If the DP diagnostic data read from the slave has changed
from its previous state, the DP master sets the ExtDiagFlag variable, which can be linked to a variable in the
controller program.
The DP slave's current diagnostic data is displayed in the system manager on the slave's Diag tab. It can
also be read by the controller program via ADS [}54], which will cause the "ExtDiagFlag" flag to be reset
once more:
ADS-Read parameters Meaning
Net-ID
Net-ID of the master (see the device's ADS [}54] tab)
Port 200
IndexGroup 0x00yyF181 (yy = station address of the slave)
IndexOffset offset within the diagnosis data
Length Length of the diagnostic data that is to be read
Data Diagnostic data