GetNextNode (FUN) ¶ FUNCTION GetNextNode : INode The function implements a depth-first search. Nodes will be returned in top to bottom order of the device tree Example Following example code counts all nodes in the device tree. PROGRAM PLC_PRG VAR itfNode : DED.INode ; uiNodes : UINT ; END_VAR itfNode := DED.GetRoot (); REPEAT itfNode := DED.GetNextNode ( itfNode ); uiNodes := uiNodes + 1 ; UNTIL itfNode = 0 END_REPEAT InOut: Scope Name Type Comment Return GetNextNode INode Input itfCurrent INode node from which the search shall be started.
GetNodeDepth (FUN) ¶ FUNCTION GetNodeDepth : INT The function returns the depth of a node (i.e. number of parents between this node and the plc) InOut: Scope Name Type Return GetNodeDepth INT Input itfNode INode
GetRoot (FUN) ¶ FUNCTION GetRoot : INode The function returns the root device (= PLC device). InOut: Scope Name Type Comment Return GetRoot INode root node
INode_TO_IBus (FUN) ¶ FUNCTION INode_TO_IBus : IBus Converts an INode object to an IBus object. If itfNode is no IBus object function returns zero. InOut: Scope Name Type Comment Return INode_TO_IBus IBus corresponding IBus or zero if itfNode is no IBus object Input itfNode INode node to be converted
INode_TO_IDevice (FUN) ¶ FUNCTION INode_TO_IDevice : IDevice Converts an INode object to an IDevice object. If itfNode is no IDevice object function returns zero. InOut: Scope Name Type Comment Return INode_TO_IDevice IDevice corresponding IDevice or zero if itfNode is no IDevice object Input itfNode INode node to be converted
INode_TO_IDevice2 (FUN) ¶ FUNCTION INode_TO_IDevice2 : IDevice2 Converts an INode object to an IDevice2 object. If itfNode is no IDevice2 object function returns zero. InOut: Scope Name Type Comment Return INode_TO_IDevice2 IDevice2 corresponding IDevice2 or zero if itfNode is no IDevice2 object Input itfNode INode node to be converted
INode_TO_IStack (FUN) ¶ FUNCTION INode_TO_IStack : IStack Converts an INode object to an IStack object. If itfNode is no IStack object function returns zero. InOut: Scope Name Type Comment Return INode_TO_IStack IStack corresponding IStack or zero if itfNode is no IStack object Input itfNode INode node to be converted
Global Constants ¶ ERROR_CODES (GVL)
ERROR_CODES (GVL) ¶ The ERROR_CODES constants are used to identify a specific device or bus error. They are part of ERROR_INFO structure. The constants are divided up into different categories. The categories determine the severity of the occurred error. The exact classification of each error is done individually by each device and each bus. Attributes: qualified_only InOut: Scope Name Type Initial Comment Constant EC_NO_ERROR CAA.IDENT 16#0 no error EC_FIRST_INFO CAA.IDENT 16#1000 first error number of category INFO EC_LAST_INFO CAA.IDENT 16#1FFF last error number of category INFO EC_FIRST_WARNING CAA.IDENT 16#2000 first error number of category WARNING EC_LAST_WARNING CAA.IDENT 16#2FFF last error number of category WARNING EC_FIRST_ERROR CAA.IDENT 16#3000 first error number of category ERROR EC_LAST_ERROR CAA.IDENT 16#3FFF last error number of category ERROR EC_FIRST_EMCY CAA.IDENT 16#4000 first error number of category EMERGENCY EC_LAST_EMCY CAA.IDENT 16#4FFF last error number of category EMERGENCY
Interfaces ¶ IBus (Interface) Fieldbus-dependent-methods GetSpecificBusState (Method) GetBusDiagnosisInfo (Method) GetBusErrorAsync (Method) GetBusInfo (Method) GetBusState (Method) GetQoS (Method) IDevice (Interface) Fieldbus-dependent-methods GetSpecificDeviceErrorAsync (Method) GetSpecificDeviceState (Method) GetDeviceDiagnosisInfo (Method) GetDeviceErrorAsync (Method) GetDeviceInfo (Method) GetDeviceState (Method) SetCommunicationState (Method) IDevice2 (Interface) CheckCurrentSupportedCommunicationState (Method) CheckSupportedCommunicationState (Method) ILogger (Interface) DisableLogger (Method) EnableLogger (Method) GetLogEntry (Method) INode (Folder) ChildNodeCount (Property) Enable (Property) FirstChildNode (Property) IsRootNode (Property) NextSiblingNode (Property) ParentNode (Property) SiblingNodeCount (Property) IReconfigureProvider (Folder) ReconfigureActive (Property) ReconfigureAsync (Method) RegisterIRPChild (Method) SiblingIRP (Property) IStack (Interface) GetBusScanAsync (Method) GetLogger (Method)