Output Description¶
DONE BOOL \ (done)
Output DONE indicates the reception of data. The output must always be considered together with the output ERR.
The following is valid:
DONE = TRUE and ERR = FALSE:
The data reception has been completed. A data set has been received correctly.
DONE = TRUE and ERR = TRUE:
An error occurred during reception of data. The error number is indicated at output ERNO.
ERR BOOL \ (error)
Output ERR indicates whether an error occurred during data reception. This output always has to be considered together with output DONE. If an error has occurred during processing of the Function Block, the following applies: DONE = TRUE and ERR = TRUE. Output ERNO indicates the error number.
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
DATA_LEN DWORD \ (datalength)
DATA_LEN outputs the length of the received data in bytes. DATA_LEN is only valid if DONE = TRUE.