IDatasourcesMgr.GetItemInfo (METH) ¶ METHOD GetItemInfo : IDataItemBase InOut: Scope Name Type Return GetItemInfo IDataItemBase Input pstSymbol POINTER TO STRING
IDatasourcesMgr.ReadItemsSync (METH) ¶ METHOD ReadItemsSync : SysTypes.RTS_IEC_RESULT Reads the given list of items synchronously. Important Please remark that the operation might take quite some time in case many items are contained within the list. For this time, the call is blocking! InOut: Scope Name Type Comment Return ReadItemsSync SysTypes.RTS_IEC_RESULT Input items IDataItemList The list of items that have to be read
IDatasourcesMgr.ReleaseData (METH) ¶ METHOD ReleaseData : SysTypes.RTS_IEC_RESULT Deactivates the item of the given instance path from monitoring. Note The items are reference counted so each call to IDatasourcesMgr.UseData or IDatasourcesMgr3.UseDataExpanding requires a matching call to ReleaseData InOut: Scope Name Type Comment Return ReleaseData 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.
IDatasourcesMgr.SetCredentialsProvider (METH) ¶ METHOD SetCredentialsProvider : SysTypes.RTS_IEC_RESULT Assigns the given credentials provider object to all datasources. InOut: Scope Name Type Comment Return SetCredentialsProvider SysTypes.RTS_IEC_RESULT An error code representing the result of the operation Input provider ICredentialsProvider The object to assign
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.
INotificationClient (ITF) ¶ INTERFACE INotificationClient EXTENDS __SYSTEM.IQueryInterface This interface can be implemented and registered using IDatasourcesMgr2.AddNotificationClient to get notified about operations on variables executed by the datasources. Methods: ListOperationDone ListOperationStart ListValueRead ListValueWrite ReadRequestDone ReadRequestStart SingleValueRead SingleValueWrite WriteRequestDone WriteRequestStart Structure: ListOperationDone (Method) ListOperationStart (Method) ListValueRead (Method) ListValueWrite (Method) ReadRequestDone (Method) ReadRequestStart (Method) SingleValueRead (Method) SingleValueWrite (Method) WriteRequestDone (Method) WriteRequestStart (Method)
INotificationClient.ListOperationDone (METH) ¶ METHOD ListOperationDone This method will be called when an operation on a list of variables was executed (eg. IDatasourcesMgr.ReadItemsSync or IDatasourcesMgr.WriteItemsSync ) InOut: Scope Name Type Comment Input xWriting BOOL This value signals whether the current operation was a write operation. datasourceName ItemName The name of the datasource where the operation was executed. For details of the format of this parameter have a look at ItemName or ItemNameType result SysTypes.RTS_IEC_RESULT The result of the operation. In case of successful execution, this value will contain |CmpErrors.Errors.ERR_OK|
INotificationClient.ListOperationStart (METH) ¶ METHOD ListOperationStart This method will be called when an operation on a list of variables will be executed (eg. IDatasourcesMgr.ReadItemsSync or IDatasourcesMgr.WriteItemsSync ) InOut: Scope Name Type Comment Input xWriting BOOL This value signals whether the current operation will be a write operation. datasourceName ItemName The name of the datasource where the operation will be executed. For details of the format of this parameter have a look at ItemName or ItemNameType
INotificationClient.ListValueRead (METH) ¶ METHOD ListValueRead This method will be called when a variable was read as part of a list operation (see INotificationClient.ListOperationStart or INotificationClient.ListOperationDone ) InOut: Scope Name Type Comment Input remoteName ItemName The name of the variable as known by the connected device that was read. For details of the format of this parameter have a look at ItemName or ItemNameType pReadValue POINTER TO BYTE The address of the value containing the recently read value valueType IBaseLibrary.TypeClass The type information of the currently read value valueSize __UXINT The size in bytes of the currently read value
INotificationClient.ListValueWrite (METH) ¶ METHOD ListValueWrite This method will be called when a variable will be written as part of a list operation (see INotificationClient.ListOperationStart or INotificationClient.ListOperationDone ) Note Please remark that this method will be called before the write operation is sent to the connected device. For being sure about a successful execution the followup call of INotificationClient.ListOperationDone should be checked. InOut: Scope Name Type Comment Input remoteName ItemName The name of the variable as known by the connected device that was read. For details of the format of this parameter have a look at ItemName or ItemNameType pWriteValue POINTER TO BYTE The address of the value containing the value that will be written valueType IBaseLibrary.TypeClass The type information of the currently read value valueSize __UXINT The size in bytes of the currently read value