Skip to content

What's new in eaxPLC

eaxPLCReferenceFreeProView as Markdown

The changes for the next eaxPLC release. Read the upgrade notes (data model, deploy, fieldbus Apply, licence end date) before you upgrade a production PLC.

MQTT, Sparkplug B and NATS UNS: the right quality after a short stop or start

Section titled “MQTT, Sparkplug B and NATS UNS: the right quality after a short stop or start”

Every edition, 29 November (eaxPLC merge 17f3e84; safety: the quality downstream systems see).

  • A stop or start shorter than 250 ms no longer leaves values with the wrong quality. The publishers look at the PLC’s quality every 250 ms, while each changed value goes out with the quality of its own sample (192 Good while the program scans, 64 Uncertain while the PLC is stopped or faulted). A short stop between two looks could publish values Uncertain; the next look found the PLC running again and republished nothing. A running PLC then kept showing them Uncertain until they changed, and after a short start a stopped one could keep showing values Good. Publish to an MQTT broker
  • Now a value published with another quality than the last full republish’s makes the next look republish every value, with the quality at that moment. The same in the three publishers: MQTT JSON topics, Sparkplug B (after the birth) and the NATS UNS of a PLC runtime.
  • Unchanged: the 250 ms look, the quality codes, the refresh period, and the quality a network input adds to the variables it drives.

Upgrade notes: quality after a short stop or start

Section titled “Upgrade notes: quality after a short stop or start”
  1. After a short stop or start, every value is published once more. A subscriber sees one burst of messages with the current quality, as after a longer stop.

Watchdog trip worded for operators; Studio grids and dates follow the language

Section titled “Watchdog trip worded for operators; Studio grids and dates follow the language”

Every edition, 21 November (eaxPLC merge c4740b5; safety: the trip decision is unchanged: same thresholds, same moment, same safe outputs).

  • The watchdog fault message is reworded for operators. It names the rule that tripped and its limit first, for example “overrun watchdog: one cycle took 21.56 ms, over the 20.00 ms maximum (late start: the operating system held the scan back 20.56 ms; the program ran 0.002 ms) - outputs set to safe values, program stopped”. The overrun count is shown only on a count trip. The program’s execution is in ms with 3 decimals. The message no longer ends with “; start late X ms, budget Y ms”. This is the text of the fault, the WATCHDOG_TRIP audit record, the NATS fault event and the log line. What a trip record says
  • The header pill reads “WATCHDOG - STOP” after a watchdog trip. Its tooltip gives the banner’s words in the Studio’s language. Before, it read “FAULT - STOP” with the PLC’s English message. Other faults keep “FAULT - STOP”.
  • The trip banner names the rule too, for example “One cycle lasted 20.04 ms, over the 20 ms maximum: the scan woke 19.04 ms late (the operating system held it back). The program itself ran 0.003 ms.” A count trip says how many cycles in a row ran over 110 % of the period.
  • Data grids switch language without a reload. Column titles, the grid’s labels, the quick-filter placeholder, worded cells, row action buttons and the empty and loading texts change at once. Sort, filters, quick filter and scroll stay. Fixed: after a switch, the “no rows” text no longer shows over a grid that has rows.
  • Dates, times and counts are in the Studio’s language, not the browser’s: log, revision and audit times, the cycle recorder, the real-time monitor, the safety targets, and the cloud, compare, fieldbus and MQTT pages. The key name “Tab” in the code editor’s help stays as printed on the key, in all five languages. Choose the Studio language
  1. A tool that matches the watchdog sentence must read the last_trip fields instead. The fields are unchanged: trigger, reason, cause, the times, and the fault’s program (“overrun watchdog”).

Licence: a warning before the licence ends

Section titled “Licence: a warning before the licence ends”

eaxPLC Standard and Performance licences with an end date (a trial key, for example), 21 November. Watch the licence end date

  • The end date in GET /api/licence: new expiry_state (ok, expiring at 30 days or fewer, expired), days_left (rounded up; only for a licence with an end date) and loses (what the licence’s edition adds to eaxPLC Free). A perpetual licence is ok with no days_left.
  • Diagnostic events LICENCE_EXPIRING at 30, 14, 7 and 1 day(s) left (severity low, medium, high, critical), LICENCE_EXPIRED (critical) and LICENCE_EXPIRY_CLEARED; logged, audited as DIAGNOSTIC / <type>, checked at start, every 10 minutes and after each licence install or removal. Their text names what the next configuration change and the next start lose; the program, the scan, the outputs and the applied buses keep running.
  • Studio: the Expires row of Licence & edition shows the days left (amber, then rose once ended) with a notice; administrators get a status-bar marker from 14 days before the end and once it has passed.
  • Unchanged: the running edition, the scan, the outputs, the watchdog, the fieldbus approval stamps and deploys. The support and security-update dates raise nothing.
  1. An expired licence now keeps its verified id, licensee, edition, nodes and expires_at in GET /api/licence. Its state stays invalid and the PLC runs eaxPLC Free: the licence is shown, never granted. A tool that took any edition in the status as granted must check state first.
  2. DiagnosticEvent JSON gains severity and licence; grown is omitted when empty.

Diagnostics & Events: the PLC’s own events

Section titled “Diagnostics & Events: the PLC’s own events”

Every edition, 21 November. Diagnostic events

  • The Studio’s Diagnostics & Events panel shows the PLC’s diagnostic events (RANGE_CLAMPED and the licence events): read every 5 seconds, each with the time the PLC raised it, its severity (critical and high rose, medium and low amber, info blue) and its type in a new Event column (hidden by default below 1024 pixels). Before, only the log and the audit trail had them.
  • New GET /api/diagnostics/events?since=<seq> (any signed-in user, read-only, also over the NATS API): the last 200 events, numbered per run of the PLC, with boot (changes on restart) and dropped.
  • Published on NATS plc.<id>.events beside the fault events. eaxScada reads only the fault types there: no alarm changes.
  • A slow or absent reader never slows the PLC: events are queued (64 places, then dropped and counted), never raised from the scan cycle, and the PLC never waits for a reader.

