Skip to content

v0.19.0

Choose a tag to compare

@github-actions github-actions released this 27 Oct 23:11
· 979 commits to main since this release
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.