The Open-Source Factory: Running Industrial Machinery Without a PLC
Z411 | Thu 21 Jan 11:40 a.m.–12:25 p.m.
Presented by
-
Mike O'Connor
https://github.com/latproc
Mike O'Connor is a director and software developer at O'Connor Wooltech, a family-owned South Australian manufacturer of industrial wool-sampling machinery. He works across the unusually broad boundary between mechanical design, electrical systems, Linux, real-time control and operator interfaces.
For more than a decade, Mike has helped develop and deploy an open-source control stack used on production machinery in Australian wool stores. Its main components include Clockwork, a finite-state-machine language for describing machine behaviour; Humid, a graphical operator interface; and a new Linux kernel transport for deterministic EtherCAT communication using the EtherLab master.
His work is shaped by the practical realities of industrial systems: machinery must remain supportable for many years, faults must be diagnosable remotely, software changes must not interrupt production, and a communication failure must never leave outputs in an unsafe state. Mike is particularly interested in making industrial automation more open, understandable and maintainable without losing the reliability expected from conventional proprietary control systems.
Mike O'Connor
https://github.com/latproc
Mike O'Connor is a director and software developer at O'Connor Wooltech, a family-owned South Australian manufacturer of industrial wool-sampling machinery. He works across the unusually broad boundary between mechanical design, electrical systems, Linux, real-time control and operator interfaces.
For more than a decade, Mike has helped develop and deploy an open-source control stack used on production machinery in Australian wool stores. Its main components include Clockwork, a finite-state-machine language for describing machine behaviour; Humid, a graphical operator interface; and a new Linux kernel transport for deterministic EtherCAT communication using the EtherLab master.
His work is shaped by the practical realities of industrial systems: machinery must remain supportable for many years, faults must be diagnosable remotely, software changes must not interrupt production, and a communication failure must never leave outputs in an unsafe state. Mike is particularly interested in making industrial automation more open, understandable and maintainable without losing the reliability expected from conventional proprietary control systems.
Abstract
Industrial automation is normally associated with proprietary PLCs, closed programming environments and hardware tied to a particular vendor. For more than a decade, our wool-sampling machines have instead been controlled by Linux and an open-source software stack.
This talk follows that stack from the operator screen down to the EtherCAT fieldbus. Clockwork is a finite-state-machine language used to describe machine behaviour. Humid provides the graphical operator interface. A new EtherLab cyclic kernel transport is being developed to provide deterministic process-image exchange while keeping machine and device policy in user space.
The software does not control a laboratory demonstration. It operates large production machines in Australian wool stores, where downtime interrupts real work and failures can move heavy equipment. The new kernel transport is currently being tested for deployment on these machines. Subject to successful testing, it is expected to be running on two new production sampling lines by the conference, with a likely rollout as an upgrade to seven existing lines. That environment changes the important engineering questions. Raw cycle speed matters, but output ownership, fault containment, diagnosis and recovery matter more. What happens when user space stalls? When a drive loses control power? When a cable is disconnected? When only one section of a 34-slave EtherCAT network becomes unhealthy? When a machine must remain serviceable across several generations of Linux systems?
I will explain why we chose explicit finite-state machines instead of conventional PLC logic, how the operator interface and control process communicate, and why we are moving cyclic EtherCAT exchange into a generic kernel transport. This separation also creates a cleaner licensing boundary: kernel and EtherLab integration can remain appropriately licensed while a future user-space control stack may be released under a permissive licence such as MIT. I will also discuss the mistakes and maintenance problems accumulated over fourteen years, including dependency drift, slow predicate recalculation, messaging problems and the difficulty of improving a system while customers continue to depend on it.
Attendees will leave with a practical view of Linux as an industrial controller, a framework for deciding what belongs in kernel space and user space, and lessons about designing open systems for failure, recovery and long-term maintenance.
Industrial automation is normally associated with proprietary PLCs, closed programming environments and hardware tied to a particular vendor. For more than a decade, our wool-sampling machines have instead been controlled by Linux and an open-source software stack.
This talk follows that stack from the operator screen down to the EtherCAT fieldbus. Clockwork is a finite-state-machine language used to describe machine behaviour. Humid provides the graphical operator interface. A new EtherLab cyclic kernel transport is being developed to provide deterministic process-image exchange while keeping machine and device policy in user space.
The software does not control a laboratory demonstration. It operates large production machines in Australian wool stores, where downtime interrupts real work and failures can move heavy equipment. The new kernel transport is currently being tested for deployment on these machines. Subject to successful testing, it is expected to be running on two new production sampling lines by the conference, with a likely rollout as an upgrade to seven existing lines. That environment changes the important engineering questions. Raw cycle speed matters, but output ownership, fault containment, diagnosis and recovery matter more. What happens when user space stalls? When a drive loses control power? When a cable is disconnected? When only one section of a 34-slave EtherCAT network becomes unhealthy? When a machine must remain serviceable across several generations of Linux systems?
I will explain why we chose explicit finite-state machines instead of conventional PLC logic, how the operator interface and control process communicate, and why we are moving cyclic EtherCAT exchange into a generic kernel transport. This separation also creates a cleaner licensing boundary: kernel and EtherLab integration can remain appropriately licensed while a future user-space control stack may be released under a permissive licence such as MIT. I will also discuss the mistakes and maintenance problems accumulated over fourteen years, including dependency drift, slow predicate recalculation, messaging problems and the difficulty of improving a system while customers continue to depend on it.
Attendees will leave with a practical view of Linux as an industrial controller, a framework for deciding what belongs in kernel space and user space, and lessons about designing open systems for failure, recovery and long-term maintenance.