Output Description

../_images/a3ac98dae389ebea0a33139000eba54e

DONE

Data_Type Default_Value Range Unit
BOOL - - -

Output DONE indicates the processing state of the Function Block. After completion of the request or after abortion of the Function Block processing due to an error, DONE is set to TRUE for one cycle. This 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

Data_Type Default_Value Range Unit
BOOL - - -

Output ERR indicates whether an error occurred during Function Block processing. This output always has to be considered together with output DONE. If DONE = TRUE and ERR = TRUE, an error occurred. In this case, the error number can be read at output ERNO.

ERNO

Data_Type Default_Value Range Unit
WORD - - -

Output ERNO provides an error identifier if an invalid value has been applied to an input or if an error occurred during Function Block 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. Encoding of the error messages output at ERNO is explained in a separate table “Error messages of the Function Block libraries” Error Messages of the Function Block Libraries.

DEV

Data_Type Default_Value Range Unit
ARRAY - - -

Output DEV outputs the status survey as a bit field. Each individual bit within this field represents one slave. The index number corresponds to the slave’s bus address (MAC ID). If a bit is set to TRUE, the state selected at input TYP applies to the corresponding slave.

If e.g. TYP = 1 is selected and DEV[2] = TRUE, the slave with the MAC ID 2 was successfully configured by the master.

If DEV[2] = FALSE, the configuration of this specific slave has not yet been completed or the slave is not part of the master’s configuration data.

If TYP = 2 and DEV[2] = TRUE, the master is exchanging I/O data with the slave having the MAC ID 2. However, if DEV[2] = FALSE, the master is currently not exchanging I/O data with the slave. The master can only exchange data with slaves the master itself previously brought into operation.

When TYP = 3, for example DEV[2] = TRUE means that the slave with the MAC ID 2 reports a diagnosis. Then, a detailed diagnosis can be requested using the Function Block DNM_DEV_DIAG.

The at “DEV” output bit field is only valid, if DONE = TRUE and ERR = FALSE.