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)
CANbus.AutoRecovery (PROP) ¶ PROPERTY AutoRecovery : BOOL If AutoRecovery is enabled CANbus.ResetBusAlarm is automatically called when CANbus.BusAlarm is TRUE . If AutoRecovery is disabled CANbus.ResetBusAlarm has to be called by application. Default value: TRUE
CANbus.Baudrate (PROP) ¶ PROPERTY FINAL Baudrate : UINT Returns the currently used Baudrate. Baudrate can be changed with CANbus_Diag.SetBaudrate if device diagnosis is activated (needs Reconfigure !).
CANbus.BusAlarm (PROP) ¶ PROPERTY BusAlarm : BOOL Returns TRUE if CAN driver signals a BusAlarm (e.g. Bus Off). Call CANbus.ResetBusAlarm to reset the alarm or enable CANbus.AutoRecovery .