IDataServer4.ReadItems (METH) ¶ METHOD ReadItems : UDINT InOut: Scope Name Type Comment Return ReadItems UDINT Input items IDataItemList The list of items that have to be read bAsynchron BOOL Whether the method should be executed asynchronously (might not be supported so check return value) finishedCallback ICallback An optional callback that will be called when the operation is finished (can be 0)
IDataServer4.WriteItems (METH) ¶ METHOD WriteItems : UDINT InOut: Scope Name Type Comment Return WriteItems UDINT Input items IDataItemList The list of items that have to be read bAsynchron BOOL Whether the method should be executed asynchronously (might not be supported so check return value) finishedCallback ICallback An optional callback that will be called when the operation is finished (can be 0)
IDataServer5 (ITF) ¶ INTERFACE IDataServer5 EXTENDS IDataServer4 Properties: Flags InstancePathPrefix , inherited from IDataServer2 Methods: DeleteRecord GetRecordResult ReplayRecord ResumeAfterTempShutdown StartRecordMode StartTempShutdown AllItemsOk , inherited from IDataServer BeginDataConfiguration , inherited from IDataServer CreateItemList , inherited from IDataServer4 DeleteItemList , inherited from IDataServer4 EndDataConfiguration , inherited from IDataServer GetInterface , inherited from IDataServer2 GetItemInfo , inherited from IDataServer ReadItems , inherited from IDataServer4 ReleaseData , inherited from IDataServer ResolveSymbol , inherited from IDataServer3 SetCredentialsProvider , inherited from IDataServer2 UseData , inherited from IDataServer WriteItems , inherited from IDataServer4 Structure: DeleteRecord (Method) Flags (Property) GetRecordResult (Method) ReplayRecord (Method) ResumeAfterTempShutdown (Method) StartRecordMode (Method) StartTempShutdown (Method)
IDataServer5.DeleteRecord (METH) ¶ METHOD DeleteRecord : UDINT This method must be called on any instance of <see>IDataServerActionRecord</see> retrieved from a call to <see>GetRecordResult</see> InOut: Scope Name Type Return DeleteRecord UDINT Input record IDataServerActionRecord
IDataServer5.Flags (PROP) ¶ PROPERTY Flags : DWORD
IDataServer5.GetRecordResult (METH) ¶ METHOD GetRecordResult : UDINT Returns the result of a record operation. For details <see>StartRecordMode</see>. The result of this operation (if successfull) will be returned in <see>result</see> InOut: Scope Name Type Return GetRecordResult UDINT Output result IDataServerActionRecord
IDataServer5.ReplayRecord (METH) ¶ METHOD ReplayRecord : UDINT Replays a previously recorded UseData/ReleaseData operation Calls to this method must be enclosed in <see>BeginDataConfiguration</see> and <see>EndDataConfiguration</see> InOut: Scope Name Type Return ReplayRecord UDINT Input record IDataServerActionRecord
IDataServer5.ResumeAfterTempShutdown (METH) ¶ METHOD ResumeAfterTempShutdown : UDINT This method can be called to resume the normal operation of a datasource after a call to <see>StartTempShutdown</see> Calls to this method must be protected by calling BeginDataConfiguration/EndDataConfiguration around this call. InOut: Scope Name Type Comment Return ResumeAfterTempShutdown UDINT Input pstDataSource POINTER TO STRING The name of the datasource, must not be NULL
IDataServer5.StartRecordMode (METH) ¶ METHOD StartRecordMode : UDINT Clients of the dataserver can call this method to start recording the following actions (UseData, ReleaseData). In between calls to this method and the according call to <see>GetRecordResult</see> no real action will be done. Instead the action will only be recorded. The result can be retrieved using <see>GetRecordResult</see>. InOut: Scope Name Type Return StartRecordMode UDINT
IDataServer5.StartTempShutdown (METH) ¶ METHOD StartTempShutdown : UDINT This method can be used for temporarily shutting down a dataserver connection. Due to the reason that this shutdown might take some cycles, the user of this method should wait until the operation is finished. This can be determined using the callback <see>cbShutdownDone</see>. Calls to this method must be protected by calling BeginDataConfiguration/EndDataConfiguration around this call. To resume the normal operation of the datasource call the method <see>ResumeAfterTempShutdown</see>. InOut: Scope Name Type Comment Return StartTempShutdown UDINT Input pstDataSource POINTER TO STRING The name of the datasource, must not be NULL cbShutdownDone ICallback An optional callback that will be triggered when the shutdown is finished. The callback parameter will be a pointer to a <see>ITempShutdownResult</see>. Please remember that the callback might be called from a different task then the call to <see>StartTempShutdown</see>. Please remember that the given object must live at least until the callback is called. Don’t pass a function local variable for this parameter!