CANRemoteDevice_Diag.SetCommunicationState (METH)ΒΆ

METHOD SetCommunicationState : DED.ERROR

Starts, stops or resets the device. Following table defines the mapping between CAA Device Diagnosis DED.DEVICE_TRANSITION_STATE and CANopen NMT command:

CAA Device Diagnosis

CANopen NMT command

DED.DEVICE_TRANSITION_STATE.START

NMT Start

DED.DEVICE_TRANSITION_STATE.STOP

NMT Stop

DED.DEVICE_TRANSITION_STATE.RESET

NMT Reset Application

Note

Use CANRemoteDevice_Diag.CheckCurrentSupportedCommunicationState to check which transitions are possible in the current state!

InOut:

Scope

Name

Type

Comment

Return

SetCommunicationState

DED.ERROR

DED.ERROR.NO_ERROR if device transition was successful.

Input

eRequestedState

DED.DEVICE_TRANSITION_STATE

desired transition