IEC 61131-3 Structured Text
PLC Runtime
A deterministic Structured Text runtime in one Go binary.
The center of everything else on this site. Every section — the synthesizer, the globe, the weld interface, the scan tool — is Structured Text running on this one scan engine, with the same debugger, the same historian and the same variable model.
Tasks are periodic or event-driven, each with its own scan time and watchdog. A task can be reloaded on its own while the rest keep running, and every change goes through the same validation before it reaches the scan.
What it does
Capabilities
- Shipping
Structured Text, validated before it runs
IEC 61131-3 ST with programs, function blocks, GVLs, structs and arrays. The runtime refuses a program that calls something it does not have.
- Shipping
Browser IDE
Edit, validate, download and watch from any browser. No vendor software to install.
- Shipping
Statement-level debugger
Breakpoints, step into/over/out, call stacks and live variable inspection on the running program.
- Shipping
Online edits and per-task reloads
Change one task's logic while every other task keeps scanning.
- Shipping
Real-time scheduling
Scan threads run SCHED_FIFO on PREEMPT_RT Linux, pinned to the cores you reserve for them.
- Shipping
L5X import
Bring existing controller projects across as a starting point.
- Shipping
Standard library plus OSCAT
Timers, counters, edges, PID and PIDE as function blocks, and the OSCAT library loaded alongside.
Research
Questions and findings
- Where do a soft-PLC's scan threads wait, and which waits can the runtime remove while still serving live reads and writes?
- Can a compiled tier be shown to give the interpreter's answer case by case, against references the runtime did not write?
- How much numerical work can a PLC language carry, and can its answers be scored against published benchmarks?
-
Measurement · 10 October 2026
Where a soft-PLC's scans wait: a lock census, from 113,972 sync waits to 31
A runtime that serves an IDE, a historian and drivers while it scans can stall its own tasks through shared locks, and on a real-time kernel those stalls can feed on themselves. Counting lock waits, not guessing at them, found the causes, and two of the biggest were not lock code at all.
-
Validation · 27 July 2026
Navier–Stokes in Structured Text: the lid-driven cavity against Ghia, Ghia & Shin (1982)
A PLC language running on a deterministic compute tier can carry real numerical work, and its answers can be checked against published results rather than eyeballed. The same discipline applies to any control calculation: score it against an outside reference.
Open: How much of the language can the compute VM be shown to run identically? · What is the rest of the cavity solver's amplitude deficit?
Watch it run
Videos
Build it yourself
Demos & how-tos
Post
ControlForge (GoPLC Redux)
A fresh look at the runtime under its current name — what GOPLC became, and what it is for.
OpenPost
ControlForge IDE Runthrough
A 12-minute walkthrough of the browser-based ControlForge IDE — project management, Structured Text editing, debugging, and real-time monitoring.
OpenPost
ControlForge: What It Is
An 80-second recap of what ControlForge is and what it means for industrial automation — a single Go binary that replaces the entire traditional PLC stack.
OpenPost
Debug Mode — Statement-Level PLC Debugging
Breakpoints, call stacks, and variable inspection for Structured Text — a full statement-level debugger running in the browser.
OpenPost
Online Mode — Live Variable Monitoring
Real-time variable monitoring and live value inspection while the PLC is running, streamed to the browser over WebSocket.
OpenPost
Raspberry Pi as a PLC — Factory I/O Over Modbus
Running a PLC runtime on a Raspberry Pi to drive Factory I/O industrial simulations over Modbus TCP.
OpenReference