ProxyInstance (FB) ¶ FUNCTION_BLOCK ProxyInstance EXTENDS BaseInstance This implementation can be extended by Proxy-FBs. It already contains the proper Initialize method and the properties from interface IBaseInstance. Properties: LocalComAddress ComAddress , inherited from BaseInstance InitParametersDone , inherited from BaseInstance InstanceName , inherited from BaseInstance Methods: Main SetProxyIdentification FB_EXIT , inherited from BaseInstance Init , inherited from BaseInstance OnAfterOnlineChange , inherited from BaseInstance OnBeforeOnlineChange , inherited from BaseInstance SetBaseIdentification , inherited from BaseInstance Structure: LocalComAddress (Property) Main (Method) SetProxyIdentification (Method)
ProxyInstance.LocalComAddress (PROP) ¶ PROPERTY FINAL LocalComAddress : UDINT The local communication address of the proxy instance.
GetLastSibling (FUN) ¶ FUNCTION GetLastSibling : IModule Returns the last child module instance of a given instance. Never returns 0. InOut: Scope Name Type Comment Return GetLastSibling IModule Input itfM IModule The instance that is queried for the last sibling (must not be 0)
GetNextModule (FUN) ¶ FUNCTION GetNextModule : IModule Returns the next module in depth-first preorder of the module tree. Returns 0 if (and only if) itfM is the last module in the preorder of the tree. InOut: Scope Name Type Comment Return GetNextModule IModule Input itfM IModule The module instance that is queried for the next instance (must not be 0)
GetPrevModule (FUN) ¶ FUNCTION GetPrevModule : IModule Returns the previous module in depth-first preorder of the module tree. Returns 0 if (and only if) itfM is the first module in the preorder of the tree. InOut: Scope Name Type Comment Return GetPrevModule IModule Input itfM IModule The module instance that is queried for the previous instance (must not be 0)
GetToplevelInstance (FUN) ¶ FUNCTION GetToplevelInstance : IModule Returns the toplevel instance of itfM. Never returns 0. InOut: Scope Name Type Comment Return GetToplevelInstance IModule Input itfM IModule The module instance that is queried for the toplevel instance (must not be 0)
GetToplevelRange (FUN) ¶ FUNCTION GetToplevelRange : SiblingRange Returns the range of all toplevel instances. InOut: Scope Name Type Comment Return GetToplevelRange SiblingRange Input itfMTree IModuleTree The module tree that holds all instances
IModuleRangeForward (ITF) ¶ INTERFACE IModuleRangeForward A forward range that represents a range of module instances. A forward range is similar to an iterator in Java or an enumerator in C#. Properties: First IsEmpty Methods: PopFirst Structure: First (Property) IsEmpty (Property) PopFirst (Method)
IModuleRangeForward.First (PROP) ¶ PROPERTY First : IModule Returns the first instance in the current range. May only be called if IsEmpty is FALSE.
IModuleRangeForward.IsEmpty (PROP) ¶ PROPERTY IsEmpty : BOOL Returns whether the range is empty. The property First may only be called if IsEmpty is FALSE.