AC_Module ¶ General functionalities and function blocks used as base for all module instances and for handling module instances from within IEC. BaseInstance (FunctionBlock) ComAddress (Property) FB_EXIT (Method) Init (Method) InitParametersDone (Property) InstanceName (Property) Main (Method) OnAfterOnlineChange (Method) OnBeforeOnlineChange (Method) SetBaseIdentification (Method) CopyStr (Function) IBaseInstance (Interface) ComAddress (Property) Init (Method) InstanceName (Property) Main (Method) OnAfterOnlineChange (Method) OnBeforeOnlineChange (Method) IBaseInstance2 (Interface) InitParametersDone (Property) IEnvironmentExtender (Interface) GetID (Property) IModule (Interface) ErrorHandling ClearErrors (Method) FirstErrorInstance (Property) FirstErrorNumber (Property) GetErrorMessage (Method) GetFirstErrorMessage (Method) GetLastErrorMessage (Method) LastErrorInstance (Property) LastErrorNumber (Property) Identification Environment (Property) Handle (Property) ModuleInfo (Property) StandardCalls CallPrioHighEnd (Method) CallPrioHighStart (Method) CallPrioLowEnd (Method) CallPrioLowStart (Method) CallPrioMediumEnd (Method) CallPrioMediumStart (Method) IModuleTree (Interface) GetFirstChild (Method) GetFirstToplevelInstance (Method) GetParent (Method) NextSibling (Method) PrevSibling (Method) MEnv (Struct) Module (FunctionBlock) ErrorHandling ClearErrors (Method) FirstErrorInstance (Property) FirstErrorNumber (Property) GetErrorMessage (Method) GetFirstErrorMessage (Method) GetLastErrorMessage (Method) LastErrorInstance (Property) LastErrorNumber (Property) ReportError (Method) Identification Environment (Property) Handle (Property) ModuleInfo (Property) SetIdentification (Method) Init (Method) Main (Method) OnAfterOnlineChange (Method) OnBeforeOnlineChange (Method) StandardCalls CallPrioHighEnd (Method) CallPrioHighStart (Method) CallPrioLowEnd (Method) CallPrioLowStart (Method) CallPrioMediumEnd (Method) CallPrioMediumStart (Method) ModuleHandle (Alias) ModuleInfo (FunctionBlock) ModuleType (Property) ProxyInstance (FunctionBlock) LocalComAddress (Property) Main (Method) SetProxyIdentification (Method) TreeNavigation AncestorRange (FunctionBlock) First (Property) Init (Method) IsEmpty (Property) PopFirst (Method) DepthFirstRange (FunctionBlock) First (Property) Init (Method) IsEmpty (Property) PopFirst (Method) GetAncestorRange (Function) GetChildRange (Function) GetDepthFirstRange (Function) GetInstancePath (Function) GetLastChild (Function) GetLastInRange (Function) GetLastSibling (Function) GetNextModule (Function) GetPrevModule (Function) GetToplevelInstance (Function) GetToplevelRange (Function) IModuleRangeForward (Interface) First (Property) IsEmpty (Property) PopFirst (Method) SiblingRange (FunctionBlock) First (Property) Init (Method) IsEmpty (Property) PopFirst (Method)
BaseInstance (FB) ¶ FUNCTION_BLOCK BaseInstance IMPLEMENTS IBaseInstance2 This implementation is the common base for FB Module and ProxyInstance. For details see IBaseInstance . Properties: ComAddress InitParametersDone InstanceName Methods: FB_EXIT Init Main OnAfterOnlineChange OnBeforeOnlineChange SetBaseIdentification Structure: ComAddress (Property) FB_EXIT (Method) Init (Method) InitParametersDone (Property) InstanceName (Property) Main (Method) OnAfterOnlineChange (Method) OnBeforeOnlineChange (Method) SetBaseIdentification (Method)
IBaseInstance (ITF) ¶ INTERFACE IBaseInstance EXTENDS __SYSTEM.IQueryInterface Base interface for all instances that have a name and a communication address. Implemented by IModule. Properties: ComAddress InstanceName Methods: Init Main OnAfterOnlineChange OnBeforeOnlineChange Structure: ComAddress (Property) Init (Method) InstanceName (Property) Main (Method) OnAfterOnlineChange (Method) OnBeforeOnlineChange (Method)
IBaseInstance.ComAddress (PROP) ¶ PROPERTY ComAddress : UDINT The communication address. The most significand 16 bit are the address of the application, the least significand 16 bit are the local address. Together the address is unique among all instances in all applications.
IBaseInstance.Init (METH) ¶ METHOD Init This method is called after a download or an online change. It is called after all parameter values have been set, all submodules and referenced modules have been assigned, and the tree structure has been completely created, but before the tasks are (re-)started. Note : in contrast to FB_Init, this method is called at every online change, regardless of whether FB_Exit has been called on the old instance before. InOut: Scope Name Type Comment Input bOnlineChange BOOL Indicates whether the method is called during an online change
IBaseInstance.InstanceName (PROP) ¶ PROPERTY InstanceName : STRING(255) The instance name of the node.
IBaseInstance.Main (METH) ¶ METHOD Main This method should call the body of the function block.
IBaseInstance.OnAfterOnlineChange (METH) ¶ METHOD OnAfterOnlineChange This method is called during an online change, after all parameter values have been set, all submodules and referenced modules have been assigned, and the tree structure has been completely created.
IBaseInstance.OnBeforeOnlineChange (METH) ¶ METHOD OnBeforeOnlineChange This method is called during an online change, before the old tree structure has been erased and before any parameter values have been set or any submodules and referenced modules have been assigned.
IBaseInstance2 (ITF) ¶ INTERFACE IBaseInstance2 EXTENDS IBaseInstance Properties: InitParametersDone ComAddress , inherited from IBaseInstance InstanceName , inherited from IBaseInstance Methods: Init , inherited from IBaseInstance Main , inherited from IBaseInstance OnAfterOnlineChange , inherited from IBaseInstance OnBeforeOnlineChange , inherited from IBaseInstance Structure: InitParametersDone (Property)