IDatasourcesMgr.UseData (METH)ΒΆ
METHOD UseData : SysTypes.RTS_IEC_RESULT
Activates the item of the given instance path for monitoring.
Note
The items are reference counted so each call to IDatasourcesMgr.UseData requires a matching call to IDatasourcesMgr.ReleaseData
Note
Usually items are monitored in total. If you want to expand the items (to prevent problems with different alignment etc.) then consider using the method IDatasourcesMgr3.UseDataExpanding instead.
- InOut:
Scope
Name
Type
Comment
Return
UseData
SysTypes.RTS_IEC_RESULT
Returns a runtime system error code (see CmpErrors.library) or one of Errors
Input
pstSymbol
POINTER TO STRING
The symbolic name of the variable to activate. Here the name of the variable on the local PLC/HMI is expected.