CANRemoteDevice_Diag.GetDeviceState (METH)ΒΆ

METHOD GetDeviceState : DED.DEVICE_STATE

Returns the state of the CANopen Remote device.

Following table defines the mapping between CAA Device Diagnosis DED.DEVICE_STATE and DEVICE_STATE.

CAA Device Diagnosis

CANopen state

DED.DEVICE_STATE.UNKNOWN

DEVICE_STATE.UNKNOWN

DED.DEVICE_STATE.STOPPED

DEVICE_STATE.STOPPED

DED.DEVICE_STATE.RUNNING

DEVICE_STATE.OPERATIONAL

DED.DEVICE_STATE.ERROR

Bus Error pending

DED.DEVICE_STATE.DISABLED

Device is disabled in I/O configuration.

DED.DEVICE_STATE.NOT_CONFIGURED

DEVICE_STATE.PRE_OPERATIONAL and SDO configuration not finished yet

DED.DEVICE_STATE.CONFIGURED

DEVICE_STATE.PRE_OPERATIONAL and SDO configuration finished

DED.DEVICE_STATE.NOT_FOUND

DEVICE_STATE.NOT_AVAIL

InOut:

Scope

Name

Type

Comment

Return

GetDeviceState

DED.DEVICE_STATE

current device state

Output

xDiagnosisInfoAvailable

BOOL

TRUE, if red exclamation mark in device tree

eError

DED.ERROR