Docs · Protocols
OPC UA: methods, history, events and alarms
What OTDeck does beyond browsing, reading, watching and writing nodes
(Getting started with OTDeck). Everything here works
against the built-in simulator (opc.tcp://127.0.0.1:4840), so you can try
it without a plant.
Method calls
Select a Method node in the address space and click Call…, or select an Object and click Methods… to pick one of its methods.
- OTDeck reads the method’s
InputArgumentsandOutputArgumentsproperties and shows a field per input argument: its name, data type and description. - Built-in types are entered as text: Boolean (
true/false), SByte to UInt64, Float, Double, String, DateTime (RFC 3339), ByteString (hex), NodeId and LocalizedText. One-dimensional arrays of them are entered as JSON, for example[1, 2.5]or["a", "b"](at most 1000 elements). Structures, enumerations and multi-dimensional arrays are shown as not supported, and such a method cannot be called from OTDeck. - The result shows the status name and code (
Good,0x00000000,BadOutOfRange: …), the server’s verdict on each input argument and the output values.
A method can change the plant, so a call is treated like a write: it needs
Pro, read-only connections refuse it, production connections need the
connection name typed, and every call (also a refused one) is in the write
log as opcua.call with the object, the method and the arguments with
their types (Connection roles and safety).
Limits on what a server sends: at most 64 arguments in or out; names are cut at 256 characters, descriptions at 1024; output values are shown cut like every value.
Simulator: Plant1/Line1/Press/SetSetpoint takes a Double (0 to 300, else
BadOutOfRange on the argument) and returns Changed (Boolean);
Press/Reset sets the parts counter to 0.
History
A variable whose AccessLevel includes history read gets History….
- Range: last 15 minutes, last hour, last 24 hours, or a custom from/to.
- Max values: default 1000, at most 10 000. OTDeck asks the server for pages of up to 1000 raw values (HistoryRead, ReadRawModifiedDetails) and follows its continuation points; when it stops early (Max reached, or Cancel), it releases the server’s continuation point.
- Raw / Aggregate: Aggregate asks the server for processed history (HistoryRead, ReadProcessedDetails, Part 13) instead of raw values: one value per Interval (10 s, 1 min, 5 min, 15 min, 1 h, or the whole range) with the Aggregate chosen: Average, Minimum, Maximum, Count, Interpolative, Start, End, Range, Total or TimeAverage. The server computes them with its default configuration; the status column says Calculated, Interpolated or Partial. The range must fit in Max values intervals. A server without aggregates answers that it does not compute them.
- At most 100 pages and 60 s per read, and a read stops after 10 empty pages in a row, so a server that keeps answering empty pages cannot keep OTDeck reading.
- The values show in a table (the first 1000) and on a chart; Export CSV saves every numeric value in the same format as the trend export.
Reading history is free: it shows the server’s own historian and OTDeck keeps nothing of it. The CSV export is Pro, like every export.
Simulator: Press/Temperature is historizing, with two hours of values at
start and one more every second; the server pages by 500 values and
computes every aggregate in the list from its raw values.
Events and alarms
The Events tab next to the watch list subscribes to the events of an
object: i=2253 (the Server object, every event the server reports) or any
object (Events on an object’s panel fills it in).
- Each event shows its time, severity, source and message; click one for every field (EventId, EventType, SourceName, Time, Message, Severity and, for conditions, ConditionName, Retain, ActiveState, AckedState, ConfirmedState, Comment).
- Filter by lowest severity (Low 200, Medium 400, High 700) and by source.
- Severity is shown as text and an icon shape. Colour is kept for abnormal states (ISA-101): only an active or unacknowledged alarm uses the status colours; normal events stay grey.
- OTDeck keeps the last 1000 events of the subscription; older ones drop out (the panel says how many).
- On subscribe OTDeck calls ConditionRefresh, so alarms that are already active show at once. When the server does not support it, the panel says so and active alarms show when they change.
Alarms above the list are the conditions the server still retains. An
unacknowledged one has Acknowledge…, an acknowledged but unconfirmed
one Confirm… (when the server supports Confirm). Both send a comment.
That is a write to the plant: Pro, refused on read-only connections,
the name typed on production, logged as opcua.ack with the condition, the
method and the comment.
Simulator: Press/HighTemperature (OffNormalAlarmType, severity 700) is
active for 20 seconds of every minute and whenever Temperature is above
80 °C (set the setpoint to 90 with SetSetpoint to see it); the press also
reports its state changes (RUNNING, IDLE, FAULT) as events.
AI agents
read_history (raw or aggregated) and list_events let an agent read
history and see events and retained alarms. On a connection set to Read
and write for agents (Pro), call_method and ack_alarm let it ask for a
method call or an alarm acknowledgement: each one opens the approval window
with the method and every argument as sent, or the alarm and its state, and
nothing happens until you allow it (AI agents (MCP)).