The Web Studio’s interface is in English, French, German, Italian and Spanish. Choose it from the language button in the top bar, or Tools > Language…: each language is listed in its own name, and menus, toolbars, panels and data tables switch at once. The choice is remembered in this browser; without one the Studio starts in the browser’s language when it is one of the five, else English. Reload the Studio in the same menu redraws everything; it asks first, since edits not saved in an editor are lost (the PLC keeps running).

Since 18 November a language change also reaches what was already drawn, without a reload: the column headers and tooltips of open data tables, their empty and loading texts and their filter menus switch at once, with the columns, filters, sort and scroll kept (a filter menu in use keeps its words until it is opened again). The dates in the project panel, such as the time a POU was checked out (“Oct 16 09:12”), are written in the Studio’s language, and the key names in the code editor’s shortcut help are translated (German Strg, Umschalt, Leertaste; French Maj, Espace, Echap; Italian Maiusc; Spanish Mayus).

Since 20 November the language follows the signed-in person: signed in, the choice is also stored with the user on the PLC (GET and POST /api/auth/prefs, any signed-in role, own user only, in data/security/user_prefs.json), and after every sign-in the stored language wins over the browser’s. Signed out, it stays per browser. The account bar in the status bar is redrawn in the new language at once. Limits: the language is stored by user name, so with --local-users-breakglass a local account and an eaxScada account of the same name share one entry, and in development mode every caller shares the one dev entry. Choose the Studio language

Core engineering, in every edition (eaxPLC Free, Standard and Performance); the new cross-reference checks are in Standard and Performance.

  • Global variable lists (GVL POUs with VAR_GLOBAL and VAR_GLOBAL CONSTANT blocks), used by every POU, initialised before any task runs. VAR_EXTERNAL is optional. Create a global variable list and a structure

  • Data types (DUT POUs): structures, unions, enumerations, subranges and alias types. Subrange stores out of range are clamped and counted (system/RangeClamps), or fault the task with the project setting subrange_violation := 'fault'.

  • Aliases: a symbolic name for a global, a member, an array element or a bit (PumpRun AT Motors[3].Run : BOOL;, Ready AT Status.3 : BOOL;).

  • FUNCTION POUs, called in expressions, and VAR_IN_OUT parameters for functions and function blocks (copy-in, copy-out, at most 4096 bytes).

  • Constant expressions in array bounds, STRING lengths and subrange bounds (ARRAY[1..N*2]).

  • The tag database (Tags): every global and program variable with its scope, type, live value, external access, write range, initial value, address, alias target, unit and description, with in-grid warnings. Signed columns go to the POU’s draft; documentation saves at once, without a deploy. Set external access and write limits, Document variables without a deploy

  • The data types view (Types): every type with its size, members and instances.

  • External access (none, read, read_write) and write ranges, enforced by the PLC on the runtime API, forces, OPC UA, UNS, Modbus TCP and direct-address writes. Data model

  • Member-wise migration: a structure, enumeration or function block type that changes during an online edit or a deploy keeps its instances’ values member by member; renames keep their value with {attribute 'was'}. Online changes to data structures

  • CSV export and import of the tag database, and PLCopen XML exchange of data types and global variables, each with a preview. CSV, PLCopen XML

  • Project compile settings (out-of-range values: clamp or fault; values copied per switch), signed with the program. Set the project compile settings

  • Promote to global: moves program variables into a list; main-program variables keep their storage and live values.

  • New cross-reference checks (Standard and Performance): global-written-several-tasks, global-unused, alias-target-written-directly, fb-uses-global.

  • Full syntax and messages: ST language: phase 3 additions.

  • Writes and forces by path: one elementary member or array element, Recipes[2].Temp_SP, GVL_Line.Recipes[3].Temp_SP, Line2.Valves[3].Cmd, over /api/write and /api/force (HTTP and NATS); Recipes/2/Temp_SP over UNS; member paths as OPC UA nodes. Every access, CONSTANT and range check applies to the leaf. Data model

  • Program settings card in File → Project Settings for the compile settings, with a changed: not running yet state, a chip in the Changes view and a program settings: old → new line in the test’s impact summary.

RETAIN is still not persistent: a cold reset and a power cycle reset it.

