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
iMaxLockedCountINT3
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.
dsIDatasources.IDatasourcesMgrThe instance of the datasources manager, typically g_Datasources
Output
xAllOkBOOLWhether all items are ok
xTooManyTimesLockedBOOLWhether the dataserver has been locked too often
xErrorParameterBOOLThe parameters are invalid