Skip to content

Diagnostic events

eaxPLCReferenceFreeProView as Markdown

A diagnostic event reports something an engineer should know while the PLC keeps running. It is never a fault: the program, the scan and the outputs carry on. Faults (the overrun watchdog, a scan fault) are separate fault events.

Type Raised when Severity
RANGE_CLAMPED A subrange counter grew: stores outside a subrange were clamped to the bound. At most one event every 10 seconds, naming each variable that grew. See Set the project compile settings. none (shown as a warning)
LICENCE_EXPIRING The licence’s end date is 30, 14, 7 or 1 day(s) away. Once per licence and step. low, medium, high, critical
LICENCE_EXPIRED The licence’s end date has passed: the PLC runs eaxPLC Free. critical
LICENCE_EXPIRY_CLEARED A warned licence no longer ends within 30 days (renewed, replaced or removed). info

The licence end date is checked at start, every 10 minutes and after each licence install or removal. See Watch the licence end date.

Every event is:

  • logged by the runtime;
  • audited as DIAGNOSTIC / <type> in the PLC’s audit trail;
  • kept for the Studio: the last 200 events, read with GET /api/diagnostics/events;
  • published on NATS plc.<id>.events, beside the fault events, when the PLC is connected to a broker. eaxScada reads only the fault types on this subject and ignores the others: a diagnostic event raises no eaxScada alarm.

The events are read-only information. Nothing reads them back into the PLC.

The Diagnostics & Events panel at the bottom of the Studio reads the PLC’s events every 5 seconds and adds each one to its list, with:

  • Time: when the PLC raised the event (not when the Studio read it);
  • Severity: CRITICAL and HIGH in rose, MEDIUM and LOW in amber, INFO in blue; RANGE_CLAMPED is shown as WARN, in amber;
  • Event: the type, for example LICENCE_EXPIRING. Empty for the Studio’s own lines. Hidden by default in windows narrower than 1024 pixels: Columns shows it;
  • Log Event Message: the event’s text.

The panel filters, sorts and exports to CSV as any Studio table. Clear empties the Studio’s list only; events already read are not shown again. After the PLC restarts, the Studio reads its events from the start.

Any signed-in user. Also over the NATS API. Read-only.

Query Meaning
since Return the events numbered after this one. 0 or absent: every event kept. Not a whole number: 400.

Any method other than GET answers 405.

{
"boot": "4f1c09a2b7e3",
"seq": 2,
"dropped": 0,
"events": [
{
"seq": 2,
"type": "LICENCE_EXPIRING",
"plc": "plc-01",
"version": 0,
"total": 0,
"severity": "medium",
"licence": {
"id": "LIC-2026-0042",
"edition": "performance",
"expires_at": "2026-12-11T08:00:00Z",
"days_left": 14,
"expiry_state": "expiring",
"step": 14,
"loses": ["masters", "mqtt_inputs", "xref_checks", "dvr", "rt_tuning"]
},
"msg": "licence LIC-2026-0042 (eaxPLC Performance) ends on 2026-12-11 (14 days left). ...",
"at": "2026-11-27T08:00:00Z"
}
]
}
Field Meaning
boot This run of the PLC. A new value means the PLC restarted and numbers its events from 1 again: read again with since=0.
seq The number of the last event raised in this run (0: none yet).
dropped Events dropped in this run because they came faster than they could be stored (see below).
events[] The kept events after since, oldest first; at most 200.

Each event has:

Field Meaning
seq Its number in this run, from 1.
type One of the types above.
plc The PLC’s id.
severity info, low, medium, high or critical; absent for RANGE_CLAMPED.
msg The text. A licence event says what the next configuration change and the next start lose, and that the program, the scan, the outputs and the applied buses keep running.
at When it was raised (UTC).
version, total, grown RANGE_CLAMPED: the program version, the total clamp count, and each variable’s increase since the last event. grown is absent when empty.
licence Licence events (not LICENCE_EXPIRY_CLEARED): id, edition, expires_at, days_left, expiry_state, step (30, 14, 7, 1; 0 when expired) and loses.

The message published on plc.<id>.events is the same event without seq.

The PLC hands each event to a queue of 64 places and returns at once; one task of its own stores the events and publishes them on NATS. When that queue is full (a broker that does not take messages, for example), the next events are dropped and counted in dropped: the PLC never waits for a reader. Events are never raised from inside the scan cycle, and the scan, the outputs and the watchdog are not affected by any reader of these events. The log and the audit trail record every event, dropped or not.