Stationstatus_1; STATIONSTATUS_1_TYPE¶
The diagnostic byte Stationstatus_1 (defined within the standard) is output at STAT_1 of the Function Block DPM_SLV_DIAG. It is represented as a structure of the data type STATIONSTATUS_1_TYPE.
Within the PROFIBUS DP library the structure STATIONSTATUS_1_TYPE is declared as follows:
TYPE STATIONSTATUS_1_TYPE:
STRUCT
NON_EXISTENT: BOOL;
NOT_READY: BOOL;
CFG_FAULT: BOOL;
EXT_DIAG: BOOL;
NOT_SUPPORTED: BOOL;
INVALID_RESPONSE: BOOL;
PRM_FAULT: BOOL;
MASTER_LOCK: BOOL;
END_STRUCT
END_TYPE
NON_EXISTENT
Data type: BOOL
If this bit is set, the PROFIBUS DP Communication Module has not found a DP slave at the bus address applied at Function Block input SLV.
NOT_READY
Data type: BOOL
This bit is set to TRUE by the DP slave if the DP slave is not ready for I/O data exchange.
CFG_FAULT
Data type: BOOL
This bit is set to TRUE by the DP slave, if the configuration data (nominal configuration) received from the DP master do not match the data stored in the DP slave (actual configuration).
EXT_DIAG
Data type: BOOL
If this bit is TRUE, extended diagnostic data are available in EXT_DIAG_DAT. If this bit is not set (FALSE) and EXT_DIAG_LEN > 0, possibly a status message is available in EXT_DIAG_DAT.
The meaning of such a status message is device-dependent.
NOT_SUPPORTED
Data type: BOOL
This bit is set to TRUE by the DP slave, if an unsupported function was requested before.
INVALID_RESPONSE
Data type: BOOL
If this bit is TRUE, the PROFIBUS Communication Module has not received a plausible response from the requested DP slave.
PRM_FAULT
Data type: BOOL
The DP slave sets this bit to TRUE, if the parameter data received last were faulty.
MASTER_LOCK
Data type: BOOL
This bit is set to TRUE, if the DP slave is assigned to another DP master. In this case, MSTR contains the bus address of this DP master.