Output Description¶
DONE (done)
Data type: BOOL
Output DONE indicates the state of the job processing.
After completing or aborting the processing (due to an error), DONE is set to TRUE for one cycle. For that reason, the output always has to be considered together with output ERR. If ERR is TRUE, an error occurred. In this case, the error number can be read at output ERNO.
ERR (error)
Data type: BOOL
Output ERR indicates whether an error occurred during the Function Block processing.
This output always has to be considered together with output DONE. If DONE is TRUE and ERR is TRUE, an error occurred. In this case, the error number can be read at output ERNO.
ERNO
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
WORD | - | 0 … 65535 | - |
At output ERNO the identifier of an occurred error is provided. It is only valid when DONE and ERR is TRUE (see, error messages): Error Messages of the Function Block Libraries
SLV (slave)
Data type: ARRAY[0..127] OF BOOL
SLV outputs the status survey as array of BOOL values. Every index within this array represents a DP slave. The index itself corresponds to the DP slave bus address. When a certain value is set to TRUE, corresponding slave signals information regarding selected survey type in input TYP.
If e.g. TYP = 1 is selected and SLV[2] = TRUE, the DP slave was successfully configured with bus address 2 by the DP master. If SLV[2] = FALSE, the configuration of the specific DP slave has not yet been completed or the DP slave is not part of the DP master configuration data.
If TYP = 2 was selected and SLV[2] = TRUE, the DP master exchanges I/O data with the DP slave having bus address 2. If SLV[2] = FALSE, the DP master currently does not exchange I/O data with the DP slave. The DP master is only able to exchange data with DP slaves which it has successfully set into operation before.
If TYP = 3, SLV[2] = TRUE means, that the DP slave with bus address 2 has signalized a diagnosis. The detailed diagnosis can then be requested using the Function Block DPM_SLV_DIAG.
Output SLV is only valid, if EN = TRUE and ERR = FALSE.