Datasources Library Documentation ¶ Company 3S - Smart Software Solutions GmbH Title Datasources Version 4.3.0.0 Categories Intern|DataSources Namespace Datasources Author 3S - Smart Software Solutions GmbH Placeholder Datasources Description 1 ¶ Library implementing the kernel part of the datasources feature. Contents: ¶ DataSourcesQualityChecker (FunctionBlock) DataSources_PRG (Program) Datasources Enums Function Blocks Functions GlobalConstants GlobalVariables Interfaces Structs Tests Library Information GetLibVersion (Function) GetLibVersionNumber (Function) IsLibReleased (Function) Indices and tables ¶ 1 Based on Datasources.library, last modified 14.03.2023, 13:32:56. LibDoc 4.4.0.0-b.27 The content file Datasources.clean.json was generated with CODESYS V3.5 SP16 Patch 3 on 14.03.2023, 13:32:56.
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