A project that uses none of the new features links to the same bytes and the same program hash, keeps its storage and stays in project format 1, so an older PLC binary can still read it. These behaviours change for every project:

  1. New reserved keywords: TYPE, END_TYPE, STRUCT, END_STRUCT, UNION, END_UNION, FUNCTION, END_FUNCTION, VAR_GLOBAL, VAR_EXTERNAL, in any letter case. A variable named Type, Struct or Function keeps running, but the next test or deploy fails until you rename it (the error names the keyword). The PLC reports such names at start (PROJECT_KEYWORD_CLASH, Keyword clash in the tag database). Add {attribute 'was' := 'OldName'} on the new name to keep the value.
  2. CONSTANTs and protected storage are refused by direct address. A write or force by direct address (%MW40, %QX1.2) whose bytes overlap a CONSTANT, or a variable or member with access none or read, is refused and names the variable (409 CONSTANT_READ_ONLY, 403 WRITE_ACCESS_DENIED, 403 FORCE_ACCESS_DENIED). This covers global constants too. Unlocated variables live in %M: an HMI that wrote them by %MW address is affected.
  3. OPC UA writes need the plc.write right, like POST /api/write (Shift_Operator and above hold it by default). An Operator-level OPC UA client without it gets BadUserAccessDenied. The AI assistant’s account can no longer write over OPC UA.
  4. Hidden compiler storage is no longer published. Compiler temporaries (for example LINE2.$TMP0) are removed from the registry, so from UNS, OPC UA and /api/registry.
  5. Forces are released on storage that became access none. A deploy that makes a forced location access none releases the force (FORCE_RELEASED); an online test that would do so is refused (forced_symbol_changes): unforce first.
  6. Subrange, enumeration and alias-type variables can be written and forced by name, as their base type, within their range; an enumeration also by value name ("Run"). They were refused before.
  7. Structures migrate instead of resetting. On a deploy and an online test, an instance whose type changed keeps the members both versions share; only new or changed members get initial values.
  8. The migration cap refuses large changes while running. A switch that would copy more than migrate_cap_bytes (1 MB by default) of migrated members is refused while the PLC runs (migration_too_large), for Test edits and for Build & Deploy; nothing changes. Pause the PLC to deploy it, split the change, or raise the cap.
  9. An initial value on an input-located variable is a compile error (AT %I...): the inputs overwrite it every cycle, so it never showed.
  10. Global STRING variables get their initial value.
  11. Variables created in the Studio are read-only from outside ({attribute 'access' := 'read'}) until you allow more. Existing declarations without an attribute stay read-write.
  12. The project file moves to format 2 at the first data type, global variable list, function or compile setting. An older PLC binary refuses a format 2 project.
  13. Members and array elements are writable and forceable by path from outside (Recipes[2].Temp_SP), within every check on the leaf. Only elementary leaves: a path to a structure or an array answers 400, and so does an index that is not a constant or is out of bounds.
  14. Of a function block instance, only its VAR_INPUTs are writable from outside, by path or by symbol, on every path. Outputs and internal variables are read-only: a write by path answers 400, UNS WRITE_ACCESS_DENIED, OPC UA BadNotWritable, each audited. An HMI that wrote an FB output or internal variable over UNS or OPC UA loses that write. Direct-address writes keep the storage rules.
  15. write_range on STRUCT, UNION and function block members is enforced.
  16. An attribute the PLC does not apply where it is written is a compile error: was on a member, any attribute on a FUNCTION’s variables, on VAR_EXTERNAL or on a TYPE, an attribute before VAR_GLOBAL, or one before no declaration. They were warnings before.
  17. {attribute 'network'} is accepted with a warning: reserved for networked tags (a later version): not applied.
  18. A bit alias of an integer that has a write range is read-only from outside (Ready AT Status.3 : BOOL when Status has a write_range).
  19. Out-of-range writes onto subrange or enumeration members, or onto elements of a range-limited array, are refused over UNS, OPC UA and Modbus TCP. They were accepted before.
  20. /api/deploy, /api/project/deploy and /api/rollback answer 409 with a code when refused for migration_too_large or online_edit_active, audited as refused.
  • The PLC generates a diagram’s ST itself, byte for byte the editor’s, and refuses a save whose ST is not the diagram’s: the code that runs is the ladder the editor shows. A save without generated ST gets it from the PLC. Ladder diagrams and their generated ST
  • Diagrams that cannot be generated are refused, with the rung, the element and the reason, in the editor and on a save. Before, an unknown block became a comment and an unknown element was left out or guessed.
  • Diagrams use global variables through VAR_EXTERNAL in their declaration; the editor shows the global’s address.
  • Migration keeps global variable lists and running ladder units: a running text with {gvl ...} lists becomes GVL POUs, and a running unit that is exactly a data/ladder diagram’s becomes that LD POU.
  1. A save that sends gen must send the diagram’s ST. Any other text is refused (400 PROJECT_INVALID, gen is not the ST of the diagram, with the first line that differs). A client that sent its own ST for a diagram must leave gen out (the PLC generates it) or send the editor’s.
  2. A diagram the PLC cannot generate cannot be saved through the project API (400, the diagram cannot run: …). Through /api/ladder it is saved without ST and is not linked.
  3. Stored LD POUs are not regenerated. One saved without ST stays out of the link until it is saved again; one saved with an older Studio’s ST keeps it.
  4. Diagrams migrated from data/ladder are linked: the next deploy compiles them, and a task that calls them runs them. Before, they were left out (LD PROGRAM without generated ST).
  • TOF.ET holds PT after the off-delay (13 November): when the delay ends, Q turns FALSE and ET keeps the value it reached until IN rises again, as IEC 61131-3 specifies. It used to go back to 0 in the cycle after Q turned off. Function blocks

Upgrade notes: connecting to eaxScada’s broker

