ifm
System Manual
ecomat
mobile
PDM360NG (CR1080, CR1081, CR9042) Target V01
2011-07-28
CAN in the PDM360
CAN-FBs on layer 2 (RAW-CAN)
179
CAN_RECOVER
7512
Unit type = function block (FB)
Contained in the library:
ifm_RawCAN_NT_Vxxyyzz.LIB
Available for the following devices:
- BasicController: CR040n
- BasicDisplay: CR0451
- PDM360NG: CR108n, CR9042
Symbol in CoDeSys:
Description
7513
CAN_RECOVER has the following tasks:
to activate / deactivate the automatic bus off handling
to restart the CAN interface in case of bus off
> In case of bus off: CAN Controller deletes all buffers (including the buffers of the other protocols).
If CAN_RECOVER is not used (ENABLE=FALSE):
> In case of a bus off a recovery attempt is automatically made after 1 s.
> After 4 failed recovery attempts in a row the affected CAN interface is deactivated.
Parameters of the inputs
7514
Parameter
Data type
Description
ENABLE
BOOL
TRUE:
No automatic recovery after CAN bus off
FALSE:
Automatic recovery after CAN bus off
CHANNEL
BYTE
CAN interface (1...n) depending on the device
RECOVER_EXECUTE
BOOL
TRUE (only for 1 cycle):
Restart of CAN interface
Remedy bus off condition
FALSE:
this function is not executed
InhibitTime
(optional use of the parameter)
TIME
Waiting time between bus off and restart of the CAN interface
preset = 1 s