164
ifm
Programming Manual ecomatController/60-1 (CR711S) Operating System V2.5.0.n
2017-12-19
ifm function libraries
Library ifmRawCAN.library
>
10.9.2
CAN_Recover
11765
Function block type:
Function block (FB)
Behaviour model:
EXECUTE
Library:
ifmRawCAN.library
Symbol in CODESYS:
>
Description
11771
The FB controls the processing of a failure of the CAN channel.
The call of the FB triggers the following actions:
If the CAN channel fails the CAN interface is reset and rebooted.
All buffer storages are emptied.
If the CAN channel keeps failing after the maximum number of recovery attempts has been
exceeded, the CAN bus remains in the error state.
► Call FB again to repeat the execution of the recovery function.
>
Input parameter
11768
Parameter
Data type
Description
Possible values
xExecute
BOOL
Control execution of the FB
FALSE
TRUE
FB is executed once
Other
No impact on FB processing
eChannel
CAN_
CHANNEL
Identifier of the CAN Interface
→
CAN_CHANNEL (ENUM)
(
→ p.
usiNumberRetry
USINT
Max. number of retries
E.g. 4
tInhibitTime
TIME
Time until the CAN interface is started again
after the detection of a CAN bus failure
E.g.
#2ms