Section titled “Upgrade notes: connecting to eaxScada’s broker”
  1. Connect an eaxPLC runtime to eaxScada’s broker with its device NKey (-nats-nkey, the seed eaxScada creates in data/security/nkeys/<plc-id>.nk), not with -nats-user / -nats-pass or -nats-token (13 November, with eaxScada of the same day). A runtime that connects with a user name, a password or a token is a user of the broker: it may publish its values on uns.telemetry only when its role has a rule that names uns.telemetry (> no longer grants it), and it gets no JetStream. A message whose subject does not name the tag of its payload is dropped by eaxScada.
  1. A program that tests TOF.ET = 0 to see that the off-delay has ended now sees ET = PT instead and never becomes true after a delay: test NOT Q (or ET >= PT) instead. ET is still 0 while IN is TRUE, before the first delay and after a reset. A screen or HMI that shows a TOF’s ET shows PT after the delay instead of 0.
  • Deploy settings the PLC enforces itself, per project: Require e-signature to deploy (on for new and existing projects) and Require a signed review approval to deploy (off by default). They apply to every path that loads a program: HTTP, NATS and deploys eaxScada forwards. Deploy settings

  • Signed review approvals. With the review setting on, the PLC loads a program it has not deployed before only with an approval of exactly that program, signed by eaxScada’s key, which the PLC already pins for sign-ins. A version the PLC deployed before (its own deploy ledger) can always be rolled back to, signed and audited. Deploy settings: the review approval

  • Project Settings and the deploy dialog in the Web Studio: File → Project Settings shows and changes the settings (always signed); Build & Deploy, Deploy LD and Roll back say what the PLC will ask for, with the program’s sha256 and a read-only signer. Set the deploy settings

  • eaxScada’s review page of a PLC program shows the PLC’s own gate. Review screens and PLC programs before deploy

  • Reviewed programs deploy from the Web Studio. With the review setting on, the deploy dialog asks eaxScada (through the PLC, POST /api/deploy/review-approval) for the approval of exactly the program being deployed and attaches it: Review approval attached: review #N, approved by …. Without an approved review it says No approved review for this program and sends nothing. Set the deploy settings

  • Reviewed rollbacks. POST /api/deploy/review-approval takes {rollback_commit} (a stored version’s commit id, 7 to 40 hex digits) instead of {source}, exactly one of the two. The PLC reads that version’s program from its own version store, the same text POST /api/rollback loads, never from the request. Roll back fetches the approval of that stored version from eaxScada and attaches it, so a PLC with Require a signed review approval to deploy on accepts a rollback to a reviewed version.

  • Request the review from the Web Studio. A project deploy, an online test or a rollback refused for want of an approved review opens Request review: the request names the project revision or the stored version, never the program text, and the PLC forwards it to eaxScada with your own credential (POST /api/deploy/review-request; Lead Engineer or above, never the AI co-pilot, never an eaxCloud remote session). Nothing on the PLC changes. Request the review from the Web Studio

  • A refused e-signature is told from an ended eaxScada session (6 November, safety: authentication). A deploy, rollback or other signed change checks the person’s password at eaxScada. A wrong password stays a refused signature: the dialog shows “electronic signature required for …: …” and the person stays signed in. When eaxScada no longer has the person’s session, the Studio now asks them to sign in again and sends the request once more, instead of showing a wrong password. Set the deploy settings: troubleshooting

Upgrade notes: what now behaves differently

Section titled “Upgrade notes: what now behaves differently”
  1. The e-signature of deploys and rollbacks can now be turned off, per project, by an engineer with their e-signature (audited). It stays on after the upgrade: nothing changes until someone turns it off.
  2. Changing the deploy settings always needs an engineer’s e-signature, on or off, and is audited (CONFIG / DEPLOY_POLICY).
  3. With “Require a signed review approval to deploy” on, a program the PLC has not deployed before is refused without a valid approval (409 review_approval_required, 403 review_approval_invalid); the running program is untouched. The setting is off after the upgrade.
  4. A PLC in standalone or development mode trusts no approval key: with the review setting on, it loads only versions it deployed before.
  5. Approvals are valid for 5 minutes, and the PLC’s clock must agree with eaxScada’s within about 2 minutes.
  6. To accept a new eaxScada key, delete the pin file (--token-pin) and restart the PLC: the same key is trusted for sign-ins and approvals.
  7. An unreadable data/deploy_policy.json fails closed: both settings count as on until an engineer saves them again.
  8. A Web Studio deploy with the review setting on is sent only with an approval: when eaxScada has no approved review of exactly that program (or cannot be reached), the dialog stops and nothing reaches the PLC. A program the PLC deployed before still needs none.
  9. Refused deploys and rollbacks are recorded in the PLC’s audit trail (DEPLOY_REFUSED, ROLLBACK_REFUSED), including a missing or wrong e-signature; each program that starts running is recorded as DEPLOYED_PROGRAM (the deploy ledger).
  10. A signed request without an eaxScada session answers a plain 401 (“not signed in to eaxScada: sign in again to sign …”), no longer a refused signature: when eaxScada says it has no session for the person (401 code: "no_session", an older eaxScada’s “a signed-in user is required to sign”, or a 401 without a readable answer), the PLC treats the request as not authenticated and the Studio asks the person to sign in again, then sends it once more. Before, this was shown as a wrong password and the person could not sign until they signed out themselves. A refused signature (403, 400, or an older eaxScada’s 401 with a refusal text) stays a refused signature (403, the person stays signed in), and a lockout stays a refusal (eaxScada counts the failures). Works with an older and the current eaxScada; standalone PLCs (local users) and break-glass signatures are unchanged. An integration that signs PLC requests should handle 401 as “sign in again”. Deploy settings: refusals

MQTT and Sparkplug B inputs (network I/O, not for safety functions)

Section titled “MQTT and Sparkplug B inputs (network I/O, not for safety functions)”

