Stationstatus_2; STATIONSTATUS_2_TYPE¶
The diagnostic byte Stationstatus_2 (defined within the standard) is output at STAT_2 of the Function Block DPM_SLV_DIAG. It is represented as a structure of the data type STATIONSTATUS_2_TYPE.
The structure STATIONSTATUS_2_TYPE is declared as follows in the PROFIBUS library:
TYPE STATIONSTATUS_2_TYPE:
STRUCT
PRM_REQ: BOOL;
STAT_DIAG: BOOL;
DP_Slave: BOOL;
WD_ON: BOOL;
FREEZE_MODE: BOOL;
SYNC_MODE: BOOL;
reserved: BOOL;
DEACTIVATED: BOOL;
END_STRUCT
END_TYPE
PRM_REQ
Data type: BOOL
This bit is set to TRUE by the DP slave, if reparameterization and reconfiguration of the slave is required (e.g. when adding an additional I/O module). The bit remains set until reparameterization is done.
STAT_DIAG
Data type: BOOL
This bit is set to TRUE by the DP slave, if the slave has a static diagnosis. A DP slave with static diagnosis is not ready for I/O data exchange.
DP_SLAVE
Data type: BOOL
This bit is permanently set to TRUE.
WD_ON
Data type: BOOL
This bit is set to TRUE by the DP slave, if the slave response monitoring is active.
FREEZE_MODE
Data type: BOOL
This bit is set to TRUE by the DP slave, if the slave is currently running in Freeze mode. SYNC_MODE BOOL
SYNC_MODE
Data type: BOOL
This bit is set to TRUE by the DP slave, if the slave is currently running in Sync mode.
reserved
Data type: BOOL
This bit is reserved and currently not used.
DEACTIVATED
Data type: BOOL
This bit is set to TRUE, if the DP slave is marked as non-active in the DP master’s configuration data and has been taken out of the cyclic I/O data exchange.