Module (FB) ¶ FUNCTION_BLOCK Module EXTENDS BaseInstance IMPLEMENTS IModule Base implementation, should be extended by every function block that implements a module. The standard task methods, the Init method abd the methods OnBeforeOnlineChange and OnAfterOnlineChange call the corresponding methods of all submodules in tree order. The properties have the monitoring attribute ‘call’. For details see IModule . Properties: ComAddress , inherited from BaseInstance Environment FirstErrorInstance FirstErrorNumber Handle InitParametersDone , inherited from BaseInstance InstanceName , inherited from BaseInstance LastErrorInstance LastErrorNumber ModuleInfo Methods: Init Main OnAfterOnlineChange OnBeforeOnlineChange CallPrioHighEnd CallPrioHighStart CallPrioLowEnd CallPrioLowStart CallPrioMediumEnd CallPrioMediumStart ClearErrors FB_EXIT , inherited from BaseInstance GetErrorMessage GetFirstErrorMessage GetLastErrorMessage ReportError SetBaseIdentification , inherited from BaseInstance SetIdentification Structure: 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)
ErrorHandling ¶ ClearErrors (Method) FirstErrorInstance (Property) FirstErrorNumber (Property) GetErrorMessage (Method) GetFirstErrorMessage (Method) GetLastErrorMessage (Method) LastErrorInstance (Property) LastErrorNumber (Property) ReportError (Method)
Module.ClearErrors (METH) ¶ METHOD ClearErrors
Module.FirstErrorInstance (PROP) ¶ PROPERTY FirstErrorInstance : IModule returns the interface of the module instance that has caused the first error. 0 means: the error occured in this module instance or no error has occured.
Module.FirstErrorNumber (PROP) ¶ PROPERTY FirstErrorNumber : UINT
Module.GetErrorMessage (METH) ¶ METHOD GetErrorMessage : STRING(255) InOut: Scope Name Type Return GetErrorMessage STRING(255) Input uiErrorNumber UINT sLanguage STRING
Module.GetFirstErrorMessage (METH) ¶ METHOD GetFirstErrorMessage : STRING(255) InOut: Scope Name Type Return GetFirstErrorMessage STRING(255) Input sLanguage STRING
ErrorHandling ¶ ClearErrors (Method) FirstErrorInstance (Property) FirstErrorNumber (Property) GetErrorMessage (Method) GetFirstErrorMessage (Method) GetLastErrorMessage (Method) LastErrorInstance (Property) LastErrorNumber (Property)
IModule.ClearErrors (METH) ¶ METHOD ClearErrors A call of this method clears the error history
IModule.FirstErrorInstance (PROP) ¶ PROPERTY FirstErrorInstance : IModule Returns the interface of the module instance that has caused the first error. 0 means: the error occured in this module instance or no error has occured.