eaxPLC Standard and Performance (not eaxPLC Free). A new fieldbus bus type, MQTT broker, maps MQTT JSON values and Sparkplug B metrics onto %I inputs only. Connect MQTT and Sparkplug B inputs, MQTT input quality and limits

  • A quality signal the program sees, required on every entry: a quality bit (TRUE only while Good; Uncertain and Stale are FALSE) or the source’s status bit; optional status code, timestamp and age. Staleness (max_age_ms) is decided in the scan. On not Good the program sees the last value, a substitute or zero.
  • Exact or refused: a value out of range, a fraction into an integer, NaN or a BOOL other than 0/1 is Bad and never copied.
  • An MQTT input never drives a safety target: 422 SAFETY_TARGET on the configuration, 409 MQTT_INPUT_SAFETY_TARGET on a deploy, a rollback, an online test or a local safety-target list; eaxScada’s signed list or an unreadable list stops the covering buses; a conflicting bus is not started at start-up. Outside writes onto MQTT-driven inputs are refused with IO_INPUT_DRIVEN.
  • Sparkplug B: aliases from the births, no value before a birth, NDEATH ignored only when both bdSeqs are present and differ, Uncertain after a sequence gap until the next NBIRTH, optional rebirth request (at most once per 30 s), retained messages ignored.
  • Broker security: an unencrypted broker on another computer is refused unless allowed with a signed reason; the password and client key are write-only. The broker’s access rules are the trust boundary.
  • Limits: 1000 messages/s per source and 10 000 per bus by default, 256 KiB and 10 000 metrics per payload. A simulated PLC never connects; the AI co-pilot cannot configure, test or browse.
  • New routes POST /api/fieldbus/mqtt/test and POST /api/fieldbus/mqtt/browse (engineer).
  1. Downstream quality. A variable wholly inside an MQTT entry’s value is published by the NATS UNS and the MQTT publisher with the worse of the PLC’s quality and the entry’s, and republished when only the entry’s quality changes. Variables no MQTT entry drives are unchanged.
  2. OPC UA quality. The OPC UA server joins the entry’s quality too: such a variable is read with the worse of the two as its status (Good, UncertainLastUsableValue for Stale, Uncertain, BadCommunicationError, BadNotConnected, BadConfigurationError or Bad), and its subscriptions are notified when only the entry’s quality changes. An OPC UA client that showed these values as Good now sees them Uncertain or Bad while the source is. The status mapping
  3. IO_INPUT_DRIVEN covers MQTT entries: outside writes onto any byte or bit an MQTT entry writes are refused.
  4. A source that never marks itself as simulated is treated as real.
  5. OPC UA Read: value and status from the same cycle. A Read used to serve the value from an image copy shared by the reads of the last 20 ms while the quality was read live, so a Read just after an MQTT input turned Good could return its last Bad value with Good status. The copy is now reused only while no input’s quality changed; a quality that changes during the Read is read again with a new copy, and after 3 tries the worst quality seen is served. A Read costs a fresh image copy whenever an input’s quality changed since the last one. OPC UA Read

Driven inputs: advertised read-only, simulated inputs

Section titled “Driven inputs: advertised read-only, simulated inputs”

Outside writes onto inputs a fieldbus, an MQTT source or a simulator drives are refused with IO_INPUT_DRIVEN on every outside path. Constants, outside writes and forces

  1. Driven inputs are advertised read-only. A variable whose storage a fieldbus, MQTT or simulator input drives is listed "writable": false in GET /api/registry and without the write bit in its OPC UA access level, at bit level and following every fieldbus Apply. While the PLC does not know which inputs its buses drive, every %I variable is listed read-only. A client that offered a write on such a variable now greys it out; the write was already refused.
  2. Writes across a fieldbus Apply are checked again. A write queued before an Apply and landing after it onto an input the new configuration drives is dropped at the cycle boundary, never written, and audited IO_INPUT_DRIVEN. The client had already been told the write was queued.
  3. Simulated PLCs (eaxsim) refuse outside writes onto their simulated inputs, with IO_INPUT_DRIVEN naming the model port (eaxSim model port T1.level_m -> %IW0). A simulated PLC without a registered simulator input map refuses every outside write into %I. A test that wrote a simulated sensor from outside must force it instead.

Fieldbus: an Apply restarts only what it changes

Section titled “Fieldbus: an Apply restarts only what it changes”

In every edition (7 November, safety: fieldbus I/O). A fieldbus Apply used to stop every device of every bus and start them all again, so any change paused all I/O and showed the program zero inputs and FALSE status bits on devices nobody had touched. An Apply now compares the new configuration with the running one: unchanged devices keep their connection and process images and exchange their I/O without a gap; a changed Modbus TCP or EtherNet/IP device restarts alone; an EtherCAT line, a CANopen bus or an MQTT connection restarts as a whole when one of its devices changes; a bus whose own settings change restarts alone. The Studio’s status line shows Last Apply (“1 kept running, 1 restarted”) and opens the list of devices with the reason of each restart. Apply fieldbus changes without stopping the other devices

  1. Unchanged devices keep running across an Apply. Their inputs and outputs are copied to and from the same %I / %Q addresses on every cycle, without a zero. A program or a test that relied on an Apply resetting every device (all status bits FALSE for a moment) no longer sees that on unchanged devices.
  2. What restarts. A device is its (bus id, device id); names change nothing, a renamed id is a removal and an addition. Modbus TCP and EtherNet/IP: the changed device alone (the EtherNet/IP bus keeps its I/O port open). EtherCAT, CANopen, MQTT: the whole bus when one of its devices changes. A change to a bus’s own settings (type, enabled, local IP, interface, cycle time, bit rate, SYNC, master node id and heartbeat, the MQTT broker connection) restarts that bus only. Restarted and started devices begin with zero inputs and their status bit FALSE until their first good exchange, as at any start; removed and disabled devices stop as before. What restarts
  3. Every device still restarts after a change of the PLC memory layout (CPU tier), for a bus type the per-device apply does not know, and when nothing was running (first start, after a halt); the result says full (with the reason, and the log warns) or start. An Apply that changes MQTT secrets reconnects every MQTT bus. When every device restarts
  4. A refused configuration changes nothing, as before: the whole configuration is validated and every device prepared before anything stops. Applies run one at a time.
  5. New in the API: PUT /api/fieldbus answers apply (mode per_device | full | start, reason, at, the counts, and per device bus, type, device, action kept | started | restarted | stopped | disabled, why); GET /api/fieldbus has last_apply (kept in memory, until the PLC process restarts). Members are only added. The log names every device started, restarted or stopped. HTTP API
  6. The Apply dialog’s text now says which devices restart; the reason and the e-signature are asked as before.

