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