Output DescriptionΒΆ

../_images/9e3b0616e38ad9d10a33139000eba54e

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 (error number)

Data type: WORD

Output ERNO provides an error identifier, if an invalid value was applied to an input or if an error occurred during the request processing. ERNO always has to be considered together with the outputs DONE and ERR. The value output at ERNO is only valid, if DONE is TRUE and ERR is TRUE.

The error messages Error Messages of the Function Block Libraries encoding at output ERNO are explained at the beginning of the library description.

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.