Nautilus on the groov EPIC and the PLCnext
How Our Open-Source PLC Runtime Reaches the I/O on Two Linux PLCs, and What the Outputs Do When It Dies
All posts · Nautilus ·
Companion post for the video. The video covers the same ground on the bench in about seven minutes: watch it here.
I've been working on putting Nautilus on some hardware: an Opto 22 groov EPIC and a Phoenix Contact PLCnext. It's a small proof, but Nautilus is driving an output on each one, flashing it on and off as a heartbeat, with the same program on both.
Nautilus is our free and open-source PLC runtime. You can program and run it on Linux, Windows or macOS, deploy it to Linux controllers on x86 or ARM, or run it in your browser in the playground on the Nautilus docs site.
The next obvious question is what hardware it runs on. We want it to run on as many platforms as possible, because being vendor agnostic is very important to us. You shouldn't have to choose your software based on what hardware you're using.
Why these two
The groov EPIC and the PLCnext are the obvious place to start. They're both Linux computers with a real-time kernel, they both have built-in I/O made for a panel, and both give you access to the Linux underneath. Mine are a groov EPIC Learning Center and a PLCnext Starter Kit, and both have some very convenient lights and switches built in.
A lot of newer controllers, these two included, are small Linux computers, and the vendor's PLC runtime is just a program running on top of Linux. The I/O sits on a backplane that the vendor's firmware owns, so the big question is how a Nautilus program gets to the I/O. The answer is different for each of them.
The EPIC: OptoMMP
On the EPIC, Opto 22 documents one protocol for the I/O, OptoMMP. It's a memory map, so every module and every channel has an address. Opto's own CODESYS runtime gets to the I/O the same way, so Nautilus is just another client, the same as Opto's CODESYS driver and their other built-in software. The OptoMMP server owns the direct connection to the I/O hardware.
Nautilus reads the chassis and writes the tag file for me:
After a one-time setup, one command deploys the project as a service that starts on boot. Beyond Opto's free shell license, there's no Opto software to buy or install.
The PLCnext: BusConductor and a small shim
On the PLCnext, Phoenix Contact publishes BusConductor, an open-source component that brings up the Axioline bus without PLCnext Engineer. PLCnext's data access service couldn't see the I/O ports directly, so we wrote a small C program we call the shim, which we start using the firmware's own component framework. It scans the I/O every millisecond and shares it with Nautilus through shared memory, so Nautilus gets the I/O in about three hundredths of a millisecond, instead of 11 milliseconds through the PLCnext's gRPC service.
The same release on both
We're running the same Nautilus release on both platforms. On the EPIC, it uses about 16% of one of its four cores and about 30 megabytes of memory at a 20 millisecond scan, with Opto's own PAC Control, groov View and Node-RED still running beside it. On the PLCnext, it's about eight and a half percent of one core at the same 20 millisecond scan, plus about three percent for the shim.
We also built 3D HMIs for watching the Nautilus program run. The EPIC's is served by the EPIC itself:
Breaking it on purpose
To see how they hold up when things go wrong, we killed Nautilus on both.
On the PLCnext, about a second after Nautilus dies, the outputs drop to off. That's a watchdog in the shim, set to one second in this project: if Nautilus stops writing it, it turns every output off. You can also disable the watchdog so the outputs hold their last value instead, which is often more desirable. On the EPIC, Opto's built-in communication watchdog does the job. It's also set to one second, and it sets the outputs to their configured fault values. You set those per channel in groov Manage, or with the REST API.
After the kill, Nautilus is back on its own within a minute, and so is the heartbeat. On the PLCnext, a small keep-alive job checks every minute and starts it again. On the EPIC, systemd restarts it in about two seconds.
An Allen-Bradley ControlLogix works differently. By default, a major fault stops it. The outputs go to their fault state, and it waits for someone to clear it, with the idea that you don't want a machine starting back up on its own while nobody's looking at it.
With Nautilus, a logic error gets flagged and logged and the scan keeps going, and if the runtime itself dies, it restarts like any other service. If you want it to work more like a traditional PLC, with a person in the loop, you can configure the outputs to wait for an operator to acknowledge before they come back.
Testing it with AI agents
Because these platforms are so open, with no licensing or proprietary hurdles, we were able to do most of our testing with AI agents. I worked with Claude to develop a plan, with steps for the agent and steps for me to do on the physical hardware. We tested the controllers rebooting, the runtime dying and a program that hangs, and for each one we compared the outcome to what we expected.
On the EPIC, we deliberately made the program hang for about 30 seconds. In about 6 seconds, Opto's watchdog had the outputs at the fault values we'd set, and 13 seconds in, Nautilus had restarted and was writing outputs again.
The Nautilus docs have a guide for the groov EPIC and one for the PLCnext. Each guide has a list of its claims, each with its status and the tests we use to verify it. Most tests run automatically against simulated hardware, and the runs on the real hardware are written up there too.
Try both bench projects in the playground
You don't need the real hardware to see what it's like to work with Nautilus on either platform. Both bench projects are in the Nautilus playground: open Examples and pick the groov EPIC bench or the PLCnext starter kit, and you have the runtime and the VS Code extension right there in your browser. Click Open HMI at the top and you get the 3D HMI, which shows the platform and lets you play with the buttons and dials like you would on the actual Learning Center or Starter Kit.
It's the same project you'd deploy to the real hardware, one click away if you ever get one of these platforms.
Why this over a traditional PLC
For one, there's no expensive proprietary IDE. You write the logic in VS Code using the IEC languages, but it's stored as text tracked with git, and you can test the logic on your laptop before running it on the hardware.
It speaks Modbus TCP, EtherNet/IP to Allen-Bradley Logix controllers, OPC UA as a client and a server, and Sparkplug B, so it fits into your existing plant.
And you're not locked in. Your program uses named tags, and which protocol connects to those tags is stored separately. Change hardware and you rewrite that file, not your whole program. Nautilus already runs on a Toradex Verdin and on a Raspberry Pi too, and you can already write Allen-Bradley Logix programs in Nautilus.
What hardware am I missing?
I'd like to hear which controllers you'd want to see Nautilus on: reply to the newsletter or find me on LinkedIn.
If you need help putting together a more open architecture that escapes vendor lock-in, that's what we do: joyautomation.com/services.
Subscribe to the weekly newsletter to keep up to date: joyautomation.com/newsletter