page 43
Function
CAN_ERRORHANDLER
Library
CRxxxx.LIB
Function symbol
Purpose
Minimum error routine to monitor CAN.
Parameters
Function inputs
Function
outputs
Description
CAN_ERRORCOUNT evaluates all possible CAN errors and
totals the number of the errors in the counter ERRORCOUNT.
In the case of a bus-off error the function tries to return the
participant to the bus. To do so, the function CAN_RESTART is
integrated.
The programmer's job is to locate the precise error cause by
evaluating the error counter and the error bits supplied by the
system. Via the function input RESET the counter can then be
set to 0 again.
In each application software where the CAN communication is
utilized (also for the communication with a CAN display) at
least this function should be employed and processed
cyclically.
Name
Data type
Description
RESET
BOOL
Deletes the error counter.
Name
Data type
Description
ERROR-
COUNT
WORD
Error counter, contains the number of the
errors occurred.
Summary of Contents for ecomat 100 R 360 Series
Page 1: ...System manual ecomat 100 type R 360 ...
Page 14: ...page 14 ...
Page 26: ...page 26 ...
Page 86: ...page 86 ...
Page 100: ...page 100 ...
Page 126: ...page 126 ...
Page 146: ...page 146 ...
Page 162: ...page 162 ...
Page 163: ...page 163 Annex 2 Wiring Annex 2 1 Type CR0015 ...
Page 164: ...page 164 Annex 2 2 Type CR0016 ...
Page 165: ...page 165 Annex 2 3 Type CR0017 ...
Page 166: ...page 166 Annex 2 4 Type CR0501 ...