Output Description¶
DONE BOOL \ (done)
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 for one cycle. For that reason, the 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 BOOL \ (error)
Output ERR indicates whether an error occurred during the processing of the Function Block. 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 | - | 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 BYTE \ (state)
STATE outputs the current status of the read error. The error status is a combination of the states “Error has come”, “Error has gone” and “Error has been acknowledged”. The following status numbers are possible:
State | Error | come | gone | acknowledged |
16#02 | x | |||
16#04 | x | |||
16#06 | x | x | ||
16#08 | x | |||
16#0A | x | x | ||
16#0C | x | x | ||
16#0E | x | x | x | |
16#F0 | Alle errors read or no error available |
COMP BYTE \ (component)
“COMP” outputs the component number the read error is assigned to.
DEVICE BYTE \ (device)
“DEVICE” outputs the device number the read error is assigned to.
MODULE BYTE \ (module)
“MODULE” outputs the module the read error is assigned to.
CHANNEL BYTE \ (channel)
“CHANNEL” outputs the channel the read error is assigned to.
ERROR BYTE \ (error)
“ERROR” outputs the error number of the read error.
T_COME DT \ (time \ come)
T_COME outputs the time stamp, when the read error occurred (“has come”). If no time stamp is available for the error status “come” (see also the description of output STATE), no value is written to this output. In this case, the output value remains at the default value DT#1970-01-01-00:00.
T_GO DT \ (time \ go)
T_GO outputs the time stamp, when the read error “has gone”. If no time stamp is available for the error status “gone” (see also the description of output STATE), no value is written to this output. In this case, the output value remains at the default value DT#1970-01-01-00:00.
T_ACK DT \ (time \ acknowledge)
T_ACK outputs the time stamp, when the read error was “acknowledged”. If no time stamp is available for the error status “acknowledged” (see also the description of output STATE), no value is written to this output. In this case, the output value remains at the default value DT#1970-01-01-00:00.
CODE DWORD \ (code)
CODE outputs the code number of the read error. The structure of the error encoding is as follows: