Output DescriptionΒΆ

../_images/7a96a186e3899ef30a33139000eba54e

DONE

Data_Type Default_Value Range Unit
BOOL - - -

Output DONE indicates  the processing state of the Function Block. After completion or abortion of processing (due to an error), DONE is set to TRUE. 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 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 - - -

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 Error Messages of the Function Block Libraries of the Function Block libraries.

SDO_ERR

Data_Type Default_Value Range Unit
DWORD - - -

If the slave answered the SDO message with an abort message, the transmitted error code is output at SDO_ERR. The value output at SDO_ERR is only valid if DONE = TRUE, ERR = TRUE and ERNO = 6003hex (24579dec).

DATA_LEN

Data_Type Default_Value Range Unit
BYTE - - -

DATA_LEN outputs the length of the received object data (in bytes), after the procedure has been completed successfully. Since Function Block execution requires bus access, the data are available in the next cycle after activating the Function Block at the earliest. The output value is only valid, if DONE = TRUE and ERR = FALSE.