Output Description

DONE   BOOL \   (done)

The output variable DONE shows the processing state of the Function Block. It shows TRUE when the processing ended or an error took place. This variable DONE should be checked together with the variable ERR. If DONE and ERR are set to TRUE then the output ERNO should be checked to see which error occurred.

ERR   BOOL \   (error)

ERR shows TRUE if the Function Block was terminated as a consequence of an error, or FALSE if it ended normally.

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

ACTIVE   BOOL \   (active)

If ACTIVE = TRUE, the communication is established and active.

NUM_TX   DWORD \   (number \ tx)

Counter of data transmitted.

NUM_RX   DWORD \   (number \ rx)

Counter of data received.

NUM_TOUT   DWORD \   (number \ timeout)

Counter of transmission/reception timeouts.

NUM_RETRYS   DWORD \   (number \ retries)

Counter of transmission/reception retries.

NUM_ADDR_ERR   DWORD \   (number \ address \ error)

Counter of address errors.

NUM_FRAME_ERR   DWORD \   (number \ frameerror)

Counter of frame errors.

NUM_DTYPE_ERR   DWORD \   (number \ data \ typeerror)

Counter of data type errors.

NUM_PROT_ERR   DWORD \   (number \ protocol \ error)

Counter of protocol errors.

NUM_SEQ_ERR   DWORD \   (number \ sequence \ error)

Counter of sequence errors.

NUM_CON   DWORD \   (number \ connection)

Amount of established connections.

LAST_ERR_GADU1   BYTE \   (lasterror \ global \ address \ unit \ 1)

Last Global Address 1 with error.

LAST_ERR_GADU2   BYTE \   (lasterror \ global \ address \ unit \ 2)

Last Global Address 2 with error.

LAST_ERR_ADDR1   BYTE \   (last \ local error \ address \ unit \ 1)

Last Global Address 1 with error.

LAST_ERR_ADDR2   BYTE \   (last \ local error \ address \ unit \ 2)

Last Global Address 2 with error.

LAST_ERR_ADDR3   BYTE \   (last \ local error \ address \ unit \ 3)

Last Global Address 3 with error.

REC_C_RP_NA_1   BOOL \   (receive \ command \ reset \ process)

If REC_C_RP_NA_1 = TRUE, a reset process command has been received.

REC_M_EI_NA_1   BOOL \   (receive \ monitored \ init \ end)

If REC_M_EI_NA_1 = TRUE, an init end has been received after a connection was established.