CANRemoteDevice_Diag.CheckSupportedCommunicationState (METH) ¶ METHOD CheckSupportedCommunicationState : BOOL This method checks if a specific DED.DEVICE_TRANSITION_STATE is supported by the node in general. For more details on interpretation of DED.DEVICE_TRANSITION_STATE for CANopen see CANRemoteDevice_Diag.SetCommunicationState . Note Use CANRemoteDevice_Diag.CheckCurrentSupportedCommunicationState to check which DED.DEVICE_TRANSITION_STATE is possible in the current state. InOut: Scope Name Type Comment Return CheckSupportedCommunicationState BOOL TRUE if node supports the requested DED.DEVICE_TRANSITION_STATE in general. Input eRequestedState DED.DEVICE_TRANSITION_STATE The communication state to be checked.
CANRemoteDevice_Diag.GetDeviceInfo (METH) ¶ METHOD GetDeviceInfo : DED.ERROR Returns device information about the CANopen Remote device. Interpretation of DED.DEVICE_INFO is as follows: Component Interpretation eType DED.DEVICE_TYPE.FIELDBUS_SLAVE idSystem Node ID idInstance Instance number in I/O configuration (starting by 0) InOut: Scope Name Type Comment Return GetDeviceInfo DED.ERROR DED.ERROR.NO_ERROR if no error occurred while getting information. Inout deiInfo DED.DEVICE_INFO device information
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
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
INode ¶ ChildNodeCount (Property) Connector (Property) Enable (Property) FirstChildNode (Property) Index (Property) IsRootNode (Property) NextSiblingNode (Property) ParentNode (Property) SiblingNodeCount (Property)
CANRemoteDevice_Diag.ChildNodeCount (PROP) ¶ PROPERTY ChildNodeCount : CAA.COUNT Returns the number of children below the current node
CANbusDevice Library Documentation ¶ Company : 3S - Smart Software Solutions GmbH Title : CANbusDevice Version : 4.2.0.0 Categories : Intern|CANbus Namespace : CANbusDevice Author : 3S - Smart Software Solutions GmbH Placeholder : CANbusDevice Description [ 1 ] ¶ This library implements functionblocks implicitly instantiated by CANBus device. Contents: ¶ CANbusDevice Function Blocks Library Information GetLibVersion (Function) GetLibVersionNumber (Function) IsLibReleased (Function) Indices and tables ¶ [ 1 ] Based on CANbusDevice.library, last modified 04.09.2023, 11:23:29. LibDoc 4.4.0.0-b.37 The content file CANbusDevice.clean.json was generated with CODESYS V3.5 SP16 Patch 3 on 04.09.2023, 11:23:31.
CANbusDevice ¶ Function Blocks CANbus (FunctionBlock) AutoRecovery (Property) Baudrate (Property) BusAlarm (Property) BusState (Property) NetId (Property) ResetBusAlarm (Method) CANbus_Diag (FunctionBlock) IBus GetBusInfo (Method) GetBusState (Method) GetQoS (Method) INode ChildNodeCount (Property) Connector (Property) Enable (Property) FirstChildNode (Property) Index (Property) IsRootNode (Property) NextSiblingNode (Property) ParentNode (Property) SiblingNodeCount (Property) SetBaudrate (Method) SetNetId (Method)
Function Blocks ¶ CANbus (FunctionBlock) AutoRecovery (Property) Baudrate (Property) BusAlarm (Property) BusState (Property) NetId (Property) ResetBusAlarm (Method) CANbus_Diag (FunctionBlock) IBus GetBusInfo (Method) GetBusState (Method) GetQoS (Method) INode ChildNodeCount (Property) Connector (Property) Enable (Property) FirstChildNode (Property) Index (Property) IsRootNode (Property) NextSiblingNode (Property) ParentNode (Property) SiblingNodeCount (Property) SetBaudrate (Method) SetNetId (Method)
CANbus (FB) ¶ FUNCTION_BLOCK CANbus Note Do not instantiate this function block! An implicit instance will be created for each CANbus in the device tree. Properties: AutoRecovery Baudrate BusAlarm BusState NetId Methods: ResetBusAlarm Structure: AutoRecovery (Property) Baudrate (Property) BusAlarm (Property) BusState (Property) NetId (Property) ResetBusAlarm (Method)