DataSourcesQualityChecker (FB) ¶ FUNCTION_BLOCK DataSourcesQualityChecker This utility function block can be used for concurrently checking the quality of currently monitored items by all datasources. InOut: Scope Name Type Initial Comment Input iMaxLockedCount INT 3 The maximal number of subsequently allowed problems (due to multitasking issues) with asking the datasourcesmanager if all items are ok. If the value is <= 0, then the locked state will be returned as everything is ok. ds IDatasources.IDatasourcesMgr The instance of the datasources manager, typically g_Datasources Output xAllOk BOOL Whether all items are ok xTooManyTimesLocked BOOL Whether the dataserver has been locked too often xErrorParameter BOOL The parameters are invalid
StateMachine.BeforeShutdown (METH) ¶ METHOD BeforeShutdown Called before the shutdown operation is started InOut: Scope Name Type Comment Input xDuringExit BOOL This variable signals whether a shutdown of the whole program is done or whether only the application is shutdown (eg. during download or reset)
Datasource.TargetByteOrder (PROP) ¶ PROPERTY TargetByteOrder : IDatasources.ByteOrder Returns the byteorder used by the system managed by the related |IDatasource| . Note It is not expected that this value changes at runtime.
Datasource.CustomRequestHandling (PROP) ¶ PROPERTY CustomRequestHandling : IDatasources.ICustomRequestHandling
Datasource.EnqueueCustomRequest (METH) ¶ METHOD EnqueueCustomRequest : IDatasources.SysTypes.RTS_IEC_RESULT InOut: Scope Name Type Return EnqueueCustomRequest IDatasources.SysTypes.RTS_IEC_RESULT Input request IDatasources.ICustomRequest finishedCallback IDatasources.ICustomRequestCallback
Datasource.SetCredentialsProvider (METH) ¶ METHOD SetCredentialsProvider : IDatasources.SysTypes.RTS_IEC_RESULT Assigns the given credentials provider object to a specific datasource. InOut: Scope Name Type Comment Return SetCredentialsProvider IDatasources.SysTypes.RTS_IEC_RESULT An error code representing the result of the operation Input provider IDatasources.ICredentialsProvider The object to assign
Datasource.Error (PROP) ¶ PROPERTY Error : UDINT Gets the last error of communication
Datasource.State (PROP) ¶ PROPERTY State : IDatasources.MonitoringState Gets the state of communication
Datasource.SetUpdateRateReduction (METH) ¶ METHOD SetUpdateRateReduction Sets the parameters for update rate reduction InOut: Scope Name Type Comment Input uiFactor UINT Reduction factor tMaxValue TIME The maximum level allowed
Datasource.UpdateRate (PROP) ¶ PROPERTY UpdateRate : TIME Gets the update rate actually set