182
ifm
Programming Manual ecomatController/60-1 (CR711S) Operating System V2.5.0.n
2017-12-19
Appendix
ifm behaviour models for function blocks
>
12.2
ifm behaviour models for function blocks
General .............................................................................................................................................. 182
Behaviour model ENABLE ................................................................................................................ 182
Behaviour model EXECUTE ............................................................................................................. 183
23705
This chapter describes the ifm behaviour models for function blocks.
>
12.2.1
General
23801
ifm function blocks feature the following outputs to return status and error information:
Output
Description
xError
TRUE
An error has occurred.
FALSE
No error has occurred.
eDiagInfo
Diagnostic/error information
→
Messages / diagnostic codes of the function blocks
(
All inputs and outputs in the function block that belong to the ifm behaviour model are featured at the
top.
>
12.2.2
Behaviour model ENABLE
23705
Function blocks that use the behaviour model ENABLE are cyclically processed as long as the status
at the input is xEnable = TRUE.
If xEnable = FALSE, the function block will not be executed. All function block outputs are reset to their
preset default values and will not be updated. In this case the following applies: xError = FALSE and
eDiagInfo = STAT_INACTIVE.
Function blocks that have no xEnable input are processed cyclically when the application is started.
The processing is only terminated when the application is stopped. The behaviour corresponds with
the behaviour of a function block with a permanent TRUE at the xEnable input.
>
Response to errors
23815
In case of an error, xError is set to TRUE and eDiagInfo indicates the diagnostic code as long as
xEnable is = TRUE.
Irrespective of the data type, all other outputs of the function block will be reset to the following values:
Data type
Value
numerical
0 / 0.0
String
Empty string
BOOL/Bit
FALSE