Real-time scan on Linux: steadier 1 ms cycles

Section titled “Real-time scan on Linux: steadier 1 ms cycles”

Linux only, eaxPLC Performance (the edition with real-time tuning), 10 November (safety: scan timing); Windows and the other operating systems are unchanged. When the scan is pinned to one CPU (--rt-cpu N, or an isolated CPU the PLC picks itself), the PLC now keeps the rest of the process from being squeezed onto too few CPUs, and keeps the scan’s CPU awake:

  • The number of CPUs the PLC uses stays fixed while the pinned scan runs. Before, the runtime re-counted it every second and, on a two-CPU computer, fell to one: the API, Modbus and the cycle recorder then ran only when the scan paused, and cycles of up to 18 ms followed. It returns to its usual value when the scan leaves its loop.
  • CPU idle states are held off while a pinned real-time scan runs (--rt-cpu N --rt-priority P), so the scan’s CPU never has to wake up before a cycle. Idle CPUs poll instead of sleeping, which uses more power. Without the rights for it (not root), a warning is logged and the scan runs as before.
  • The scan yields every 8 ms by default in a pinned real-time scan (was 2 ms); --rt-yield-us still sets it.
  • The scan thread is restored when it leaves the loop: it gets its former CPUs and scheduling policy back, so no later work runs pinned at real-time priority.
  • Unchanged: the overrun watchdog and the overrun detection, and every run without --rt-cpu.

In technical terms: the fenced scan sets GOMAXPROCS to the runtime’s count plus one, and a pinned SCHED_FIFO scan holds /dev/cpu_dma_latency at 0 µs; rt.applied lists gomaxprocs M and cpu idle states off.

Measured on a two-CPU thin client (Debian 13, PREEMPT_RT kernel, scan at 1 ms on CPU 1) with eaxScada polling 1,000 tags/s on the same computer: in a 24 h soak, 0.40 % of cycles overran, the worst cycle took 10.2 ms, and the watchdog never tripped. Before the change, 10-minute runs under the same load gave 2.1 % overruns and a worst cycle of 18.7 ms.

  1. More power on a pinned real-time scan. With --rt-cpu N --rt-priority P, the CPUs no longer enter their idle states while the scan runs; the request is released when the scan leaves its loop or the PLC stops. Idle CPUs poll instead of sleeping, which uses more power.
  2. The default yield of a pinned real-time scan is 8 ms (was 2 ms). Set --rt-yield-us 2000 for the old value. Command-line reference
  3. rt.applied (and realtime) lists two more items: gomaxprocs M and, for a real-time scan, cpu idle states off. A script that compares the list exactly must allow them.

Modbus TCP server: reads from the last cycle

Section titled “Modbus TCP server: reads from the last cycle”

14 November (safety: values operators see). The PLC’s Modbus TCP server answered about one read per scan: each read waited for the next cycle boundary, one at a time for the whole server. At a 10 ms scan that was 75 to 80 reads a second, and a SCADA that polled register by register got fewer than 100 tags a second.

  • Reads are answered at once from a copy of one scan. At each cycle boundary, while clients read, the scan copies the ranges they read. A read is answered from the last copy: every value of one answer comes from the same cycle, at most about two cycles old.
  • A read after your own write sees it. When a connection has written, its next read waits for a copy made at a boundary after the write. A connection never reads an older image than one it already read.
  • A read still waits for a boundary the first time a range is read, when the copy is older than two cycles, and for a read larger than the copy holds. A stopped PLC is read at once.
  • Reads are capped at 3,000 a second per server, all connections together. Reads over the cap wait; none is refused.
  • Writes are unchanged: checked, queued, and applied at the next cycle boundary.

Measured on a workstation, scan at 10 ms, 8 clients: 2,913 reads a second with the cap, and no overrun in 5 minutes. Without a cap the same clients reached 22,700 reads a second and caused 53 overruns: that is why the cap is there.

  1. A Modbus read can show a value up to about two cycles old, never a mix of two cycles. Before, every read waited for the next boundary. A client that writes and then reads on the same connection still reads its write.
  2. A client that reads more than 3,000 times a second waits. Its reads are slowed, not refused.

15 November (eaxPLC 4cf1bc5).

  • --modbus-max-reads N on plc-server and plc-runtime sets the Modbus TCP server’s read cap: the most read requests (FC 1 to 4) answered per second, all connections together. Default 3000; 0 means no limit. Reads over the cap wait, none is refused; writes are never limited. The start-up line of the Modbus TCP server gives the cap as max_reads_per_s.
  • A negative value stops the start-up with “–modbus-max-reads -1: must be 0 (no limit) or more” and exit code 2.
  • The reads answered from the last cycle’s copy are counted: eaxplc_modbus_server_snapshot_reads_total on /metrics and modbus_server.snapshot_read_requests_total in /api/metrics/snapshot. Metrics

Overrun watchdog: a warning without real-time setup, and the cause of a trip

Section titled “Overrun watchdog: a warning without real-time setup, and the cause of a trip”

