Repository navigation
Releases
v0.23.1 — IO-Link PdoU32 safety fix, redundancy log and Logix writer fixes
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
PdoU32are dropped (#1550, #1553). In tags mode, on an IO-Link port that has a port device, a write to the master'sPort{n}_PdoU32point (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 (nodevice-commands: members) with an IO-Link master, a port device on one of its ports, and a program or setpoint writing that master'sPdoU32point or the gate's own process-data-out tag. Projects without a port device are unchanged. Thenaut checkwarning 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 checkknows 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 alogix/initrefusal 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
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 initand a self-signed certificate make it six commands. Every write is journalled, andnaut auditcan 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
substitutedquality, and a journal row. - Siemens S7-1500.
naut siemens deploy,show,verify,diagandserve, 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 deployover 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 checkwarns of a pair lease under 1 s. A lease mismatch between members raisesredundancy.version-mismatchornautilus.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 thepeers:address, not every interface (NAUTILUS_PEER_LISTENoverrides); each box's key is pinned at first contact. Replacing a box takesnaut redundancy unpin <name>.redundancy.peer-tls: offis 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 functionsTAKEOVER_SCAN,HOT_TAKEOVER,PEER_READYandTAKEOVERS: a POU or tag with one of those names is refused bynaut check. (#1273, #1350)- Sparkplug on a pair works, and only the leader holds the edge node session. A pair with
alarms:can raise the criticalnautilus.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,/healthzand/readyzanswer without a credential, and an empty or all-commentedauth:is refused. An unset or shared service-token secret refuses to start. (#1035, #1071, #1095, #1107) - OPC UA reads now need
readwhenauth:is set. A project with anauth:block, an OPC UA server andanonymous: none(the default) stops serving anonymous OPC UA clients (the None endpoint included): they read and browse nothing. To keep them reading, setanonymous: viewerunderauth:, or have the client sign in with a UserName token, or map its certificate underauth.opcua-certificates.naut checkandnaut runwarn 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 needscreateAuth()(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) andnautilus.audit-journalis 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/stateshowsscan.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,STALEorSUBSTbadge, 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 benotConnectedand 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: falseturns 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. AswitchoverQualityin 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: falsealarms page while active and stop on return to normal;naut checkrefuses a level that pages a person with no address for its channel;alarms.chatter.pageandalarms.flood.group-pagesare 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 adriver:section (securityNoneuntil set);naut checkwarns of devices with noalarms:. (#987, #971, #992, #1399) naut checkis stricter: a=>output binding, an FB input and aVAR_IN_OUTfollow the assignment type rule (REALintoINTis refused); aFORpass 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,acceptanceand a few named seam interfaces are stable; the rest is internal. (#926)io.InputsReadiernow 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(TakeoverInputsWaitis a deprecated alias),runtime.DefaultInputsWait,ScanStats.InputsWait,io.InputsPending. (#1448)
Siemens (naut siemens)
naut check --target siemensruns the SCL writer's rules. Generated blocks take the prefixnaut_(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...
v0.22.0
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 deployinstalls, 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 serveputs a running S7-1500 on the nautilus API. Not yet proven on hardware: tested against a fake CPU only.naut runbuilds 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 inNAUTILUS_ALLOWED_HOSTS, or when the request carries the controller's token (NAUTILUS_TOKEN, sent asAuthorization: BearerorX-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, nginxHost $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 --deploylist their Service names automatically. - The historian.
naut historian,naut pull --host,naut snmp serve --fromandnaut redfish serve --fromsendNAUTILUS_TOKENfrom their environment.naut historian's own API follows the same rule: withserver.historian: http://historian:9100, setNAUTILUS_ALLOWED_HOSTS=historianon the historian. The controller's/api/historyproxy 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 --listendefaults tolocalhost:8080, and refuses a non-loopback address withoutNAUTILUS_TOKEN. - The VS Code extension sends
nautilus.tokenon every request from 0.21.2 (below), and only tonautilus.runtimeUrl. A token from your user settings goes to aruntimeUrlthat a workspace chose only after you answer Send it to … once for that address. In a remote window (dev container, SSH, WSL), anyruntimeUrlbut the default needs that approval. In an untrusted workspace, its ownruntimeUrlandtokenare ignored. - Unchanged: reaching a controller by IP address or on localhost works as before.
- The rule. A controller now answers a request only when its Host is
- 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 (
DINTintoINT, a computedd + 1into anINT, a literal the type can't hold), and bit strings. It also coversLREALintoREALandDINTintoREAL. - The refusal applies at every store: assignments, function block inputs,
=>output bindings,FORbounds 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 = 60000stores-5536, and shifts and rotates act on the operand's declared width.
- A program that narrows a value without saying so no longer compiles. That covers wider integers into narrower ones (
- 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: outputtag with noinit: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 checkfails 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 passednaut checkon 0.21 can fail it, and so fail CI. (#671, #675)- naut builds a missing HMI app itself. When
server.hminames 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 failsnaut build, where 0.21 warned and fell back. (#668) - The dashboard moves to
/_nautilus/when the project has screens. With*.mimic.jsonfiles and noserver.hmi,naut runnow 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 buildmakes. Building from source needs Go 1.25. (#668) - Real time: a task with
priority:now runs under anRLIMIT_RTTIMEbound, and naut refuses some unsafe pinnings at start. See Real-time safety below. If a task now starts at normal priority, check itsscan.schedand naut's banner for the reason. (#839, #847, #851) - A PLCnext project with a
redundancy:section is refused at load and bynaut 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. Withoutwatchdog:it keeps reading and writes nothing. - When the scans resume, it reconnects, counts the trip in
__WatchdogTripsand 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 runstops cleanly. Withoutwatchdog:the driver sends no output writes while held, but a reconnect still writes its configuration.
- With
- 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.GateHoldsand 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.
- shm with its watchdog: the shim zeroes the outputs (not counted in
- 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:
tools/deploy/naut-release.shis retired. Usenaut 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 setsRLIMIT_RTTIME(200 ms soft, 500 ms hard;NAUTILUS_RT_LIMIT_MSchanges 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 REFUSEDon the banner;share-cpu: trueoverrides it. It also warns when a kernel network thread on that CPU runs below the task. (#851, #853) naut-launchand 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/jitterstops a run the box can't keep up with and marks the reportINVALID. (#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 withoutpriority:...
v0.21.0
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 checkmay warn aboutAGENTS.md. A project whoseAGENTS.mdcame from an earliernaut newcan now get a warning that its guidance is older than this naut's, and so can one whoseCLAUDE.mddoesn't import it. Runnaut agentsto refresh it. The exit code is unchanged, and a project with noAGENTS.md, or with one you wrote yourself, gets no warning. (#646)- Redundancy: a renew or takeover now rewrites the Lease's
leaseDurationSecondsto 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]writesAGENTS.md, plus aCLAUDE.mdthat 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. AnAGENTS.mdsomeone else wrote is refused;-appendadds below it and-forcereplaces it.-check [-json]writes nothing and exits 1 when something needs doing.naut newnow 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 graphnames 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
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 checkandnaut run:- an unclosed
(*comment - a POU with no
END_PROGRAM - two operands in a row:
s := a b;used to run ass := a;followed byb; - 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 unclosed
-
An
outputwith noinit:that its program reads before writing is anaut checkerror. Such a read faulted withundefined tagat 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 addinit:. If the read only comes first when a WHILE or a FOR runs zero times, it is a warning instead.naut runis unchanged. (#568) -
An input or output whose driver binding differs only in case is a
naut checkerror. One example is a tagm1_kwagainst a bindingM1_KW. Such a tag never received the driver's value, or never reached the device, and nothing said so.naut runstill starts. (#547) -
Tags a FUNCTION reaches through
VAR_EXTERNALare 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 : INTagainstMode : REAL) now fails to load. Before, the later declaration silently replaced the earlier one. A FUNCTION that reads an undeclared tag is now anaut checkerror. (#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 RETAINglobal that the manifest declares as aninputoroutputnow fails to load ("never retained"). The same applies toretain: trueon an input or output. (#494) -
sparkplug.writablepatterns read[as an array index.[n]matches that index and[*]matches any index. Character classes are gone:- Any other
[(for exampleFill[VW]alve) now failsnaut checkand stopsnaut run. - A pattern like
Pump[12]now names an array element, which a command never writes, andnaut checkwarns. (#577)
- Any other
-
A Modbus source
host:that carries a port is refused.host: 10.0.0.5:5020used to be dialed as10.0.0.5:5020:502and never connected. It is now a load error asking forport:.naut modbus importsplits the address for you. (#473) -
New warnings, same exit code.
naut checknow 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:
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 readsinit:, or the zero of its type, with qualityNotConnecteduntil the first real value arrives. Check the driver's__Onlinetag instead of relying on the fault:- A tag that nothing gives a type stays unseeded, and
naut checkwarns about it. - The
plcnext,optommp,replayandmemorydrivers keep the loud fault. - The
eipdriver gets aneip__Onlinecompanion, and its read no longer errors while the controller is down. Before, in adrivers:set, that error starved every other driver. - Fault transitions are now logged once each way per task. (#458, #459)
- A tag that nothing gives a type stays unseeded, and
- A STRUCT member's
:=initial value is now used. Before, every member started at zero. This applied to a manifest tag of the type withoutinit:, aVARof the type, aVAR_TEMPreset and an FB's internals. A manifestinit:still overrides member by member. (#461) VAR RETAINnow keeps its value. In 0.19, RETAIN was accepted and did nothing. With aretain:section, every program'sVAR RETAINvariables and every libraryVAR_GLOBAL RETAINglobal 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 Modbusrewrite: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)
- Without
HTTP API
-
Writes and forces are checked against the declared type.
POST /api/tagseither 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
memorydriver, usePOST /api/forces.POST /api/forcesapplies 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.writablesays. - 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.writableis 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) - 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
-
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
__Onlinefalse at once and counts one__Outageseach. 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>__Onlinemeans 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...
VS Code extension 0.20.0
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.L5Xladder) 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) andnautilus.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 newcheck: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 inopcua.writable. Completion
and hover for the lab-only anonymous writes switch, the host's switch
for Rebirth requests, andwritablepatterns such asCounts[2]and
Drives[*].Speed. (#555, #575, #577) -
See a component while you edit it. Open a
{Name}.svelteand 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 newpreview.propskey
({Name}.component.json, created next to the.svelteon 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.svelteeditor and zooms 50 to 400 %. The sidecar's
portsare 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.sveltelands in the project'ssrc/libas 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.jsonwith 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 ownnpm run devstarts 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 atnautilus.runtimeUrlthrough
CONTROLLER_URL, and when nothing answers there the extension offers
to startnaut 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.sveltedrew 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
kindsentry may now be the path of a{Name}.kind.jsonrelative 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 kindglTF · fileand 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 thestatustext without touching the file;
type,members,model,status,labelAt,boundsand the
drives (mesh, channel, fields; Add drive,×) are edited beside it,
each change one text edit with one drive per line.naut checkreads
the file next to the scene.examples/lift-station's six kinds moved
intohmi/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;Escclears. -
Ports and anchored pipes (design §3g, slice 3). A kind declares
portsin 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 — oneaddPipeanchored at both ends (from/toas
{ 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 checkand the schema know ports and
anchors;hmi-3dresolves them. -
A point by name, and a colour from a number. A port's
atand the
kind'slabelAtmay be a place on a box —{ "part": "Motor", "anchor": "top" }, or"top"for the bounds, withoffset— 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 newpulsechannel has Hz and ±
("pulse": { "bind": "Alarm", "hz": 1, "amount": 0.1 }). The schema,
naut checkandhmi-3dcarry 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'...
v0.19.0
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
nullin/api/stateand the stream. Before, a single NaN or ±Inf blanked the whole dashboard:/api/stateanswered 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 qualitybad. (#429) - Logix: a rack alias needs its module. An alias such as
Local:1:I.Data.3orRemote1:1:I.Data.0is now refused at write time (logix/io-module) unless the project's hardware configuration has that module. Add one with the newtarget.logix.hardwarekey.naut logix import --projectwrites it for you. (#397)
Added
- groov EPIC: the
optommpdriver. 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, UDPstreamand the processor's commwatchdogare opt-in, andpriority: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 readsbad. 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|importwrites the manifest and tag file from a live chassis;--modbuskeeps the Modbus route. On the processor itself,examples/epic-benchscans in about 1.7 ms at about 4 % of one core. (#437, #438, #448) - PLCnext: the
plcnextdriver. 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_iois 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 thanoutput-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 andnaut plcnext benchmeasures 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 asnautilus-plcnext-io_0.19.0_linux_armv7.tar.gz.examples/plcnext-benchhas 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 isbit:((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 atopc.tcp://localhost:4840(setendpoint: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 answerBad_UserAccessDenied. Node ids are the tag paths in the project's namespace (ns=1;s=P101.Drive.Speed). Theopcua-serverrow is on/api/driversand 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.hardwarenames 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.Renamelends 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
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_NotConnectedcan'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)
CloseSessionkeeps 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
Disabledcan still deliver one notification that was already queued when it was disabled. This shows up intermittently. ModifySubscriptionchanges nothing.ModifyMonitoredItems,SetPublishingMode,TransferSubscriptions,TranslateBrowsePathsToNodeIdsandCallanswerBad_ServiceUnsupported. (#431, #433)
Known, on the bench
- Every naut start on the PLCnext logs one
undefined tag DI_00logic 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+eponce per binary, as root. Copying a new build drops the capability;rt/plcnext-io/README.mdhas 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
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,Stopdrove 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 serveand 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-valuesor thenautilus.logix.resetValuesOnDownloadsetting. (#387) - Import round trip with no differences. On the public batch-skid yardstick,
naut logix import --project→naut logix write→naut logix normalize --logic --checkreports the same logic. Newtarget.logixoptions make this possible:continuous,all-tagsandcontroller-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
Localmodule 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: disconnectopts into the Sparkplug 3.0 session end; the defaultbufferis 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 servenow 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
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-fileinnautilus.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 whosenautilus.yamlhas atarget: logixsection, with
naut logix serve --projectatnautilus.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, asnaut logix deploy --onlinedoes, and
nautilus: Download Project to Logix Controller (the title bar's…
menu) downloads the project, asnaut 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 startnaut logix serve --projectin a terminal. -
sparkplug.primary-host-offlineinnautilus.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, anddisconnectends the session as
Sparkplug 3.0 has it (NDEATH, reconnect, and birth once the host is
back). -
target.logix.continuousinnautilus.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 --projectsets it. -
target.logix.all-tagsandtarget.logix.controller-scopedin
nautilus.yaml. Completion and validation for the two options
naut logix import --projectnow 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), andcontroller-scopedlists program variables, such as
a timer the export had at controller scope, written back as controller
tags with their descriptions. Withoutall-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
valuesKeptandresets. -
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 settingnautilus.logix.resetValuesOnDownloadstarts 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 TONused to load; it is now refused, as
type: TONalready was, withtag 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 notype:that a program
declares as any of these (VAR_EXTERNAL Timers : ARRAY[1..2] OF TON;),
refused astag 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'sVAR
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, theStopcontact 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) := ...asexpected ':='; 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 atarget: logixsection,DINT_TO_INT(x)went to the
controller asx, so it did not wrap (70000 stayed 70000, nautilus
gives 4464), andREAL_TO_DINT(r) + 1rounded 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 anIF), or it
squiggles with the new rulelogix/conversionand 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_DINTandREAL_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 fora = 7, where nautilus gives 3, and
a / 2 > xwithxREAL compared differently. These now squiggle with
logix/conversionand 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) andGT(a / 2, x)
withxREAL divide in REAL too (3.5 fora = 7; nautilus gives 3).
These now squiggle withlogix/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 withlogix/fb-pinand says to compute the
value into a tag first. (#368)
v0.17.0
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.writablematches, a list of globs over tag names or UDT member paths (Pump*.SpeedSP).Node Control/Rebirthis always honoured. A host that writes setpoints needswritable:entries. (#286) sparkplug.deviceis 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 setsdevice: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/tagswith 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 checkrefuses what it used to accept and run wrongly: the^dereference (read as the bare name, #339);TOD#,TIME_OF_DAY#andD#literals (compiled as integers, #340); text afterEND_PROGRAM(never compiled, #288); aFUNCTIONwith an FBD body (#337).- An FB instance named like a FUNCTION runs its block. With
f : Counter;and a libraryFUNCTION 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 itsPOD_NAME(or hostname) appended. A broker ACL keyed on the exact client ID needs the suffixed IDs. Hosts withoutredundancy:are unchanged. (#350) - An unmatched
/api/path is a JSON 404. Withserver.hmiset it used to return the HMI'sindex.htmlwith 200. (#344)
Added
- Logix target rules as you type. In a project with a
target: logixsection, a construct the Allen-Bradley writer cannot express (aTPinstance, a user FUNCTION, an array that does not start at 0) is an error on its line in the editor, with its rule ID, asnaut checkalready reported. (#239) FIRST_SCAN()andLOCAL_TIME.FIRST_SCAN()is TRUE on a program's first scan after a start or download;LOCAL_TIMEgives the calendar now (YEAR…MILLISECOND). On a Logix target they are written asS:FSandGSV(WallClockTime,,LocalDateTime,…). (#240)sparkplug.flatten-udtspublishes 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
TIMEsetpoint no longer reloads as anINT, 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.idencoding, 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 + DINTis aDINT). Values are unchanged: arithmetic does not wrap at the declared width, by design, and a conversion such asTO_INTwraps 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.