page 42
Function
CAN_RESTART
Library CRxxxx.LIB
Function symbol
Purpose
Restart of the CAN participant after "serious" transmission
errors (bus-off state).
Parameters
Function inputs
Function outputs, none
Description
CAN enables a distinction between a temporary and a per-
manent disturbance of a bus participant. As described in section
6.3, three function states are available.
If a participant is
error-active,
this is the normal state.
If a certain number of transmission errors occurs, the participant
becomes
error-passive
. If the error frequency is reduced, the
participant becomes again
error-active
.
If a participant is already error-passive and transmission errors
continue to occur, it is switched off from the bus (
bus-off
) and
the error flag CAN_BUS_OFF_ERROR is set. A return to the
bus is only possible with the function CAN_RESTART. The error
flag is reset after a successful return.
The input ENABLE suppresses the execution of the function.
Name Data type Description
ENABLE BOOL TRUE: The function is processed.
FALSE: The function is not processed.