ANSI C Based OPC UA Client/Server SDK  1.9.0.430
OpcUa_UpdateDataDetails Struct Reference

The details for insert, replace, and insert/replace history updates. More...

#include <opcua_types.h>

Data Fields

OpcUa_NodeId NodeId
 Node ID of the object to be updated.
 
OpcUa_PerformUpdateType PerformInsertReplace
 Determines which action of insert, replace, or update is performed. More...
 
OpcUa_DataValueUpdateValues
 New values to be inserted or to replace.
 

Detailed Description

The details for insert, replace, and insert/replace history updates.

Insert data functionality
Setting performInsertReplace = INSERT_1 inserts entries into the history database at the specified timestamps for one or more HistoricalDataNodes. If an entry exists at the specified timestamp, the new entry shall not be inserted; instead the StatusCode shall indicate Bad_EntryExists.

This function is intended to insert new entries at the specified timestamps; e.g. the insertion of lab data to reflect the time of data collection.

Replace data functionality
Setting performInsertReplace = REPLACE_2 replaces entries in the history database at the specified timestamps for one or more HistoricalDataNodes. If no entry exists at the specified timestamp, the new entry shall not be inserted; otherwise the StatusCode shall indicate Bad_NoEntryExists.

This function is intended to replace existing entries at the specified timestamp; e.g., correct lab data that was improperly processed, but inserted into the history database.

Update data functionality
Setting performInsertReplace = UPDATE_3 inserts or replaces entries in the history database for the specified timestamps for one or more HistoricalDataNodes. If the item has an entry at the specified timestamp, the new entry will replace the old one. If there is no entry at that timestamp, the function will insert the new data.

A Server can create a modified value for a value being replaced or inserted, however it is not required.

This function is intended to unconditionally insert/replace values and qualities; e.g., correction of values for bad sensors.

Good as a StatusCode for an individual entry is allowed when the server is unable to say whether there was already a value at that timestamp. If the server can determine whether the new entry replaces an entry that was already there, it should use Good_EntryInserted or Good_EntryReplaced to return that information.


The documentation for this struct was generated from the following file: