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
| Pattern | API | Note |
|---|---|---|
| Raw Data | readHistory | All points within the interval |
| Modified (includes revision history) | readHistoryModified | The range contains modification records |
| AtTime A specific point in time | readHistoryAtTime | Interpolation for a Given Timestamp |
| Processed Aggregation | readHistoryProcessed | Aggregation (Avg / Min / Max / ...) |
| Events History | readHistoryEvents | Historical Events (Alarms / Conditions) |
HistoryUpdate
| API | Uses |
|---|---|
| updateHistory | Insert / Replace / Update / Remove Historical Data |
| deleteHistoryRange | Delete 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