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 .
CANbus.BusState (PROP) ¶ PROPERTY BusState : CL2.BUSSTATE Returns the current CANbus state. Only valid if at least one enabled CAN based stack is attached to this CANbus.
CANbus.NetId (PROP) ¶ PROPERTY FINAL NetId : USINT Returns the currently used Network ID. Network ID can be changed with CANbus_Diag.SetNetId if device diagnosis is activated (needs Reconfigure !).
CANbus.ResetBusAlarm (METH) ¶ METHOD ResetBusAlarm : BOOL Resets a bus alarm and returns TRUE in case of success. Note: Method is only working if there is at least one active CAN based stack below this CANbus. Resetting bus alarm will be done asynchronously in the attached CAN based stack. InOut: Scope Name Type Return ResetBusAlarm BOOL
CANbus_Diag (FB) ¶ FUNCTION_BLOCK CANbus_Diag EXTENDS CANbus IMPLEMENTS DED.IBus, DED.IReconfigureProvider Note Do not instantiate this function block! An implicit instance will be created for each CANbus in the device tree. Properties: AutoRecovery , inherited from CANbus Baudrate , inherited from CANbus BusAlarm , inherited from CANbus BusState , inherited from CANbus ChildNodeCount Connector Enable FirstChildNode Index IsRootNode NetId , inherited from CANbus NextSiblingNode ParentNode SiblingNodeCount Methods: SetBaudrate SetNetId GetBusInfo GetBusState GetQoS ResetBusAlarm , inherited from CANbus Structure: 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)
IBus ¶ Functions for getting bus information. GetBusInfo (Method) GetBusState (Method) GetQoS (Method)
INode ¶ Methods for traversing the device tree. ChildNodeCount (Property) Connector (Property) Enable (Property) FirstChildNode (Property) Index (Property) IsRootNode (Property) NextSiblingNode (Property) ParentNode (Property) SiblingNodeCount (Property)
GetLrealFromContents (FUN) ¶ FUNCTION GetLrealFromContents : LREAL Tries to evaluate property contents as LREAL data type. If the contents are not of apropriate type 0 is returned. InOut: Scope Name Type Comment Return GetLrealFromContents LREAL Input conts CmpBACnet.IEC_BACNET_PROPERTY_CONTENTS The contents to be evaluated as LREAL.
CANbus_Diag.SetBaudrate (METH) ¶ METHOD FINAL SetBaudrate Sets the Baudrate used by underlying communication stacks. Note Baudrate change takes effect after executing a Reconfigure on CANbus node(see CAA Device Diagnosis Reconfigure function block). InOut: Scope Name Type Input wBaudrate WORD
CANbus_Diag.SetNetId (METH) ¶ METHOD FINAL SetNetId Sets the NetID used by underlying communication stacks. Note NetID change takes effect after executing a Reconfigure on CANbus node(see CAA Device Diagnosis Reconfigure function block). InOut: Scope Name Type Input dwNetID DWORD