Every edition, 18 November (safety: scan timing; the trip decision is unchanged).

  • An amber “No real-time setup” chip in the Studio’s status bar when the overrun watchdog is on with a maximum cycle, the PLC runs its scan without real-time scheduling, and max_cycle_ms minus the period is under 20 ms: one OS delay can then stop the PLC. With the default maximum cycle, the larger of 20 ms and 20 periods, that is a scan faster than 950 Hz. The chip opens a card with the numbers and the fixes, any one of which is enough: start the PLC with --rt-priority, use a slower cycle, or set max_cycle_ms to at least the period plus 20 ms. The real-time monitor shows the same line. The facts are read-only API fields: rt_warning in GET /api/plc/watchdog and watchdogRT in GET /api/stats. The “No real-time setup” warning
  • A trip says why the cycle was too long. The trip record (last_trip) carries period_ms, exec_ms, exec_known and cause: long_execution (the program itself ran too long), late_start (the program fitted; the cycle started late, through the OS or I/O) or unknown (the first measured cycle after a start or a resume). The fault message, the WATCHDOG_TRIP audit record and the fault event published on NATS say which, with the program’s run time and the period. What a trip record says
  • Unchanged: when the watchdog trips, its thresholds and defaults, and the order in which the safe outputs are set.
  1. The trip message is longer: after the cycle time and the overrun count it now says the cause, for example “late start: the program ran 0.40 ms, the other 24.60 ms of the interval were spent outside it (OS scheduling, I/O), period 1.00 ms”. A tool that matches the whole message must allow the new part; last_trip has four new fields.
  2. A PLC that shows the chip runs as before. The warning only reports; check the real-time setup of a fast PLC before relying on the watchdog without it.

Overrun watchdog: the trip in numbers, and a trip banner

Section titled “Overrun watchdog: the trip in numbers, and a trip banner”

Every edition, 20 November (safety: scan timing; the trip decision is unchanged: same thresholds, same moment, same safe outputs).

  • last_trip gains exec_us, start_late_us, budget_us and reason (late_start, long_execution, both or unknown). start_late_us is the interval minus the larger of the program’s execution and the period; budget_us is max_cycle_ms for a long cycle and 110 % of the period for consecutive overruns; both is a long execution with a start also more than one period late. What a trip record says
  • The fault message ends with “; start late X ms, budget Y ms”, in the PLC’s fault, the WATCHDOG_TRIP audit record and the NATS fault event. A trip with both causes opens “long execution and late start: …”.
  • GET /api/stats has watchdogTrip: the trip behind the fault in force, null once an operator’s start cleared it or when the fault is not a watchdog trip.
  • The Web Studio shows a trip banner (bottom right): “Watchdog stopped the PLC”, the reason in words, the outputs’ state, and the measured execution, start lateness, budget and period. Close it with the button or Escape; it returns only for another trip. In the five Studio languages.

Upgrade notes: overrun watchdog trip detail

Section titled “Upgrade notes: overrun watchdog trip detail”
  1. Breaking JSON change: last_trip.reason is now trigger. The sentence that said which rule tripped (“cycle longer than the configured maximum” or “consecutive overruns”) moves to trigger. reason now holds late_start, long_execution, both or unknown. A tool or script that read last_trip.reason for the sentence must read last_trip.trigger.
  2. The fault message is longer again: it ends with “; start late X ms, budget Y ms”. A tool that matches the whole message must allow the new part.

Real-time scan in containers and on one CPU

Section titled “Real-time scan in containers and on one CPU”

Linux, 14 November (safety: scan timing). The PLC now chooses the scan’s CPU among the CPUs its own process may use: in a container, the container’s cpuset (--cpuset-cpus).

  • --rt-cpu N outside those CPUs is refused, with the log line “Real-time: –rt-cpu refused, the CPU is not one this process may use; the scan runs unpinned” and the CPUs allowed. Before, the pin failed (“invalid argument”) and the scan ran unpinned.
  • Without --rt-cpu, an isolated CPU (isolcpus=) among those CPUs is used, as before. When the host isolates CPUs but the process may use none of them, the scan is pinned to one of its own CPUs, if at least one other is left for the rest of the PLC: the new rt_mode linux_allowed, with the reason. Before, the PLC picked a host CPU it could not use.
  • A PLC with one CPU logs a warning: “this process has one CPU only; 10 ms determinism needs at least two CPUs”. It then runs the loop with 2 Ps (GOMAXPROCS 2) unless GOMAXPROCS is set, and rt.applied lists gomaxprocs 2 (one CPU).

Upgrade notes: real-time scan in containers

Section titled “Upgrade notes: real-time scan in containers”
  1. A refused --rt-cpu is logged as a warning, and rt.rt_mode is default with the reason. Give the container the CPU, or pin to one of its CPUs.
  2. rt.rt_mode has a new value, linux_allowed. A script that checks the mode must allow it.
  3. Give a PLC at least two CPUs for a 10 ms scan. On one CPU the runtime’s own threads share the scan’s CPU.

The headless runtime runs the scan as plc-server does

Section titled “The headless runtime runs the scan as plc-server does”

Every edition, 11 November (safety: scan timing). The headless runtime, plc-runtime, now starts and runs its scan with the same code as plc-server:

  • One shared start. The memory policy (the Go memory limit, which covers the cycle recorder up to its cap), the recorder’s reserve and the re-measure when a program is loaded are the same in both programs.
  • No forced memory collection every 10 seconds. plc-runtime used to return free memory to the operating system every 10 s; each time this forced a full collection, and on a pinned 1 ms scan it caused late cycles and scans of several milliseconds. The memory limit now keeps a low-RAM device within bounds, as in plc-server.
  • The legacy NATS telemetry is opt-in, as in plc-server: see the upgrade note below.
  • Unchanged: the overrun watchdog and the overrun detection, the scheduler, the real-time CPU fence, and Windows.

