CANopenManager_Diag.GetBusState (METH)ΒΆ
METHOD GetBusState : DED.BUS_STATE
Returns the bus state of the associated CANBus.
Following table defines the mapping between CAA Device Diagnosis DED.BUS_STATE and CL2.BUSSTATE.
CAA Device Diagnosis |
CANbus state |
|
CL2.BUSSTATE.ERR_FREE,CL2.BUSSTATE.ACTIVE,CL2.BUSSTATE.WARNING |
|
no driver found,
CL2.BUSSTATE.BUSOFF,CL2.BUSSTATE.PASSIVE |
|
|
- InOut:
Scope
Name
Type
Comment
Return
GetBusStateDED.BUS_STATEcurrent bus state.
Output
xDiagnosisInfoAvailableBOOLTRUE, if red exclamation mark in device treeeErrorDED.ERRORDED.ERROR.NO_ERRORif bus state was retrieved wihout error.