OpenFactory

OpenFactory: an open-source 3D plant simulator for PLC training and demos

HIS Controls is building OpenFactory, an open-source 3D factory and process simulator that runs in a web browser and is controlled by your own PLC program.

What OpenFactory is

OpenFactory is a project from HIS Controls (Hunt Integrative Solutions, LLC). It is an open-source 3D factory and process simulator for PLC training, prototyping and customer demos. OpenFactory is a training and demo tool. It is not a safety-rated simulation.

OpenFactory is the plant, not the controller. You bring your own PLC program. A simulated plant is described in a plain text scene file. A Python core runs the physics and holds the I/O. A real or emulated PLC then controls that plant over standard industrial protocols. The simulation runs in a web browser.

Code will be released under the Apache License 2.0. Models and documentation will be released under a Creative Commons Attribution 4.0 International (CC-BY 4.0) license.

What works today

OpenFactory currently includes eleven example scenes. Those scenes include sorting by height and by color, a two-lane merge, a palletizer, tank level control with on/off and PID loops, a two-tank cascade, and a batch mix-and-heat recipe.

Dark 3D sorting line with two green belt conveyors at a right angle, boxes of two heights, a photo eye, and a pusher.
A dark-themed 3D view of a small sorting line, with two bright green belt conveyors on steel frames meeting at a right angle, two cardboard boxes of different heights on the first conveyor, a photo eye that measures box height, a pneumatic pusher that diverts tall boxes onto the second conveyor, device tags such as CONV_01, PE_01 and CYL_01, and outline boxes marking where parts enter and leave.

Connections that work today are Modbus TCP and OPC UA. OpenFactory also includes an MQTT Sparkplug B publisher. Each scene exports an I/O list, controller tags and Ignition tags. Each scene also ships as a demo kit with a PLC program, a sequence chart and a recording, so the same example can be used for a lesson, a lab or a customer demonstration.

3D view of a half-full blue tank with valve FV_01, level transmitter LT_01, and green supply and drain stubs.
A dark-themed 3D view of a level control loop, with a vertical tank on four legs about half full of blue liquid, a top supply line through control valve FV_01, level transmitter LT_01 on the tank wall, an outlet pipe from the tank bottom to a drain, green supply and drain stubs showing flow, and a Trend button for opening a live trend of any analog signal.

Built-in exercise checks grade a PLC program against the scene. A check can test, for example, whether a level stayed in band or whether parts reached the right bin. Fault injection is available for troubleshooting practice. The faults that can be introduced include a stuck valve, a jammed cylinder or a lost network link.

A classroom mode lets many students watch one simulation in their own browsers, with an exam mode and a separate instructor view. The runtime also includes live trends, record and replay, and ISA-101 style status colors.

Close-up 3D view of a green pushbutton, PB_01, pressed and lit, and a lit amber pilot light, PL_01, on grey panel boxes.
A close-up 3D view of two operator devices on grey panel boxes: a green pushbutton, PB_01, shown pressed and lit, and an amber pilot light, PL_01, shown lit, with flat, exact colors so status reads clearly at a glance.

Who it is for

OpenFactory is for controls engineers who are prototyping logic or preparing a customer demo, for plant maintenance and engineering managers who want a plant model for troubleshooting practice, and for PLC instructors and students who need a shared simulation that each person can watch in a browser. Because OpenFactory is the plant, you connect a real or emulated PLC and run your own program against the scene. You can use the exported I/O list and tags, the demo kit that ships with each scene, and, where you want them, the exercise checks and fault injection described above.

What is in progress

A Rockwell Automation Logix connection is in progress. The client is written and has been tested against a simulated controller only. It has not yet been run against a physical controller or an emulator.

A PlantPAx-style tank level demo is also in progress. The program file has been generated and is under engineering review. It has not yet been run on a controller.

An in-browser scene editor and improved lighting are in progress. A public release is also in progress. We are not announcing a release date.

See a demo, or be told when it is released

If you would like to see a demo of OpenFactory, or to be told when it is released, contact HIS Controls at [email protected] or through our contact page.