Output Description

../_images/c5aa8f97020d06e30a317f345e81000a

DONE

Data_Type Default_Value Range Unit
BOOL - TRUE / FALSE -

Output DONE indicates the state of execution.

It has the value TRUE when the execution is finished and the outputs are valid. When DONE becomes FALSE other outputs are not valid any more.

ERR

Data_Type Default_Value Range Unit
BOOL - TRUE / FALSE -

Output ERR indicates whether an error occurred during Function Block execution.

It is only valid when DONE is TRUE. The kind of occurred error is specified by the error identifier 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

STATE (state)

Data_Type Default_Value Range Unit
BYTE 0xFF 1, 2, 4, 8, 254, 255 -

Output State provides the current slave state. Following states are possible:

0x01 : INIT
0x02 : PREOP
0x04 : SAFEOP
0x08 : OPERATIONAL
0x254: unknown
0x255: no response

SLV_NAME (slave \ name)

Data_Type Default_Value Range Unit
STRING empty string - -

Output SLV_NAME provides the current slave name.

BUF_OFL (buffer \ overflow)

Data_Type Default_Value Range Unit
BOOL FALSE FALSE, TRUE -

Output BUF_OFL indicated whether there was overflow of the internal diagnosis buffer. In this case emergency messages were lost.

NUM_ERR (number \ of errors)

Data_Type Default_Value Range Unit
BYTE 0 0 … 5 -

Output NUM_ERR provides the number of elements (Diagnosis messages) contained within the buffer DIAG_DATA.

Example 1

NUM_ERR returns the value of 3 and DIAG_S500_FORMAT was TRUE. This means that the first 3 elements of DIAG_DATA contain relevant information.

Example 2

A NUM_ERR of 4 and DIAG_S500_FORMAT was FALSE means that DIAG_DATA has 32 relevant bytes (8 per error).