LLM4PLC vs Agents4PLC vs AutoPLC vs LADX
LLM PLC code generation research compared. Five systems sit in one table: what language they write, how they check it, and whether the code is public.
The numbers further down are each paper's own, with the setup named. They are not directly comparable across papers.
Updated 12 November 2026. A cell that says Not stated was not in the paper or the official repository.
LLM4PLC, Agents4PLC, AutoPLC, and the plant-aware agent are research prototypes. LADX is a browser workbench. None of them is a safety-rated programming tool, and this page did not run the code on your hardware.
Comparison
Each cell is taken from the linked paper or the official repository, or from the LADX pages where there is no paper. The first four follow the title. The plant-aware agent is the later paper. The order is not a ranking.
| System | Paper or repository | Year | Languages | Approach | Verification | Code and weights | License |
|---|---|---|---|---|---|---|---|
| LLM4PLCAICPS Lab | Fakih et al., arXiv:2401.05443.arXiv:2401.05443GitHub repository | 2024. Submitted 8 January 2024. ICSE-SEIP, 14–20 April 2024. | Structured Text. The paper generates ST, which it treats as the IEC 61131-3 language closest to conventional code. | User-guided loop: prompt engineering, LoRA fine-tuning, and verifier errors fed back to the model. A multi-agent system and RAG: Not stated. | Grammar checker, a compiler, and the NuXmv SMV model checker. The study also runs programs on a Fischertechnik manufacturing testbed. | The repository publishes code and prompts. The README links pretrained LoRA weights on Google Drive and points to a project website for the full description. | Not stated |
| Agents4PLCZhejiang University and co-authors | Liu et al., arXiv:2410.14209.arXiv:2410.14209Release repository | 2024. Submitted 18 October 2024. Revised 25 December 2024. | IEC 61131-3 Structured Text. The paper names ladder, function block, sequential function chart, and instruction list, and generates ST. | Multi-agent loop for retrieval, planning, coding, debugging, and validation, with RAG, prompt engineering, and chain-of-thought. Fine-tuning of their own model: Not stated. | An ST compiler checks syntax. nuXmv and PLCverif check function. The paper says the authors also deployed generated code on practical scenarios. It does not name the equipment. | The release repository includes the benchmark, evaluation code, prompts, and an LLM4PLC baseline. The README says the full multi-agent implementation is withheld because of industrial partners. | Apache-2.0 on the release repository. |
| AutoPLCAutoPLC authors | Yang et al., arXiv:2412.02410.arXiv:2412.02410GitHub repository | Submitted 3 December 2024. Revised 3 August 2025. | Siemens SCL and CODESYS ST. The implementation targets TIA Portal and CODESYS. | Planning, RAG over cases and vendor APIs, and a generate-and-improve loop against the vendor IDE. Fine-tuning: the paper treats the per-vendor cost as a reason to use retrieval instead. | Compilation through the TIA Portal Openness API and the CODESYS script engine. On the 23-task Agents4PLC set, RuSTy checks syntax and PLCverif does the formal check. Hardware execution: Not stated. | The public repository contains the framework, for SCL and for CODESYS ST, and the benchmarks used in the paper. | MIT on the repository. |
| LADXWartens Ltd | Not statedLADX homepageChat page | Not stated | Ladder, written as rungs on the canvas. Structured Text, checked by the LADV compiler. The homepage also names conversion to Siemens SCL, Rockwell, and PLCopen XML. | A generation loop. Ladder passes the editor's validator and a seal-in check before it reaches the canvas. Auto-fix can send Structured Text errors back to the model up to three times. Agents, fine-tuning, and RAG: Not stated. | Editor validator, seal-in check, LADV compiler, and a virtual PLC with a digital twin. The chat page says a check proves code is well formed, not that it is correct, and that simulation is not a safety case. | The homepage says the workbench, the LADV virtual PLCs, and the twins are open source. A repository URL was not on the homepage or the chat page. | Apache-2.0, stated on the homepage and the chat page. |
| Plant-aware AgentFraunhofer IOSB-INA | Kersting and Benndorf, arXiv:2610.28160.arXiv:2610.28160DOI 10.1109/ETFA68377.2026.11725227 | 2026. Submitted 20 October 2026. Revised 27 October 2026. Abstract-page journal reference: 2026 IEEE ETFA, Västerås. | Structured Text for Mitsubishi GX Works3 on an iQ-R CPU. Index terms also name IEC 61131-3. Ladder and AWL are future work, not current outputs. | Chat-first retrieval over the plant I/O list, GX Works3 labels, module configuration, and existing ST, plus library, specification, and general context. Figure 2 names any OpenAI-compatible model or local DeepSeek Coder V2, and at most 3 diagnostic-repair iterations. Fine-tuning and a multi-agent system: Not stated. | Engineer-triggered GX Works3 compilation over MCP, then an explicit deploy confirmation. Figure 2 names PLC write, start, stop, reset, and status. One iQ-R R04 sorting plant. A formal checker and a scored rate: Not stated. | A repository, prompts, and weights: Not stated. | Not stated |
Limits
LLM4PLC, Agents4PLC, AutoPLC, and the plant-aware agent are research prototypes. They are not products you install as the programming tool for a plant. LADX is a shipping browser workbench, and it is still not a safety-rated controller tool.
This page did not run any of the code on hardware. LLM4PLC reports a Fischertechnik manufacturing testbed in the authors' study. Agents4PLC says the authors deployed generated code on practical scenarios and does not name the equipment. AutoPLC reports compiler passes and an expert review. Hardware execution for AutoPLC is not stated. The plant-aware paper demonstrates one iQ-R R04 sorting plant and says a quantitative evaluation is planned. Cross-vendor use is out of scope in that paper. LADX runs a virtual PLC in the browser. A lab demo, a compiler pass, or a simulation is not an acceptance test for your machine.
None of these listings is safety-rated. A grammar check, a vendor compile, a model-checker result, and a simulator pass answer different questions. The chat page says a check proves code is well formed, not that it is correct, and that simulation is not a safety case. The plant-aware paper says functional correctness still needs hardware-in-the-loop testing or expert review. The same caution covers the papers.
Reported results
These are the authors' numbers, copied with the setup they name. A higher percentage on one row does not beat another row. The tasks, the checkers, and the models differ.
LLM4PLC, arXiv:2401.05443, ran GPT-3.5, GPT-4, Code Llama-7B, a fine-tuned Code Llama-7B, Code Llama-34B, and a fine-tuned Code Llama-34B. The abstract says the pipeline moved generation success from 47% to 72%, and the survey-of-experts score from 2.25/10 to 7.75/10, on a Fischertechnik manufacturing testbed.
Agents4PLC, arXiv:2410.14209, reports a best verifiable rate of 68% and a best pass rate of 50% on its Easy problems with GPT-4o, and 42.3% verifiable with GPT-4o and DeepSeek V2.5 plus 28.6% pass with GPT-4o on Medium. Except for CodeLlama 34B on Easy, the paper reports 100% syntax compilation for the Agents4PLC models on Easy and Medium. Those rates are the authors' benchmark.
AutoPLC, arXiv:2412.02410, uses Claude-3.5-Sonnet as the backbone and reports compilation pass rates of 92.72% on LGF SCL, 91.11% on the competition SCL set, and 92.90% on OSCAT ST, at $0.13 per task. On the 23-task Agents4PLC set the same table shows a 78.30% formal-verification rate. The abstract's 27% and 58% figures are Claude-3.5 alone on TIA Portal and CODESYS in that paper, not a later leaderboard.
Kersting and Benndorf, arXiv:2610.28160, do not report a compilation rate or a pass rate. A quantitative comparison of plant-aware and generic-context generation on matched task sets is planned. The example trace says GX Works3 compilation successful, then that the sequence is executing after the engineer confirms deployment. That trace is the demonstration, not a benchmark table.
Which one to look at
Pick by the question you actually have. This is not a winner.
You want code you can run
AutoPLC publishes the generator under MIT, including the SCL and CODESYS paths and the benchmarks. The README expects Windows with TIA Portal or CODESYS for the compiler step.
LLM4PLC publishes code and prompts. The README links LoRA weights. The repository states no license.
Agents4PLC publishes the benchmark and evaluation pieces under Apache-2.0. The README says the full multi-agent implementation is withheld.
LADX says the workbench is Apache-2.0 and runs in the browser. A repository URL was not stated on the pages checked 9 November 2026.
Plant-aware Agent does not state a repository, prompts, or weights.
You want ladder logic
LADX writes ladder rungs onto a canvas and checks them before they land. The papers generate Structured Text. AutoPLC also generates Siemens SCL. The plant-aware paper lists ladder and AWL as future work.
You want a formal check
Agents4PLC publishes formal specifications and checks generated ST with nuXmv and PLCverif. LLM4PLC loops NuXmv on its own pipeline. AutoPLC uses PLCverif on the 23-task Agents4PLC slice and uses the vendor compiler on its 914-task set. LADX uses a validator, a compiler, and a virtual PLC. The chat page says a check proves code is well formed, not that it is correct, and that simulation is not a safety case.
You want a closed-loop plant score
That question belongs to the benchmarks below, not to a generator's compilation rate. PLCWorld and AutoFactory-Bench grade Structured Text against a simulated plant. The leaderboard keeps each table with its source, and the benchmark guide explains why the percentages do not share a scale.
Benchmarks
These catalogued benches grade IEC 61131-3 code. They are not the generators in the table above. Agents4PLC and AutoPLC also publish task sets; those sets stay on their rows.
| Benchmark | Year | What it grades | Language | Code released | License | One reported result |
|---|---|---|---|---|---|---|
| PLCWorldarXiv:2610.02982Project page | 2026. Submitted 2 October 2026. Revised 23 November 2026 (v2). The project page says Preprint 2026. | Closed-loop simulation of an already generated Structured Text program. Task Success and Safety Violation are reported separately. It is a benchmark, not a generator. | Structured Text. | The paper says the code is on the project page. On 9 November 2026 that page linked an anonymous.4open.science path that returned 403 to this check. | Not stated | Direct GPT-5.5 reaches 83.96% Task Success on Easy cases and 24.51% on Hard cases. The project page describes direct rows as three generations per task. That setup is this paper's. |
| AutoFactory-BenchHomepageLeaderboard | Not stated as a paper year. The public leaderboard is dated 28 October 2026. | Agents write one IEC 61131-3 Structured Text file. A separate verifier compiles it and runs it every 10 ms against a simulated plant. A run passes only if every condition succeeds and no safety rule trips. The rank uses 30 Hard tasks out of 100. | Structured Text. The homepage shows the file as /app/program.st. | 10 of 100 tasks are public. The homepage says the other 90, the verifier, and the graded runs stay private and are shared with research partners. No repository URL was on the homepage. | Not stated | On the 30 Hard tasks, GPT-6 Astra passed 72% of its runs. The table is 13 models and 3 runs per task, dated 28 October 2026. The same page says the original paper's single-turn numbers are a different measurement. |
Left out
PLCBench, arXiv:2608.26882, submitted 27 August 2026, asks whether a tool-using agent can turn network access to a PLC into a sustained physical effect. It is catalogued. It does not generate IEC 61131-3 code, so it is not in either table.
PLCWorld's related work also names Spec2Control, SemaPLC, and earlier retrieval work. Those systems are not catalog entries, so this page does not describe them. The Spec2Control repository is summarized on the functional spec guide.
FAQ
What is AutoPLC?
AutoPLC is a research generator for vendor-specific Structured Text. The paper, arXiv:2412.02410, targets Siemens SCL in TIA Portal and CODESYS ST. It plans, retrieves cases and vendor APIs, then repairs code against the vendor compiler. The repository is MIT and includes that code. It is a research prototype, not a plant programming product.
What is LADX?
LADX is a browser workbench, not a paper. The homepage describes ladder on a canvas, Structured Text checked by its LADV compiler, and conversion to Siemens SCL, Rockwell, and PLCopen XML. Chat runs a validator and a seal-in check, and can send errors back to the model. The site says the workbench is Apache-2.0. A repository URL was not on the pages checked 9 November 2026. The chat page says a check proves code is well formed, not that it is correct, and that simulation is not a safety case.
What is LLM4PLC?
LLM4PLC is a 2024 research pipeline, arXiv:2401.05443, that loops a model with a grammar check, a compiler, and the NuXmv model checker to produce Structured Text. The authors also fine-tune with LoRA. The public repository has code and prompts, and the README links LoRA weights. The repository states no license. On their Fischertechnik testbed they report generation success moving from 47% to 72%. That figure is that study.
What is Agents4PLC?
Agents4PLC is a 2024 multi-agent research framework for Structured Text, arXiv:2410.14209, with retrieval, planning, coding, debugging, and validation against a compiler, nuXmv, and PLCverif. On the authors' own Easy set, the best verifiable rate they report is 68% and the best pass rate is 50%, both with GPT-4o. The release repository is Apache-2.0. Its README says the full agent implementation is withheld.
What is the plant-aware PLC agent?
Kersting and Benndorf, arXiv:2610.28160, describe a chat copilot for Mitsubishi GX Works3 Structured Text on one iQ-R R04 sorting plant. It retrieves that plant's I/O list, labels, module configuration, and existing programs. The engineer requests code, triggers compilation, and confirms deployment. Figure 2 names any OpenAI-compatible model or local DeepSeek Coder V2. A scored evaluation is planned. A repository and a price are not stated.
Can these PLC research scores be compared?
No. LLM4PLC reports a lab testbed and an expert score. Agents4PLC and AutoPLC report compilation and formal checks on their own tasks. PLCWorld and AutoFactory-Bench report closed-loop simulation, and AutoFactory-Bench says its agent runs are not the original paper's single-turn numbers. arXiv:2610.28160 gives no rate to sort. Do not sort them into one winner.
Sources
The plant-aware agent paper was opened 12 November 2026. Earlier papers and repositories on this page were opened 9 November 2026. On that day the AutoFactory-Bench method URL redirected to /contribute, so the benchmark row uses the homepage and the leaderboard. Quote the source with any percentage.