Output Description¶
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
ADD_ERNO
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
DWORD | - | 0…2:sup:32-1 | - |
At output ADD_ERNO an additional error code is provided when output ERNO is 0 x 0031.
STATE (state)
Data type: BYTE, default value: 0, range: 1, 2, 4, 8
Output STATE provides the current state of the selected slave. The following values are possible:
- 1: INIT
- 2: PREOPERATIONAL
- 4: SAFEOPERATIONAL
- 8: OPERATIONAL
TARGET_STATE (target state)
Data type: BYTE, default value: 0, range: 1, 2, 4, 8
Output TARGET_STATE provides the target_value of the last target in ECAT_SLV_SET_STATE. The following target values are possible:
- 1: INIT
- 2: PREOPERATIONAL
- 4: SAFEOPERATIONAL
- 8: OPERATIONAL
ACTIVATE_ERR (activation error)
Data type: DWORD, default value: 0, range:-.
ACTIVATE_ERR shows the activation error reported by the slave.