Skip to content

Releases

v0.23.1 — IO-Link PdoU32 safety fix, redundancy log and Logix writer fixes

Choose a tag to compare

@github-actions github-actions released this 30 Nov 23:39

Patch release: IO-Link safety fix, redundancy log fixes, and a Logix writer fix

v0.23.1 is v0.23.0 plus seven fixes. Nothing else from main is in it. CLI only: the VS Code extension and the HMI kits are unchanged.

Fixed

  • Safety: writes to a port's PdoU32 are dropped (#1550, #1553). In tags mode, on an IO-Link port that has a port device, a write to the master's Port{n}_PdoU32 point (the same process data out under another type) no longer reaches the master. Only the port device's gate writes a port's process data out. The tag stays declared, so the project still loads. The write is dropped and logged once with the fix, and the tag reads Bad while it holds a value other than zero. Affected: a v0.23.0 project in tags mode (no device-commands: members) with an IO-Link master, a port device on one of its ports, and a program or setpoint writing that master's PdoU32 point or the gate's own process-data-out tag. Projects without a port device are unchanged. The naut check warning for such a write follows in v0.24.
  • IO-Link ports (#1544, #1547). A port asks for the push its gate needs, and its valid flag goes true only over an image the master shows. naut check knows the port types.
  • Redundancy operation log (#1469, #1471). The log streams the open, syncs once per batch, and catches up by pages. A follower commits only at the leader's commit index and answers only what was proved.
  • Takeover cause (#1511). A takeover's cause is never the previous takeover's.
  • Logix writer (#1557). A structure starts at its TYPE's initial values. An init: the Logix writer cannot spell is now a logix/init refusal at write and deploy, where it was written as zero before.

Upgrading from 0.23.0

  • The vote-protocol wire version is unchanged, so a v0.23.0 and v0.23.1 pair can be upgraded one controller at a time. Existing oplog files open without an on-disk migration.

v0.23.0 — sign-in and audit, hot takeover, alarm paging, live I/O changes

Choose a tag to compare

@github-actions github-actions released this 27 Nov 23:43
2334b04

Sign-in and audit, redundant pairs that hand over hot, alarm paging, live I/O changes, and a wider Siemens target

Highlights:

  • Securing a controller. An auth: block gives roles, areas, local users, personal access tokens, browser sign-in, sign-in with your company login (OIDC), and a fresh password for the risky actions. naut auth init and a self-signed certificate make it six commands. Every write is journalled, and naut audit can verify the journal against a Postgres copy.
  • Redundant pairs. A pair elects through a vote protocol with a witness, and no longer needs experimental: true. The standby keeps the leader's state, so a takeover can go on hot. naut redundancy switchover, opt-in failback, a takeover hold, and peer links that are encrypted and pinned per box.
  • Alarms that reach people. Email, SMS, voice, webhook and push pages, escalation and on-call rosters, a one-use acknowledge link, chatter and flood handling, a master alarm database and ISA-18.2 reports.
  • Live I/O changes. Stage, validate (with a probe of each device), apply and revert an I/O configuration over HTTP or from a config screen, kept across a restart or takeover.
  • Substitute values. An operator can hold a value in place of a bad sensor's, with an expiry, a new substituted quality, and a journal row.
  • Siemens S7-1500. naut siemens deploy, show, verify, diag and serve, and a much wider SCL writer. Parts are proven only offline or on one bench CPU: see Experimental.
  • Critical fixes folded in: OPC UA reads now respect auth:; the first scan waits for live inputs; the automatic operator screens show bad tags and a dead field device.
  • Also: IO-Link, device profiles, plant model and asset pages, plant cameras, an I/O checkout with signed sign-off, operator notes, installable HMIs with push, naut deploy over slow links, and a Learn track with interactive lessons on the docs site.

Upgrading from 0.22

Redundant pairs

  • This release changes the vote protocol, and it is the first release that ships it. A rolling upgrade across a protocol version stops control once: upgrade the standby, then the leader, and the witness last, as the guide says. From here on, a later release reads this release's frames, so a pair's rolling upgrade keeps a leader. (#1079 to #1355, #1324)
  • The default lease is 1 s, not 2 s. naut check warns of a pair lease under 1 s. A lease mismatch between members raises redundancy.version-mismatch or nautilus.witness-lease. (#1324)
  • Peer links are TLS by default, keyed by NAUTILUS_PEER_TOKEN. A token under 32 characters is refused at start; the peer listener binds the peers: address, not every interface (NAUTILUS_PEER_LISTEN overrides); each box's key is pinned at first contact. Replacing a box takes naut redundancy unpin <name>. redundancy.peer-tls: off is a loud lab opt-out. (#1230, #1368, #1369)
  • The voter state file (quorum.state) moved to format 10, and a state file of a newer format stops the start. Going back a release after a voter wrote it needs the rollback steps in the guide. A state file copied from another box counts as lost: the copy comes up uncommissioned (redundancy.box-changed). Two uncommissioned controllers wait for the operator. (#1034, #1016, #1018, #1345, #1349)
  • FIRST_SCAN() is TRUE after every takeover, except a hot one, where it is FALSE. New system functions TAKEOVER_SCAN, HOT_TAKEOVER, PEER_READY and TAKEOVERS: a POU or tag with one of those names is refused by naut check. (#1273, #1350)
  • Sparkplug on a pair works, and only the leader holds the edge node session. A pair with alarms: can raise the critical nautilus.pair-leaderless. (#1386, #1438)
  • The Kubernetes Lease mode refuses a live I/O apply until v0.24.0 (the next minor release; 0.23.1 keeps the refusal): a replica on 0.22 or older drops what a live apply keeps. A pair (peers:) is not affected. Until then, deploy the I/O change instead. (#1013, #1442)
  • A pair's operator state goes through the log: alarm acknowledges, shelves, substitutes, browser sessions and checkout runs. A standby forwards to the leader's announced API port and refuses writes until it has a verified answer. (#1033, #1260, #1211)

Auth and audit (nothing changes for a project without auth:)

  • With auth:, every write route, every read under /api/, the live stream, OPC UA reads and writes and Sparkplug commands are checked, /healthz and /readyz answer without a credential, and an empty or all-commented auth: is refused. An unset or shared service-token secret refuses to start. (#1035, #1071, #1095, #1107)
  • OPC UA reads now need read when auth: is set. A project with an auth: block, an OPC UA server and anonymous: none (the default) stops serving anonymous OPC UA clients (the None endpoint included): they read and browse nothing. To keep them reading, set anonymous: viewer under auth:, or have the client sign in with a UserName token, or map its certificate under auth.opcua-certificates. naut check and naut run warn when a project is in this state. (#1131, #1447)
  • The users file (users.json, argon2id) must not be readable by others, and a state directory others can write is refused. A pair needs the same users file on both members. (#1041, #1046)
  • Force, edit, activate, deploy, config, users and override ask for the password again within auth.elevation (default 15 m). The HMI kit needs createAuth() (see the hmi 0.11.0 notes). (#1088, #1090)
  • Every HTTP write is journalled to ./audit (audit:). While the journal can't be written, elevated actions are refused (503) and nautilus.audit-journal is raised. Write bodies are capped at 16 MiB. (#894)

Controllers and drivers

  • A controller's first scan waits, up to 2 s, until its field drivers have read their devices (each device delivered, or failed its first connect). FIRST_SCAN() sees live inputs, and nothing runs or is sent before then; tasks wait for the main scan's first read. Past 2 s it starts anyway, with a WARN naming the drivers, and their inputs read notConnected. Projects with no field driver (memory, replay, simulations) start on the first tick, as before. While it waits, GET /api/state shows scan.inputsWait. (#786, #1448)
  • The automatic operator pages show bad data. A label or equipment reading a bad, not-connected, stale or substituted tag wears a BAD, STALE or SUBST badge, and the default shell's pill now reads Controller linked / Controller offline (that browser's link only), with a red N devices down pill and a banner when a driver is in error. Previously every field tag could be notConnected and the page still showed a green "Connected". (#1056, #1444)
  • A built controller takes only version and help arguments (anything else exits 2), and it refuses to start when its tag API address is held. (#970)
  • Start-up outputs are decided against the device. Modbus, OPC UA client, EtherNet/IP, OptoMMP and the in-process test faces compare each output with what the device holds at the first live read, and write it once if it differs or can't be read. Before, the value was recorded as sent and never written. An OPC UA client that re-establishes a session commands every output again (reassert-on-reconnect: false turns it off). (#1124, #1128, #1139, #1142, #1065)
  • Quality has a fifth value, substituted, and an unknown quality token reads as bad everywhere, where the HMI kit once drew it good. A switch over Quality in your own code needs the case. (#952)
  • A Sparkplug host metric published as null reads Bad; a command the program has superseded is withdrawn rather than sent after a takeover; Stop waits 2 s, not 10, on a hung broker. (#949, #947, #950)
  • Redfish and SNMP drivers are behind the liveness write gate: a command queued before a scan hang goes out on reopen only while younger than StaleAfter. (#1441)
  • ack-required: false alarms page while active and stop on return to normal; naut check refuses a level that pages a person with no address for its channel; alarms.chatter.page and alarms.flood.group-pages are on by default (safety class and critical alarms always page individually). (#1185, #1283)
  • Device profiles: a required modbus.max-connections; an OPC UA row connects through a driver: section (security None until set); naut check warns of devices with no alarms:. (#987, #971, #992, #1399)
  • naut check is stricter: a => output binding, an FB input and a VAR_IN_OUT follow the assignment type rule (REAL into INT is refused); a FOR pass outside its variable's type faults the scan; a reviewed alarm must name who and the day; a plant model tag path is checked to the UDT member. (#1381, #1383, #1440, #1192, #1244)
  • naut agents: the generated AGENTS.md follows what the project uses, so adding the first screen or ladder file makes the copy stale. (#1101)
  • Go API: only io, runtime, server, acceptance and a few named seam interfaces are stable; the rest is internal. (#926) io.InputsReadier now also holds a standalone controller's start, not only a redundancy takeover: a third-party driver written to the old takeover-only meaning could delay a standalone start by up to 2 s, with a WARN. New: runtime.Options.InputsWait (TakeoverInputsWait is a deprecated alias), runtime.DefaultInputsWait, ScanStats.InputsWait, io.InputsPending. (#1448)

Siemens (naut siemens)

  • naut check --target siemens runs the SCL writer's rules. Generated blocks take the prefix naut_ (target.siemens.block-prefix), and a software import never touches a block outside its group.
  • A download keeps the CPU's data unless its layout changed. The TIA agent (tiad) must be reinstalled for data types and the download decisions, and naut says so when it is old. (#1348, #1343)
  • Not every construct is written yet: the remain...
Read more

v0.22.0

Choose a tag to compare

@github-actions github-actions released this 18 Nov 23:05
0a3df46

Controllers that answer only who they should, real-time safety, and deploying from naut

Highlights:

  • A nautilus controller now answers a request only when it is addressed to localhost, an IP address or a name you allow, or when the request carries its token. This closes DNS rebinding and cross-site reading and writing. Read Upgrading below before you update a controller you reach by name.
  • A real-time task can no longer take a box down.
  • Retained values survive a power cut.
  • naut deploy installs, updates and rolls back a controller over SSH.
  • nautilus can be a PROFINET IO device. Not yet proven on hardware: tested on simulated segments only.
  • naut siemens serve puts a running S7-1500 on the nautilus API. Not yet proven on hardware: tested against a fake CPU only.
  • naut run builds and serves your operator screens itself.

Upgrading from 0.21

  • Upgrade: before 0.22.0, any web page open in a browser that can reach a controller could read its tags, alarms, history and program source (wildcard CORS, with or without a token). On a token-less controller it could also write, force and push programs, through DNS rebinding. There is no configuration-only fix for the reads.
  • Anything that reaches a controller by a DNS name must have that name in NAUTILUS_ALLOWED_HOSTS, or send the token. (#812, #818, #826, #846, #849)
    • The rule. A controller now answers a request only when its Host is localhost, an IP address or a name in NAUTILUS_ALLOWED_HOSTS, or when the request carries the controller's token (NAUTILUS_TOKEN, sent as Authorization: Bearer or X-Nautilus-Token). This covers reads, the live stream, the dashboard and the HMI screens, as well as writes. A request by any other name gets 403.
    • What it affects. Kubernetes Services, historians, dashboards, mDNS names (epic1.local), and reverse proxies that keep the browser's Host (tailscale serve, nginx Host $host).
    • Browser pages. A dashboard or HMI screen opened in a browser can't send the token, so its name must be listed even on a controller with a token.
    • Deployments from naut new --deploy list their Service names automatically.
    • The historian. naut historian, naut pull --host, naut snmp serve --from and naut redfish serve --from send NAUTILUS_TOKEN from their environment. naut historian's own API follows the same rule: with server.historian: http://historian:9100, set NAUTILUS_ALLOWED_HOSTS=historian on the historian. The controller's /api/history proxy no longer forwards the token to the historian.
    • Cross-origin access. The tag API no longer sends Access-Control-Allow-Origin: *. A page on another host gets CORS only if its name is allowed or it sends the token.
    • Logix facade. naut logix serve --listen defaults to localhost:8080, and refuses a non-loopback address without NAUTILUS_TOKEN.
    • The VS Code extension sends nautilus.token on every request from 0.21.2 (below), and only to nautilus.runtimeUrl. A token from your user settings goes to a runtimeUrl that a workspace chose only after you answer Send it to … once for that address. In a remote window (dev container, SSH, WSL), any runtimeUrl but the default needs that approval. In an untrusted workspace, its own runtimeUrl and token are ignored.
    • Unchanged: reaching a controller by IP address or on localhost works as before.
  • An implicit narrowing conversion is refused, and integer stores wrap at the declared width. (#800)
    • A program that narrows a value without saying so no longer compiles. That covers wider integers into narrower ones (DINT into INT, a computed d + 1 into an INT, a literal the type can't hold), and bit strings. It also covers LREAL into REAL and DINT into REAL.
    • The refusal applies at every store: assignments, function block inputs, => output bindings, FOR bounds and initial values.
    • The error names the conversion to write, for example cannot assign DINT to INT implicitly; write DINT_TO_INT(…).
    • Integer arithmetic now stores what a PLC stores: INT + INT = 60000 stores -5536, and shifts and rotates act on the operand's declared width.
  • Ladder rungs run top to bottom, each its own network. (#784) A rung above the rung that calls a block now reads that block's output from the last scan, as on a PLC and as the same program does in ST. Before, it read the value from later in the same scan.
  • A typed role: output tag with no init: starts at its type's zero, as setpoint and state tags already did. It's held from the driver until its first write. (#698)
  • naut check fails on screen errors. It now checks every screen, including pipe ends, equipment ids, tags, and components that won't compile or would throw on mount. A project that passed naut check on 0.21 can fail it, and so fail CI. (#671, #675)
  • naut builds a missing HMI app itself. When server.hmi names a build output that isn't there, naut now builds the app from its closed package set: Svelte, the HMI kit, the 3D kit, three and Threlte. An import from outside that set fails naut build, where 0.21 warned and fell back. (#668)
  • The dashboard moves to /_nautilus/ when the project has screens. With *.mimic.json files and no server.hmi, naut run now serves the operator screens at /. (#668)
  • The naut binary grows from about 41 MB to 61 MB, because it now carries the packages it builds screens with. So does every controller naut build makes. Building from source needs Go 1.25. (#668)
  • Real time: a task with priority: now runs under an RLIMIT_RTTIME bound, and naut refuses some unsafe pinnings at start. See Real-time safety below. If a task now starts at normal priority, check its scan.sched and naut's banner for the reason. (#839, #847, #851)
  • A PLCnext project with a redundancy: section is refused at load and by naut check, until redundancy is designed for PLCnext: a standby would drive the outputs. (#832)
  • Under redundancy:, a standby's scan-fed tags now read Stale, not Good. A standby doesn't scan, but its frozen values showed Good in /api, the live stream, OPC UA and screens. Now driver-bound inputs, every global a program writes, and the measured-dt tags read Stale on a standby, and on a new leader until its first input read is back. A driver's own non-Good verdict still stands. A setpoint the logic only reads keeps the operator's value and quality. A screen shows the quality badge on a driverless standby too. (#925, #924)
  • groov EPIC / OptoMMP: without redundancy:, a hung or starved scan now lets the I/O unit's communication watchdog act. (#886, #865)
    • With watchdog: set, once no scan has completed for 4 s (about 5–8 s into the hang), the driver holds no session, the unit trips, and outputs with a watchdog value go to it. Without watchdog: it keeps reading and writes nothing.
    • When the scans resume, it reconnects, counts the trip in __WatchdogTrips and commands every output again. Before, the driver's polls kept the watchdog fed, and outputs held their last command through the hang.
    • While the gate is held, the EPIC keeps the configuration the driver set on it (custom area, stream, watchdog time): with no session, nothing restores it until the scans resume or naut run stops cleanly. Without watchdog: the driver sends no output writes while held, but a reconnect still writes its configuration.
  • PLCnext gets a write gate: a hung or starved scan stops all of the driver's writes. (#866, #863)
    • shm with its watchdog: the shim zeroes the outputs (not counted in __WatchdogTrips).
    • gRPC, or shm with output-watchdog: 0: the outputs hold, with an error log, Health.GateHolds and an "outputs held" status row.
    • The BusConductor handshake checks the gate before each request; a deferred handshake finishes once the gate opens. When the gate reopens, nothing is written until the program's next push.
  • groov EPIC: a writable Scratch Pad element that another client has overwritten now reads Bad until it holds the program's command again, as digital outputs already did. (#761)
  • Screens:
    • A component prop named state beside $state(…) is now a compile error, with its file and line (rename the prop). (#667)
    • In the default isa101 look, pipes are single 4 px lines; look="realistic" keeps the walled tubes. (#682)
  • tools/deploy/naut-release.sh is retired. Use naut deploy. (#764)

Added

Real-time safety (#836): a runaway real-time task is stopped before it can starve the box.

  • The bound. Before a task takes SCHED_FIFO, naut sets RLIMIT_RTTIME (200 ms soft, 500 ms hard; NAUTILUS_RT_LIMIT_MS changes it). A task that hits the limit is demoted to normal priority. If the bound can't be set, the priority is refused rather than taken without it. (#839)
  • A priority watchdog demotes a task after 50 scans in a row over its period, or one scan running longer than 20 periods. Set it per task with priority-guard: {overruns, scan-multiple}. (#847)
  • Pre-flight refuses pinning a task beside another program's higher-priority real-time thread on the same CPU. You'll see an error and REAL-TIME REFUSED on the banner; share-cpu: true overrides it. It also warns when a kernel network thread on that CPU runs below the task. (#851, #853)
  • naut-launch and the PLCnext shim set the same bound before they take priority. (#852, #854)
  • Liveness. A loop starved between scans now counts as stuck for the redundancy elector, the systemd watchdog and the local gate. (#859)
  • tools/jitter stops a run the box can't keep up with and marks the report INVALID. (#857)
  • priority-guard: {rt-limit} sets the bound per task, from 10 ms to 200 ms. It can only tighten the 200 ms default, never loosen it: a larger value is refused, and so is one on a task without priority: ...
Read more

v0.21.0

Choose a tag to compare

@github-actions github-actions released this 10 Nov 23:05
9d409cd

naut agents, a browser playground, and a redundancy lease fix

A small release. naut agents adds or refreshes the AI-assistant guidance in a project that already exists, the leader lease no longer keeps a hand-made Lease's duration, and nautilus now builds to WebAssembly for the playground at nautilus.joyautomation.com/playground/.

Upgrading from 0.20

  • naut check may warn about AGENTS.md. A project whose AGENTS.md came from an earlier naut new can now get a warning that its guidance is older than this naut's, and so can one whose CLAUDE.md doesn't import it. Run naut agents to refresh it. The exit code is unchanged, and a project with no AGENTS.md, or with one you wrote yourself, gets no warning. (#646)
  • Redundancy: a renew or takeover now rewrites the Lease's leaseDurationSeconds to the replica's own duration. Before, a Lease created by hand, from a GitOps manifest or by another tool kept its stored duration. If you manage the Lease object in Git, expect the field to change to the replica's duration (4 s by default) on the first renew. (#648)

Added

  • naut agents [dir] writes AGENTS.md, plus a CLAUDE.md that imports it, or refreshes them from the text built into this naut. The nautilus text sits between markers, so a project's own notes above or below it are kept. An AGENTS.md someone else wrote is refused; -append adds below it and -force replaces it. -check [-json] writes nothing and exits 1 when something needs doing. naut new now writes through the same code. (#646)

Fixed

  • Leader lease duration (#635, #648):
    • A long stored duration delayed failover. On the groov EPIC bench a Lease stored at 50 s made the standby wait 50 s after the leader was paused (observed).
    • A short or zero stored duration could cut a live holder's lease short. Expiry is now judged by the longer of the stored and the replica's own duration. This case was found by reading the code, not observed.
  • naut fbd graph names the file's own PROGRAM or FUNCTION_BLOCK when ST library blocks are declared above it, and marks a FUNCTION_BLOCK body so the editor offers no tag actions on its locals. (#638)

Also on main

  • WebAssembly build (cmd/naut-wasm). It runs the browser playground: VS Code, the extension and nautilus, with nothing to install. The CLI verbs it shares (ld/fbd/sfc graph|edit, compose, test -list) moved into shared packages, and their output was checked byte for byte against the previous binary over every example. (#637, #640)
  • The lift-station example now has lead selection, full-window P&ID and 3D views with pop-out controls, a diagnostics page, and US units (gpm). (#642, #643)

The release carries the CLI for Linux (amd64, arm64, armv7), macOS and Windows. The PLCnext in-process I/O shim is attached as nautilus-plcnext-io_0.21.0_linux_armv7.tar.gz, and logixd.zip with install-logixd.ps1 as before.

With the VS Code extension and the HMI packages

The stable VS Code extension 0.20.0 works with this release. The next pre-release, 0.21.1, adds Toggle Bit (Ctrl+T) and Set Live Value / Force from diagram elements (#638), and offers to add or update AGENTS.md, which needs this naut (#646). It goes to stable as 0.22.0 after a few days on the pre-release channel.

@joyautomation/nautilus-hmi stays at 0.9.0 and @joyautomation/nautilus-hmi-3d at 0.3.1. The kit's Tank shapes (vessel, open, pit) are on main for its next version.

v0.20.0

Choose a tag to compare

@github-actions github-actions released this 05 Nov 17:41
b6f6a59

OPC UA writes and an OPC UA client; outputs that hold up through outages and failovers

The OPC UA server now takes writes from trusted clients, over secure endpoints with a certificate store you manage with naut opcua certs|trust. Every limit listed for it in 0.19 is fixed. A new opcua-client driver reads other OPC UA servers. The write path is now the same for every way in: HTTP, OPC UA and Sparkplug commands are all converted and range-checked against the tag's declared type. The Modbus, EtherNet/IP and OptoMMP drivers were hardened for outages and failovers, and a hung scan now closes the write gate. VAR RETAIN keeps state across a restart. naut check gained diagram structure warnings and refuses several mistakes it used to let through. Both OPC UA features are still preview. The groov EPIC and PLCnext targets are still experimental. The EPIC's new standby behaviour was run on the bench unit with two replicas on a real Kubernetes Lease (below); the PLCnext changes in this release have not been run on the controller yet.

Upgrading from 0.19

These can make a project that passed 0.19 fail naut check or naut run, or behave differently while running.

naut check and naut run refuse more

  • The ST parser no longer skips what it does not understand. In ST, and in the ST that LD, FBD and SFC compile to, these are now parse errors in both naut check and naut run:

    • an unclosed (* comment
    • a POU with no END_PROGRAM
    • two operands in a row: s := a b; used to run as s := a; followed by b;
    • a name alone as a statement
    • a string that is not closed on its own line
    • an unknown $ escape

    "…" is now a WSTRING literal, held as a STRING; it used to be dropped character by character. $' no longer ends a '…' string. (#610)

  • An output with no init: that its program reads before writing is a naut check error. Such a read faulted with undefined tag at run time, and a seal-in faulted on every scan. The error sits on the tag's line, names the program, and tells you to add init:. If the read only comes first when a WHILE or a FOR runs zero times, it is a warning instead. naut run is unchanged. (#568)

  • An input or output whose driver binding differs only in case is a naut check error. One example is a tag m1_kw against a binding M1_KW. Such a tag never received the driver's value, or never reached the device, and nothing said so. naut run still starts. (#547)

  • Tags a FUNCTION reaches through VAR_EXTERNAL are now bound like the calling program's own: seeded, typed and snapshotted each scan. As a result, a FUNCTION or FB that declares a tag with a different type than the program does (Mode : INT against Mode : REAL) now fails to load. Before, the later declaration silently replaced the earlier one. A FUNCTION that reads an undeclared tag is now a naut check error. (#615)

  • Two programs that declare the same enumeration TYPE differently now fail to load. "Differently" means different members, values or default member. Before, a tag of that type started from whichever declaration compiled last. (#520)

  • A library VAR_GLOBAL RETAIN global that the manifest declares as an input or output now fails to load ("never retained"). The same applies to retain: true on an input or output. (#494)

  • sparkplug.writable patterns read [ as an array index. [n] matches that index and [*] matches any index. Character classes are gone:

    • Any other [ (for example Fill[VW]alve) now fails naut check and stops naut run.
    • A pattern like Pump[12] now names an array element, which a command never writes, and naut check warns. (#577)
  • A Modbus source host: that carries a port is refused. host: 10.0.0.5:5020 used to be dialed as 10.0.0.5:5020:502 and never connected. It is now a load error asking for port:. naut modbus import splits the address for you. (#473)

  • New warnings, same exit code. naut check now reports ladder, FBD and SFC structure warnings (LD001–LD006, FBD001–FBD003, SFC001–SFC002) and warns on an integer where a TIME is expected (PT := 30000). It still exits 0:

    • Most hand-written ladder will show LD005, a rung with no comment.
    • To switch a rule off, add check: {disable: [LD005]} to the manifest, or put (* @allow LD005: reason *) in a POU's header.
    • naut logix import writes a file-wide @allow, so imported ladder stays quiet. (#574, #497)

The runtime behaves differently

  • Inputs from a communications driver start at init: or zero instead of faulting. This covers the Modbus, EtherNet/IP, Sparkplug host, OPC UA client, SNMP, Redfish and Prometheus drivers. Before, a program that read a tag from a device that was down at start faulted on every scan, which also stopped any local-I/O logic in the same program. Now the tag reads init:, or the zero of its type, with quality NotConnected until the first real value arrives. Check the driver's __Online tag instead of relying on the fault:
    • A tag that nothing gives a type stays unseeded, and naut check warns about it.
    • The plcnext, optommp, replay and memory drivers keep the loud fault.
    • The eip driver gets an eip__Online companion, and its read no longer errors while the controller is down. Before, in a drivers: set, that error starved every other driver.
    • Fault transitions are now logged once each way per task. (#458, #459)
  • A STRUCT member's := initial value is now used. Before, every member started at zero. This applied to a manifest tag of the type without init:, a VAR of the type, a VAR_TEMP reset and an FB's internals. A manifest init: still overrides member by member. (#461)
  • VAR RETAIN now keeps its value. In 0.19, RETAIN was accepted and did nothing. With a retain: section, every program's VAR RETAIN variables and every library VAR_GLOBAL RETAIN global are saved and restored on a restart and on a takeover. A counter or edge detector (CTU, R_TRIG) declared there keeps its edge memory. Timers and PID start over. (#494)
  • A program's write to one struct member or one bit no longer overwrites the rest. The scan used to commit the whole struct tag, or the whole integer word, when the program assigned any member or bit. That put back the copy it took at scan start over a write that landed mid-scan from HTTP, OPC UA, Sparkplug or another task. Now only the members and bits the program assigned are committed, and the program still wins on the same member or bit. Setting the sign bit of a signed integer (INT.15 := TRUE) now gives the negative value; before, it stored 32768. (#581, #623)
  • A hung scan closes the write gate, with or without redundancy:. A scan still running after twice its period counts as hung; the check never waits less than 1 s or more than 2 s. A scan that genuinely takes longer than 2 s will trip it:
    • Without redundancy:: the Modbus, EtherNet/IP and OPC UA client drivers close their write gate 4 s after the last live check, about 5–8 s into the hang. Their queued writes and Modbus rewrite: keep-alives stop, so a device's own watchdog can act. When the scans resume, the gate reopens and every output is pushed once.
    • With redundancy:: a hung leader stops renewing its lease and hands over, and a hung replica never takes over. (#627)

HTTP API

  • Writes and forces are checked against the declared type. POST /api/tags either converts a value to the tag's declared type exactly or refuses it:

    • An integer outside its type's range, or a fraction of a millisecond to a TIME, gets a 400.
    • A REAL takes no NaN or infinity.
    • An enumeration takes only a member's name or value.
    • The wrong kind of value for a whole tag is still a 422, but a refused write no longer retypes the tag.

    A whole-tag write to a driver-owned input is now a 400, as member writes already were. To hold an input, also with the memory driver, use POST /api/forces. POST /api/forces applies the same checks; before, it held 70000 on an INT. TIME tags accept IEC literals ("T#1m") on writes and forces. (#497, #501, #515, #519)

Sparkplug

  • Edge node commands are checked like any other write. NCMD and DCMD now go through the same path as HTTP and OPC UA writes:

    • A value the declared type can't hold, a value out of range, or a command to a forced tag is refused, logged once per tag and counted in commandsRefused.
    • A command to an input is refused, whatever sparkplug.writable says.
    • A String metric writes only a STRING or an enumeration.
    • A name that is not declared is refused. Before, it created a new tag.
    • A template command is judged member by member.

    sparkplug.writable is now matched against the tag's declared spelling, not the host's. A host can no longer get past a pattern by changing case, so a pattern that relied on the host's spelling may need updating. (#514, #620)

  • The edge node waits for the primary host's STATE after a lost connection. With primary-host: set, after a reconnect the node waits for a STATE on the new connection before it births and replays its store-and-forward backlog. A retained ONLINE still births at once. A UInt32 metric at or above 2^31 is no longer sign-extended. (#462, #503)

  • The Sparkplug host takes every node offline when it loses its broker. Every node and device it tracks goes __Online false at once and counts one __Outages each. Values are kept and bindings read Stale. Each site comes back at its next birth. A command raised during the outage now waits for that site's birth (a device command waits for its DBIRTH), not for the reconnect. A binding whose node is online but waiting for a birth now reads Stale until the NBIRTH arrives. (#549, #575)

Modbus

  • <source>__Online means the device answers, not that TCP is up. It goes true on the device's first answer on a connection. It goes false once every block's l...
Read more

VS Code extension 0.20.0

Choose a tag to compare

@github-actions github-actions released this 05 Nov 17:39
b6f6a59

The fifth stable release, for everyone on the stable channel since
[0.18.0]. Everything below shipped first in the pre-releases 0.19.1 and
0.19.2 (kept in full further down this file) or is new in this release,
and is consolidated here, newest first. Requires naut 0.20.0 or later.

Highlights: export and print diagrams (LD, FBD and SFC as PDF or SVG);
naut on your terminal PATH after the extension installs it, with
consent and undo; structure warnings that point at diagrams that will
draw badly; a component preview pane and page preview for HMI
work; the mimic editor resizes equipment, anchors ports to parts and
switches between the ISA-101 and realistic looks; a first 3D scene
editor
and kind editor to play with; a multi-leg OR in one ladder
step; FBD blocks inserted where you click; and manifest schema for the
OPC UA server, PLCnext and groov EPIC drivers and Logix hardware.

Added

  • Export and print diagrams. nautilus: Export Diagram… writes an
    LD, FBD or SFC diagram (or a Rockwell .L5X ladder) as a paginated PDF
    or as one SVG image; nautilus: Print Diagram… opens the same PDF in
    the system's PDF viewer to print (in a remote window, such as SSH, WSL
    or Codespaces, it saves the PDF instead). Both are in a diagram's "…" menu, on
    the editor's and the Explorer's right-click menu, and in the Command
    Palette. The printout is black on white with no selection, palette or
    diagnostics; pages break between rungs, networks and SFC ranks, never
    through one, and carry the POU's name, the file name and "Page n of N".
    An SFC prints its ACTION bodies after the chart. New settings
    nautilus.export.paper (Letter or A4, by default from the system
    locale) and nautilus.export.orientation. With a controller connected,
    the export can include its live values. Needs no other software: the
    PDF is written by the extension itself.

  • Structure warnings on the diagrams and in Problems. The language
    server reports the shapes that make a ladder, FBD or SFC diagram hard to
    read (LD001–LD006, FBD001–FBD003, SFC001–SFC002) as warnings with the
    rule ID as the diagnostic code, so they show in the Problems panel and
    on the diagrams; each message says what to write instead.
    nautilus.yaml's new check: section (thresholds, rules switched off)
    is in the manifest schema, and one POU opts out with an
    (* @allow ID: reason *) pragma. (#574)

  • Manifest schema: opcua.anonymous-writes, sparkplug-host's
    rebirth-requests, and array indexes in opcua.writable.
    Completion
    and hover for the lab-only anonymous writes switch, the host's switch
    for Rebirth requests, and writable patterns such as Counts[2] and
    Drives[*].Speed. (#555, #575, #577)

  • See a component while you edit it. Open a {Name}.svelte and press
    the preview button in its editor title (or nautilus: Open Component
    Preview
    ): a pane beside the text renders the component for real,
    compiled with the project's own Svelte as you type, not only on save. A
    compile error shows over the last good render instead of blanking the
    pane. Sample props live in the sidecar's new preview.props key
    ({Name}.component.json, created next to the .svelte on the first
    add) and are edited from the pane's props strip: values read as JSON
    when they parse (62, true, [1, 2]), else as text. The pane follows
    the active .svelte editor and zooms 50 to 400 %. The sidecar's
    ports are drawn on the render as dots and edited in the same pane:
    turn ports on in the header, then drag a dot, double-click the
    render to add one on the nearer edge, double-click a dot to remove it,
    or use the panel to rename, delete, set an exit direction or add at a
    free slot — the same gestures as the mimic editor's ports mode. The
    pane is now THE editor for a {Name}.component.json: the file opens
    as plain JSON (hand-editable, diffable, with a schema for hover help
    and validation) with the same preview button in its title, which lands
    the pane on the component it describes — a
    built-in (Tank, Pump, …) rendered from the kit's own registry, showing
    the kit's default ports until the first change writes the project's
    override. Edit Component Ports… opens this pane for every
    component. The standalone Component Editor for sidecars is gone (it
    also ran away sizing a component with a plain HTML root).
    Needs workspace trust, like the mimic editor's user components.

  • Copy Kit Component to Project…. Start your own symbol from one the
    kit ships: pick a kit component (the mimic built-ins first), name the
    copy (MyTank), and its .svelte lands in the project's src/lib as a
    component of the project's own — the kit's source as written, its
    relative imports rewritten to @joyautomation/nautilus-hmi (which
    exports the helpers), a header saying where it came from. A mimic
    built-in's copy gets a {Name}.component.json with the kit's ports
    and sample props, so pipes connect where they did. The copy opens with
    the preview beside it. Register it on a page with
    <Mimic registry={{ MyTank }}> and point equipment at it by name.

  • Preview a page for use. Open a +page.svelte (or +layout.svelte)
    and press its browser button, or run nautilus: Preview HMI Page: the
    project's own npm run dev starts in a terminal on a free port (reused
    while that terminal lives) and the file's route opens in VS Code's
    Simple Browser beside the text. Vite's hot reload keeps it current as
    you type; the dev server is pointed at nautilus.runtimeUrl through
    CONTROLLER_URL, and when nothing answers there the extension offers
    to start naut run . in the project above. The Svelte Inspector is on
    in that server: hold Alt+X in the page (or press its corner button)
    and hover to see which .svelte drew what, click to open it at the
    line — in this window, local or Remote SSH. Works from a Remote SSH
    window (the port is forwarded). Needs workspace trust.

  • A 3D kind editor, and kinds in files of their own. A scene's
    kinds entry may now be the path of a {Name}.kind.json relative to the
    scene ("pump": "hmi/src/lib/kinds/pump.kind.json"), holding the same
    keys an inline entry does, so one pump is declared once and placed in
    every scene; the schema knows the file (nautilus-kind.schema.json,
    derived from the scene schema's kind contract) and the scene editor
    inlines it, captions the kind glTF · file and offers edit kind.
    The file opens as the kind itself: its model on a turntable (T), in
    any look; the model's named objects fill every drive row's mesh menu
    and a name the model lacks is flagged; sample values per member drive
    the meshes and preview the status text without touching the file;
    type, members, model, status, labelAt, bounds and the
    drives (mesh, channel, fields; Add drive, ×) are edited beside it,
    each change one text edit with one drive per line. naut check reads
    the file next to the scene. examples/lift-station's six kinds moved
    into hmi/src/lib/kinds/. Click a part on the model to pick it:
    the part under the pointer lights, a click picks it (again on the same
    spot: the part behind), the panel names it with what it sits in and
    its drives, Add drive starts on it, the Parts list picks by
    name, and a hovered name or drive row lights its part; Esc clears.

  • Ports and anchored pipes (design §3g, slice 3). A kind declares
    ports in its own frame; in the kind editor Add port here puts one
    where the last click landed on the model, facing out of the surface,
    and each port is a mark on the model and a row in the panel (rename,
    at, dir, here, ×). In the scene editor every node's ports
    wear a mark that follows the gizmo; click a port, then another to
    run a pipe — one addPipe anchored at both ends (from / to as
    { node, port }) with an orthogonal route between them as its points,
    so the pipe follows its nodes when they move; the panel lists the
    scene's pipes with ×. naut check and the schema know ports and
    anchors; hmi-3d resolves them.

  • A point by name, and a colour from a number. A port's at and the
    kind's labelAt may be a place on a box — { "part": "Motor", "anchor": "top" }, or "top" for the bounds, with offset — resolved
    once the model is loaded, so it survives a re-export; Add port at…
    offers the faces of the picked part, and each row has a mode menu. A
    tint or emissive drive may be a ramp of [value, colour] stops over
    a number instead of on / off.

  • Blink and pulse, in one click. Two presets in the kind editor —
    Blink on {member} (a glow on the picked part that flashes twice a
    second while the member is true) and Pulse on {member} (the part
    breathes, ±10 % once a second) — each a drive row like any other
    afterwards: every boolean row (tint, emissive, visible) has a
    blink field in Hz, and the new pulse channel has Hz and ±
    ("pulse": { "bind": "Alarm", "hz": 1, "amount": 0.1 }). The schema,
    naut check and hmi-3d carry both.

  • Eject to component… (kind editor header): writes {Name}.svelte
    beside the kind file — a <script module> exporting the contract
    (type, members, bounds, labelAt, ports, status) and an
    instance holding the model and the drive rows as data, rendered by
    hmi-3d's new <ModelNode> — offers to re-point every scene naming
    the file at the component, and opens it beside. Nothing is lost on the
    way out; the file is open ground for anything Threlte. The kind file
    stays.

  • Ask AI… (kind editor header): picks one of five prompts about this
    file — a model from a picture, sensible part names, drives for the
    UDT's members, a variant of the kind, or a stub to finish — and opens
    the editor's chat with it, or copies it (and opens Claude Code'...

Read more

v0.19.0

Choose a tag to compare

@github-actions github-actions released this 27 Oct 23:11
5bb46ec

nautilus on open controllers, and an OPC UA server

naut now runs on two vendor controllers: an Opto 22 groov EPIC and a Phoenix Contact PLCnext AXC F 2152. It drives their I/O directly, with no vendor IDE and no SDK. This release adds a Linux ARMv7 build for both, plus a download of the PLCnext in-process I/O shim. A project can also serve its tags as a read-only OPC UA server, released as a preview. Both controller targets are experimental: everything below was measured on one bench unit of each.

Upgrading from 0.18

  • A REAL that is not a number now renders as JSON null in /api/state and the stream. Before, a single NaN or ±Inf blanked the whole dashboard: /api/state answered 200 with an empty body, and the stream skipped every frame. The program still sees the NaN. A Modbus read that delivers NaN/±Inf now has quality bad. (#429)
  • Logix: a rack alias needs its module. An alias such as Local:1:I.Data.3 or Remote1:1:I.Data.0 is now refused at write time (logix/io-module) unless the project's hardware configuration has that module. Add one with the new target.logix.hardware key. naut logix import --project writes it for you. (#397)

Added

  • groov EPIC: the optommp driver. It reads and writes the EPIC's I/O over OptoMMP (TCP 2001), the same protocol Opto's own CODESYS driver uses on the processor. It reads packed areas (three requests a scan on the bench chassis) and writes outputs with read-back. It reconnects with backoff, re-checks the chassis every 5 s, and reports quality per channel (empty, wrong or faulted module, NaN, dead socket). custom-area, UDP stream and the processor's comm watchdog are opt-in, and priority: runs the driver loop on a SCHED_FIFO thread. With the watchdog on, the driver rewrites every output once the unit may have tripped, so an output doesn't stay latched at its watchdog value. A digital output whose read-back disagrees with its command reads bad. Checked on the bench: naut frozen for 15 s, the unit tripped, and the output was back under naut's command within a second of the resume. naut optommp browse|import writes the manifest and tag file from a live chassis; --modbus keeps the Modbus route. On the processor itself, examples/epic-bench scans in about 1.7 ms at about 4 % of one core. (#437, #438, #448)
  • PLCnext: the plcnext driver. It exchanges the Axioline process image over the firmware's own data-access service. Phoenix Contact's open BusConductor component brings the bus up, so no Engineer project is needed. naut plcnext browse|read|write|tags. (#438)
  • PLCnext: transport: shm, the in-process tier. nautilus_io is a small C process that the firmware's application framework starts. It reads and writes the Axioline frames every 1 ms and shares them with naut through a shared-memory page. The image takes 0.03–0.05 ms per scan instead of about 11 ms over gRPC, and naut's CPU drops from 9 % to 4 %. If naut's outputs are older than output-watchdog (1 s by default), the shim drives the output frame to zero. On the bench, the fail-safe took the heartbeat LED dark within a second of naut being killed. naut plcnext shm [--watch] shows the page and naut plcnext bench measures it. At SCHED_FIFO 80 on its own core, the shim missed no 1 ms deadline by more than 200 µs on a quiet controller. The binary, its ACF files and README are attached to this release as nautilus-plcnext-io_0.19.0_linux_armv7.tar.gz. examples/plcnext-bench has the layout as checked with eyes on the LEDs and a switch on the inputs. Axioline digital modules number their channels byte by byte, so in a manifest channel n is bit:((n+7) mod 16); the guide says so. (#436, #439, #447)
  • Linux ARMv7 build, nautilus_0.19.0_linux_armv7.tar.gz, for both controllers. (#438)
  • OPC UA server (preview). Add opcua: to the manifest and naut serves its tags at opc.tcp://localhost:4840 (set endpoint: to expose it). Tags carry their declared OPC UA types. UDT members and array elements are child nodes. Tag quality maps to status codes, and the source timestamp moves only when the value does. Clients can browse, read and subscribe. The server is read-only: writes answer Bad_UserAccessDenied. Node ids are the tag paths in the project's namespace (ns=1;s=P101.Drive.Speed). The opcua-server row is on /api/drivers and the dashboard. An independent black-box tester ran it through five rounds against a third-party OPC UA client, and its checks now run in CI. See the limits below. (#416, #428)
  • Logix: hardware configuration. target.logix.hardware names an L5X whose <Modules> section the writer carries verbatim. That lets an imported program with I/O aliases download again: on Echo (5580, v38) the rack round-trips byte-identical. (#397)
  • alarm.Engine.Rename lends an alarm a display name for an activation. The journal, /api/alarms, the banner and notifications all use it; the definition never changes. (#408)
  • Plant simulation: servers with more than two PSUs share load across N supplies. (#401)

Fixed

  • SNMP rate tests and a Modbus slave-death test no longer flake under load. (#400, #403)

Known limits of the OPC UA preview

  • A driver input that has never been delivered has no node until its first value arrives, so Bad_NotConnected can't be observed. (#420)
  • A quality change with no value change is visible to a Read but not pushed to subscribers. (#419)
  • A client must open its session through one of the addresses the server advertises. One arriving through a NAT address or DNS alias is refused. (#430)
  • CloseSession keeps the session's subscriptions even when asked to delete them, and a subscription id can be reused after a delete. (#422, #432)
  • A monitored item set to Disabled can still deliver one notification that was already queued when it was disabled. This shows up intermittently.
  • ModifySubscription changes nothing. ModifyMonitoredItems, SetPublishingMode, TransferSubscriptions, TranslateBrowsePathsToNodeIds and Call answer Bad_ServiceUnsupported. (#431, #433)

Known, on the bench

  • Every naut start on the PLCnext logs one undefined tag DI_00 logic error per scan until the driver has published its tags, because the first scan runs before the driver. This comes from the runtime's start ordering, not from the driver.
  • SCHED_FIFO on the PLCnext needs setcap cap_sys_nice+ep once per binary, as root. Copying a new build drops the capability; rt/plcnext-io/README.md has the recipe.

With the VS Code extension and the HMI packages

Use the 0.19.1 pre-release for this release's schema (opcua:, the plcnext and optommp drivers, target.logix.hardware) and a first version of the 3D scene editor (#413) to try out. Stable 0.18.0 still works with naut 0.19.0. @joyautomation/nautilus-hmi 0.8.0 (AlarmSign, #407) and @joyautomation/nautilus-hmi-3d 0.2.x (the paper look, #410) are already on npm.

v0.18.0

Choose a tag to compare

@github-actions github-actions released this 15 Oct 03:59
950f797

Deploy to Logix from the editor, values kept across a download, and a clean import round trip

You can now push an online edit or download a project to a Logix controller from VS Code without leaving the editor. A download now keeps the controller's tag values. An imported Logix project writes back with the same logic. The Sparkplug edge gains an opt-in Sparkplug 3.0 session end and a store-and-forward buffer that survives a restart. All of the Logix work was checked on an Echo controller (Logix Designer v38).

Upgrading from 0.17

  • A function block can no longer be a tag's type. This covers a scalar block, an ARRAY OF TON, a struct with a block member, and a manifest tag that a program declares as one. Each of these is now an error with a message naming the block. An instance is program state, not a tag. A GVL's own block globals still load. (#366)
  • A ladder rung with no coil must end at its last function block. In Start t1:TON(PT := T#5S) Stop, Stop drove nothing and was silently dropped. It is now an error. (#357)
  • Retained online edits: a new deploy now replaces a retained online edit, and a restart of the same build keeps it. The discarded source is kept in the retain store under discardedPrograms. Edits retained by an older version carry no build stamp, so any online edit not pulled into git is dropped on the first restart after upgrading. (#362)
  • Sparkplug edge, broker drop: every reconnect is now a new session with bdSeq+1. The will and the NBIRTH always carry the same bdSeq. Reconnects are immediate, then every 5 s. The driver's connected status now reads false during an outage. (#376)
  • SIGTERM (from systemd or Kubernetes) now shuts down naut run, naut logix serve and scaffolded SDK projects the way Ctrl+C does. Before, they were killed with no final retain save, no lease hand-over and no STATE death. (#390)
  • SNMP: a writable BOOL member needs a set: mapping. Many MIBs use 1/2 for true/false, so 0 is no longer assumed. (#384)
  • Logix writer: some forms Logix computes differently now squiggle instead of being written: a conversion that isn't exact, an integer / whose result meets a REAL (ST and ladder), and an expression bound to a user block's input in ST, which Logix won't build. (#297, #367, #377)

Added

  • Logix deploy from VS Code. Use Push Online Edit to Logix Controller (title-bar button) and Download Project to Logix Controller (the … menu). Progress streams as it happens. A download in Run offers Switch to Program Mode and Download. On Echo, a warm rung edit with the controller in Run takes about 1.5 s, and live values keep streaming. (#375, #388, #393)
  • A download keeps the controller's tag values. nautilus reads the running controller first and carries every unchanged tag across. Timers and counters keep their accumulator, and their preset comes from the project. Tags it had to reset are reported with the reason. Opt out with --reset-values or the nautilus.logix.resetValuesOnDownload setting. (#387)
  • Import round trip with no differences. On the public batch-skid yardstick, naut logix import --project → naut logix write → naut logix normalize --logic --check reports the same logic. New target.logix options make this possible: continuous, all-tags and controller-scoped. UDT and member descriptions and the target's SoftwareRevision now round-trip too. (#374, #380, #382)
  • CompactLogix: the writer emits Logix Designer's own Local module and project header for 25 processors across ControlLogix 5580, CompactLogix 5370 L3 and 5380. The data comes from v38 SDK exports, and each write-back was build-checked. Before, a CompactLogix write-back was refused by Logix Designer. Other processors get a warning. (#389)
  • Sparkplug: primary-host-offline: disconnect opts into the Sparkplug 3.0 session end; the default buffer is unchanged (#363). store-forward-file: journals the store-and-forward buffer so a restart during an outage replays it (#394).
  • Logix conformance set for conversions and division, passing on Echo and in nautilus. (#377)

Fixed

  • After a download, the next online edit uses the edited program's routine. Before, a project with two MainRoutines could pick the wrong one. naut logix serve now closes its logixd session when it stops. (#375)
  • Replay: a member with no recorded data reads Bad, a collapsed window is reported, a failed load is retried, and seek works as a pulse. A 32-bit counter reset is no longer read as a wrap, and SNMP checks sysUpTime. A timed-out Prometheus scrape fails the import. (#384)
  • 3D HMI and plant simulation fixes from the #68 review. (#383)
  • Docs now match the code across ST, ladder, SFC, Sparkplug, online edits and Logix pages. (#357, #358, #360)
  • EtherNet/IP emulator port race. (#381)

With the VS Code extension

Use stable 0.18.0 or the 0.19.0 pre-release. Both require naut 0.18.0 or later.

VS Code extension 0.18.0

Choose a tag to compare

@github-actions github-actions released this 15 Oct 03:57
950f797

The fourth stable release, for everyone on the stable channel since
[0.16.0]. Requires naut 0.18.0 or later.

Highlights: deploy to a Logix controller without leaving the editor
(Push Online Edit and Download Project, with the controller's tag values
kept across a download); an imported Logix project writes back with the
same logic, tags where the export had them, and the right Local module
for ControlLogix 5580 and CompactLogix 5370/5380; conversions and integer
division on a Logix target are written exactly or squiggle; and new
nautilus.yaml options for Sparkplug (primary-host-offline,
store-forward-file). Breaking: a function block can no longer be a
tag's type, and a ladder rung with no coil must end at its last block.

Added

  • sparkplug.store-forward-file in nautilus.yaml. Completion and
    validation for the new option that journals the store-and-forward
    buffer to a file, so a restart during a broker or primary-host outage
    no longer loses it: the next start replays it, marked historical, after
    its first birth. Omitted, the buffer stays in memory, as before.

  • Deploy to a Logix controller without leaving the editor. In a
    project whose nautilus.yaml has a target: logix section, with
    naut logix serve --project at nautilus.runtimeUrl:
    nautilus: Push Online Edit to Logix Controller (a button in the
    editor title bar of a ladder or ST program) replaces the routine's rungs
    in the running controller, as naut logix deploy --online does, and
    nautilus: Download Project to Logix Controller (the title bar's …
    menu) downloads the project, as naut logix deploy --download --yes
    does, after a modal that says it stops the controller, with a choice to
    switch it to Program mode first. Progress shows in a notification and
    the nautilus Logix output channel; live values keep streaming
    throughout. nautilus: Download Program to Controller on a Logix
    server now runs the same online edit. If nothing answers, the commands
    offer to start naut logix serve --project in a terminal.

  • sparkplug.primary-host-offline in nautilus.yaml. Completion
    and validation for the new option that says what an edge node does when
    its primary host goes offline: buffer (the default, as before) keeps
    the session and holds data back, and disconnect ends the session as
    Sparkplug 3.0 has it (NDEATH, reconnect, and birth once the host is
    back).

  • target.logix.continuous in nautilus.yaml. Completion and
    validation for the option that schedules the program in a CONTINUOUS
    Logix task, as the controller it was imported from did; naut logix import --project sets it.

  • target.logix.all-tags and target.logix.controller-scoped in
    nautilus.yaml.
    Completion and validation for the two options
    naut logix import --project now sets, so an imported project writes
    back with the export's tags where the export had them: all-tags: true
    writes every typed manifest tag the Logix target can carry as a
    controller tag, named by a program or not (a tag only an EtherNet/IP
    client writes is still the controller's), and controller-scoped lists program variables, such as
    a timer the export had at controller scope, written back as controller
    tags with their descriptions. Without all-tags, a tag no program names
    is still not written.

Changed

  • A plain Logix download to a controller in Run is refused at once.
    The server reads the controller's mode first and, in Run or Remote Run
    without Program mode requested, answers with the "Switch to Program Mode
    and Download" offer in seconds, instead of after the whole upload,
    import and build (~76 s). A failed mode read does not block the
    download. An online edit's result no longer carries the download-only
    valuesKept and resets.

  • Logix deploys from the editor report sooner and say more. A
    download's summary now shows as soon as the download is verified,
    instead of after the server has reopened the online session for the
    next edit (about 50 s later); that reopening goes on in the nautilus
    Logix
    output channel, and an edit pushed meanwhile waits for it and
    says so. Every summary's time is the whole wait — the first edit's
    includes the minute its online session took to open. A warm online
    edit shows its progress as it happens. A plain Download the
    controller refuses because it is in Run says so in plain words, with
    the SDK's own text in the output channel, and offers Switch to
    Program Mode and Download
    as a button.

  • Download Project to Logix Controller keeps the controller's tag
    values.
    Each tag whose name, scope, type and dimensions are unchanged
    starts with the value it had on the controller; new and changed tags
    start at the project's values, and a timer's or counter's preset comes
    from the project. The modal says so, and the summary after the download
    says how many values were kept and which tags were reset, and why. The
    new setting nautilus.logix.resetValuesOnDownload starts every tag at
    the project's value instead, and the modal says that when it is on.

  • Breaking: a manifest tag can no longer be an array of function
    blocks.
    type: ARRAY[1..2] OF TON used to load; it is now refused, as
    type: TON already was, with tag Timers: ARRAY[1..2] OF TON — TON is a function block; an instance is program state, not a tag. The same goes
    for an array of a FUNCTION_BLOCK the project declares (which used to
    read "unknown type"), an array of arrays of blocks, and a TYPE whose
    STRUCT has a block member; and to a tag with no type: that a program
    declares as any of these (VAR_EXTERNAL Timers : ARRAY[1..2] OF TON;),
    refused as tag Timers: program Main declares it ARRAY[1..2] OF TON — ….
    A project that declared one no longer loads
    (naut run, naut check): move the instances into the program's VAR
    and publish the values they produce as tags.

  • A ladder rung with no coil must end at its last block. In
    Start t1:TON(PT := T#5S) Stop, the Stop contact drove nothing and was
    dropped without a word; it is now an error that says to end the rung
    with a coil or at the block. A block mid-rung with a coil after it is
    unchanged.

  • SFC indicator variables are named as such. Valve(N, Ind); was
    reported as a time argument on an untimed qualifier, and
    TRANSITION t FROM S0 TO S1 (Ind) := ... as expected ':='; both now
    say indicator variables are not supported and list the forms that are.

  • Logix target squiggles say what to write instead. More logix/*
    diagnostics name the alternative: a tag name with doubled or trailing
    underscores suggests the rename, a wrong block pin lists the block's
    parameters, a timer or counter member lists the readable ones, and a
    BOOL array gives the size to declare. A manifest tag typed as a
    FUNCTION_BLOCK the project declares now reads "is a function block", as
    a standard block does, not "unknown type".

Fixed

  • A Logix target no longer writes a conversion as a plain move. In an
    ST program with a target: logix section, DINT_TO_INT(x) went to the
    controller as x, so it did not wrap (70000 stayed 70000, nautilus
    gives 4464), and REAL_TO_DINT(r) + 1 rounded differently. Each
    conversion is now written so the controller computes nautilus's result
    (narrowing as a wrap, integer to REAL as (v * 1.0) where it would
    otherwise divide as integers, BOOL to a number as an IF), or it
    squiggles with the new rule logix/conversion and says what to write
    instead: REAL to an integer inside an expression, unsigned and
    bit-string types, LINT, LTIME and STRING. (#255)

  • REAL_TO_DINT(r) no longer squiggles as a whole right-hand side.
    A Logix controller rounds a REAL halves to even as it stores it into an
    integer, as nautilus does (verified on an Echo controller), so
    d := REAL_TO_DINT(r); and its INT, SINT, TO_DINT and REAL_TO_TIME
    forms are written as a plain store when the tag is of the conversion's
    own type. Inside an expression, into a tag of another type, or from an
    LREAL it still squiggles. Out of range the controller wraps silently
    where nautilus faults.

  • An integer division that meets a REAL squiggles on a Logix target.
    The controller divides integers in REAL once the quotient is stored
    into a REAL, sits beside a REAL, or is compared with one: r := a / 2;
    gave 3.5 on the controller for a = 7, where nautilus gives 3, and
    a / 2 > x with x REAL compared differently. These now squiggle with
    logix/conversion and say to compute the quotient into a DINT tag
    first; an all-integer division is written unchanged. (#361)

  • The same integer division squiggles on a ladder rung, and so does an
    expression bound to a block input in ST.
    On a Logix controller,
    { r := a / 2 } into a REAL (written as DIV or CPT) and GT(a / 2, x)
    with x REAL divide in REAL too (3.5 for a = 7; nautilus gives 3).
    These now squiggle with logix/conversion; into an integer they are
    written as before. In an ST call to a user block, p(x := a / b) used to
    be written as-is, and Logix rejects any expression as a block input at
    build time. It now squiggles with logix/fb-pin and says to compute the
    value into a tag first. (#368)

v0.17.0

Choose a tag to compare

@github-actions github-actions released this 14 Oct 19:05
375b75c

Logix target rules in the editor, a Sparkplug edge that is read-only by default, and a correctness pass

The Logix authoring pieces from v0.16.0 get their editor half: a target: logix project's rules squiggle as you type, and FIRST_SCAN() and LOCAL_TIME exist with their Logix forms. The Sparkplug edge node gains a write gate, one device per field connection, array datatypes, and flatten-udts for hosts without Templates. The rest is correctness work: things that were accepted but silently wrong are now refused, and a runtime claims inventory backs the docs at /verified/runtime/.

Upgrading from 0.16

Read these before you upgrade a running project.

  • A Sparkplug edge node is read-only by default. An NCMD or DCMD may write only the tags that sparkplug.writable matches, a list of globs over tag names or UDT member paths (Pump*.SpeedSP). Node Control/Rebirth is always honoured. A host that writes setpoints needs writable: entries. (#286)
  • sparkplug.device is removed. Each field connection is now its own Sparkplug device, with its own DBIRTH and DDEATH, so one dead meter no longer takes every device offline. A device is named after its driver (eip, sparkplug-host) or its source id (modbus, snmp, redfish, prometheus). A manifest that still sets device: is refused with what to do instead. Host-side consumers keyed on the old device name need the new names. (#286)
  • A rung's coils see one evaluation of its condition. In a rung where a coil writes a tag the condition reads (/Lamp ( Lamp ) ( Horn )), later coils used to re-evaluate the condition after the earlier coil's write. The condition is now evaluated once, as on a controller. Programs with such a rung compute different, correct, values. (#268)
  • A write to an undeclared tag is a 400. POST /api/tags with a name no tag declares (a typo, a CONSTANT's name) used to answer 204 and create a stray tag. It now refuses and names the tag. HMIs and faceplates go through the same endpoint. (#342)
  • naut check refuses what it used to accept and run wrongly: the ^ dereference (read as the bare name, #339); TOD#, TIME_OF_DAY# and D# literals (compiled as integers, #340); text after END_PROGRAM (never compiled, #288); a FUNCTION with an FBD body (#337).
  • An FB instance named like a FUNCTION runs its block. With f : Counter; and a library FUNCTION F, f(IN := 1); called the function. The instance now wins, with a warning on its declaration. (#343)
  • Redundant Sparkplug hosts: with redundancy:, only the leader publishes STATE and sends commands, and each replica's MQTT client ID gets its POD_NAME (or hostname) appended. A broker ACL keyed on the exact client ID needs the suffixed IDs. Hosts without redundancy: are unchanged. (#350)
  • An unmatched /api/ path is a JSON 404. With server.hmi set it used to return the HMI's index.html with 200. (#344)

Added

  • Logix target rules as you type. In a project with a target: logix section, a construct the Allen-Bradley writer cannot express (a TP instance, a user FUNCTION, an array that does not start at 0) is an error on its line in the editor, with its rule ID, as naut check already reported. (#239)
  • FIRST_SCAN() and LOCAL_TIME. FIRST_SCAN() is TRUE on a program's first scan after a start or download; LOCAL_TIME gives the calendar now (YEAR … MILLISECOND). On a Logix target they are written as S:FS and GSV(WallClockTime,,LocalDateTime,…). (#240)
  • sparkplug.flatten-udts publishes each UDT member as a plain metric (P101/Running) instead of a Template, for hosts that do not read Templates. (#270)
  • Sparkplug array datatypes on edge publish, host consume and codegen. (#286)
  • Array tags are retained. A setpoint table survives a restart and a failover. A scalar TIME setpoint no longer reloads as an INT, and an enumeration keeps its member name. (#345)
  • Logix import types alias tags through their targets: a base tag, a UDT or AOI member, a TIMER/COUNTER member, or an array element. Rungs naming an alias tag used to be refused. (#349)

Fixed

  • A device's DBIRTH waits for every one of its tags, so the first birth carries every metric rather than whatever had arrived mid-poll. (#287)
  • The redundancy write gate reaches drivers behind a Multi, so a follower's writes are refused in multi-driver projects too; plus SNMP Opaque float parsing, Redfish auth fallback and @odata.id encoding, and Prometheus/Redfish rates restarting after a reconnect. (#296)
  • The Logix writer keeps presets on literal-index elements in the tag's data. (#341)
  • Integer arithmetic is typed at the operands' common width (DINT + DINT is a DINT). Values are unchanged: arithmetic does not wrap at the declared width, by design, and a conversion such as TO_INT wraps to its target. (#347, #353)
  • Naming another task's variable says why it fails: tasks share only tags. (#346)
  • The language server's rename only renames the symbol, not members, literal prefixes or another POU's local (#295); no completions inside comments or strings (#291).
  • An EtherNet/IP data race between Health() and the poller (#315); Prometheus samples stamped with the scrape's start (#298); the oplog rewrite works on Windows (#269); a duplicate alarm id names the file it came from (#289).

With the VS Code extension

Use the stable 0.16.0 or the 0.17.0 pre-release. Both require naut 0.17.0 or later for the features above.