Measured on a two-core industrial thin client with a real-time Linux kernel, scan at 1 ms pinned to one CPU, 10 minutes each: plc-runtime had 46 late cycles out of 606,000 and plc-server 48; the scan time max was 0.4 ms in both, and the watchdog never tripped. Before the change, plc-runtime had 99 late cycles and scans of up to 9 ms. For a 1 ms scan the two programs are now equivalent: choose plc-runtime when you need no Web Studio on the device.

  1. With --nats, plc-runtime no longer publishes plc.<id>.telemetry.delta, plc.<id>.telemetry.snapshot and plc.<id>.rungs.powerflow unless --nats-legacy-telemetry is given, the same as plc-server. Nothing in eaxScada or the Studio reads them; UNS telemetry, the birth and status subjects are unchanged. A tool of your own that subscribes to them needs the flag. Command-line reference
  2. plc-runtime no longer returns free memory to the operating system every 10 seconds. Its resident memory can stay higher between collections; the Go memory limit bounds it, as in plc-server. Check the memory of low-RAM devices after the upgrade.

The Web Studio has a new page, File > Cloud, like eaxScada’s Settings > Cloud: the link’s state, and enrolling with a one-time token or disconnecting with a reason. New route /api/cloud: GET (any signed-in user, no secret in the answer), POST {url, token} and DELETE {reason} (an Administrator, from this PLC’s own pages; never the AI co-pilot, never an eaxCloud remote session, not even the status). No e-signature: the link is outbound and read-only, nothing from the cloud reaches the scan. Audited CLOUD_ENROLLED, CLOUD_ENROL_FAILED, CLOUD_DISCONNECTED; the token is never logged, journaled or returned. Link a PLC to eaxCloud

When eaxCloud refuses an enrolment, the CLOUD_ENROL_FAILED journal entry now gives the HTTP status and the cloud’s answer, on one line of at most 512 bytes, with enrolment tokens, JWTs, NKeys and any other long opaque string replaced by [redacted]. This fixes a leak: a cloud answer that echoed the request used to put the enrolment token in the journal and in the error shown in the IDE. The IDE’s error codes are unchanged.

eaxsim -report FILE and eaxsim-cloud now evaluate a scenario’s expect checks too, with a verdict on the simulation and a new route GET /v1/sims/{id}/report. eaxsimctl wait now exits 1 when a checked run ended with a verdict other than pass (it exited 0 for any ended run); the new eaxsimctl report prints the report. A CI gate example is in examples/sim/ci/. eaxsim scenario checks

Registry: symbol size and bit, and the servers listening

Section titled “Registry: symbol size and bit, and the servers listening”

GET /api/registry adds, per symbol, size (bytes of the process image from offset; a STRING includes its 2-byte length) and bit (for a BOOL, its bit of the byte at offset), and a servers object: modbus_tcp with its port while the Modbus TCP server listens, else null; ethernet_ip_adapter is always null (eaxPLC’s EtherNet/IP is a scanner, not an adapter). Fields are only added; access to the route is unchanged. eaxScada uses them to recognise a Modbus TCP or EtherNet/IP channel that reaches this PLC, and refuses remote writes over such a channel to an eaxPLC that does not report them.

The --uns-prefix help and the CLI reference give Plant/Line2/plc-01 as the example.

In every edition (eaxPLC Free, Standard and Performance).

  • Search the project (Ctrl+Shift+F): every POU (ST code, declarations and comments; a ladder POU’s declaration, operands and rung comments), the variables’ documentation, the task configuration and the fieldbus mapping, with match case, whole word and regular expressions; results in a grid that jumps to each match. Replace writes only the drafts of POUs you have checked out, after a preview, all or nothing, with one undo; never a revision, never the running program, never a deploy. Library and sealed POUs are read-only. Search and replace across the project
  • Quick-watch on hover in the ST editor and the ladder: value, type, quality and force state, Add to watch and Add to trend. Read-only. Watch a value on hover
  • Trend sets: named lists of variables saved in the project and versioned with it (a rollback restores them), with Chart, Values and Split tabs, bad samples drawn as gaps, PNG and CSV. The Trace view is now Trends. Save trend sets
  • Compare and merge: any two of the running program, the saved project, your drafts and a revision of the program history, with an ST line diff and a ladder rung diff; take a POU, rungs or declarations into your own draft. The running program is never changed. Compare and merge versions
  • Choose the columns of a Studio table (16 November): every data table of the Studio has a Columns button before CSV, a menu with a check box per column, by mouse or keyboard (arrow keys, Home, End, Escape), with Reset to go back to the defaults. The choice is remembered per table in this browser. The actions, pinned columns and the row’s own identity stay (“Always shown”), and the last column shown cannot be hidden. A pick changes the table in place: filters, sort and scroll stay. CSV exports the columns shown, as before. Below 1200 pixels the button keeps its icon, its count of hidden columns and its tooltip.
  • I/O map and watch list in narrow windows (16 November): they start with their secondary columns hidden, and Columns shows them again. The I/O map hides Bits, Writes / reads, Entry and Dir below 1440 pixels, and Type and Device below 1280. The watch list hides Address and Type below 1440 pixels, and Forced, Prepared Value and Recipe Preset below 1280; a forced value keeps its FORCED badge in the live value. The watch list’s toolbar fits at 1024 pixels: the filter box narrows first. I/O map
  1. While the PLC runs a program that is not a project revision (after a deploy from outside the project or a rollback to another text), the compare reports the running program’s own units: a POU’s state can change from same to changed, added or unknown. Before, every POU unchanged since the last project deploy compared same.
  2. GET /api/project/compare accepts draft and rev:<commit> for a and b (was 400).
  3. With ?pou=, b_text of an ST POU is its saved text (was its linked unit).
  4. New route POST /api/project/pous/{name}/take: one side’s POU, rungs or declarations into the caller’s own draft (engineer, lock holder only).