Download SM-CAN User Guide

Transcript
6.7
ENABLECANTRIPS
ENABLECANTRIPS specifies which CAN network errors detected by SM-CAN will cause
the Unidrive SP to trip.
DPL CODE
Status% = ENABLECANTRIPS(TripMode%)
FUNCTION BLOCK DIAGRAM
EnableCANTrips
TripMode%
Trig
Q
Status%
Table 6.7 ENABLECANSTRIPS arguments
Argument
6.8
Range
Description
TripMode%
0 to 32
Specifies SM-CAN trip mode as MT, where:
M = Unidrive SP module slot containing target SM-CAN
T = trip mode, where:
0 = CAN trips disabled
1 = Unidrive SP trip only on bus-off error
2 = Unidrive SP trip on bus-off error and no acknowledge
Status%
0 or 1
Returns the status of the ENABLECANTRIPS command,
where:
0 = operation failed
1 = operation successful
RESETCANTIMER
RESETCANTIMER will reset the internal timer used to generate the TStamp% argument
in GETCAN to 0.
DPL CODE
Status% = RESETCANTIMER(Reset%)
FUNCTION BLOCK DIAGRAM
ResetCANTimer
Reset%
Trig
Q
Status%
Table 6.8 RESETCANTIMER arguments
Argument
Range
Description
Reset%
0 to 31
Reset CAN timer as MR, where:
M = Unidrive SP module slot containing target SM-CAN
R = reset, where:
0 = no action
1 = reset CAN timer
Status%
0 or 1
Returns the status of the RESETCANTIMER command, where:
0 = operation failed
1 = operation successful
SM-CAN User Guide
Issue Number: 1
www.controltechniques.com
21