Skip to main content

History

ua.readHistory(...) It serves as a simplified entry point to Raw mode, with the full functionality spread API across the methods OpcUaSession in readHistoryXxx / updateHistory / deleteHistoryRange.

Subpage Redirect
  • For a list of all origin points within the range, please refer to ReadRaw.
  • For a record of changes, please refer to ReadModified.
  • For interpolation at a specific point in time, please refer to ReadAtTime.
  • Aggregation (Avg / Min / Max / TimeAverage / ...) Please refer to ReadProcessed.
  • Historical Events (Alarms / Conditions) — Please refer to ReadEvents.
  • For writing history (Insert / Replace / Update / Remove), please refer to HistoryUpdate.
  • For instructions on deleting history, please refer to Delete.

5 Modes HistoryRead​

PatternAPINote
Raw DatareadHistoryAll points within the interval
Modified (includes revision history)readHistoryModifiedThe range contains modification records
AtTime A specific point in timereadHistoryAtTimeInterpolation for a Given Timestamp
Processed AggregationreadHistoryProcessedAggregation (Avg / Min / Max / ...)
Events HistoryreadHistoryEventsHistorical Events (Alarms / Conditions)

HistoryUpdate​

APIUses
updateHistoryInsert / Replace / Update / Remove Historical Data
deleteHistoryRangeDelete by Time Period

General Prerequisites​

  • The server must support Historian; otherwise, a uniform response will be returned. BadHistoryOperationUnsupported
  • Bit AccessLevel 4 (HistoryRead) / bit 8 (HistoryWrite) of the node must be set
  • The "Historizing Attribute" (20) node determines whether to record history.
  • All times are in java.time.Instant (UTC), converted internally to Windows format FileTime

Next Step​