Output Description

../_images/e4c46ee640db11da0a331390010aa420

DONE

Data_Type Default_Value Range Unit
BOOL - - -

Output indicates the processing state of the function block. After completion or abortion of 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 (error)

Data type: BOOL

Output ERR indicates whether an error occurred during data reception. If ERR is TRUE, an error occurred. In this case, the error number can be read at output ERNO.

ERNO (error number)

Data_Type Default_Value Range Unit
WORD 0 ³ 0 -

Output provides an error identifier if an invalid value was applied to an input. ERNO always has to be considered together with the output ERR. The value output at ERNO is only valid if ERR is TRUE.

STATE (state)

Data type: BYTE, default value: 0xFF, range: 1, 2, 4, 8, 0xFE, 0xFF

The output state represents the current slave states. The meanings of the states are:

0x01: INIT
0x02: PREOP
0x04: SAFEOP
0x08: OPERATIONAL
0xFE: unknown
0xFF: no response

SLV_NAME (slave \ name)

Data type: STRING, default value: empty string

In the output variable SLV_NAME the Function Block returns the slave name.

BUF_OFL (buffer \ overflow)

Data type: BOOL, default value: FALSE, range: FALSE, TRUE

The output variable BUF_OFL shows if the error buffer inside the slave was not sufficient and emergencies were lost.

NUM_ERR (number \ of errors)

Data type: BYTE, default value: 0, range: 0…5

NUM_ERR shows how many errors were written in 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).