AutoPLC
Models write Structured Text for CODESYS and Siemens controllers from requirements. The benchmark measures how often generated programs compile and how many errors the compiler reports.
The 914 tasks include 718 OSCAT functions, 151 Siemens library functions, and 45 competition problems. The repository also includes 23 separate Agents4PLC tasks.
- Made by
- Beihang University
- Released
- December 2024
- Kind
- Electronics
- Level
- University
- Scored
- Checked automatically
- Answers
- Code
- Tasks
- All public
- Measures
- Capability
- Language
- English
- Interaction
- Single turn
- Environment
- Code sandbox
- Items from
- Real work and use, Exams and contests
- Refresh
- One fixed set
- Run by
- Anyone
- Strongest model tested
-
Llama 3.1-8B #204 on the capability index
- Last model added
- September 2024
- Updated automatically
- No, from its paper
- Scores refreshed
- November 20th, 2026
In the authors’ words
Among the programming languages for Programmable Logic Controllers (PLCs), Structured Text (ST) is widely adopted for industrial automation due to its expressiveness and flexibility. However, major vendors implement ST with proprietary extensions and hardware-specific libraries - Siemens' SCL and CODESYS' ST each differ in syntax and functionality. This fragmentation forces engineers to relearn implementation details across platforms, creating substantial productivity barriers. To address this challenge, we developed AutoPLC, a framework capable of automatically generating vendor-aware ST code directly from natural language requirements. Our solution begins by building two essential knowledge sources tailored to each vendor's specifications: a structured API library containing platform-exclusive functions, and an annotated case database that captures real-world implementation experience. Building on these foundations, we created a four-stage generation process that combines step-wise planning (enhanced with a lightweight natural language state machine support for control logic), contextual case retrieval using LLM-based reranking, API recommendation guided by industrial data, and dynamic validation through direct interaction with vendor IDEs. Implemented for Siemens TIA Portal and the CODESYS platform, AutoPLC achieves 90%+ compilation success on our 914-task benchmark (covering general-purpose and process control functions), outperforming all selected baselines, at an average cost of only $0.13 per task. Experienced PLC engineers positively assessed the practical utility of the generated code, including cases that failed compilation. We open-source our framework at https://github.com/cangkui/AutoPLC.
Claude-3.5-Sonnet (snapshot unspecified) tops the leaderboard with 92.2% Qwen2.5-Coder (7B) leads with 9.88%
Best score per entry from the benchmark's paper, read on November 20th, 2026. A paper’s table doesn’t add newer models. The paper reports no overall score, so this is the plain mean of compilation pass rates on its three datasets. Where a model ran with several settings or harnesses, we keep its best. Names in gray aren't in our model list: fine-tunes, agent systems, products and older models. They don't count toward leaders. The best model we track is Qwen2.5-Coder (7B), at 9.88%. This view shows only models we track, each at its best.
- 1 Claude-3.5-Sonnet (snapshot unspecified) 92.2%
- 2 DeepSeek-Chat 23%
- 3 GPT-4o (snapshot unspecified) 21.4%
- 4 GLM-4-Plus 16.1%
- 5
Qwen2.5-Coder (7B) 9.88%
- 6
Llama 3.1-8B 2.21%
Source: The AutoPLC paper
- 1
Qwen2.5-Coder (7B) 9.88%
- 2
Llama 3.1-8B 2.21%
Source: The AutoPLC paper
| # | Entry | Score | Setting | Date | Source |
|---|---|---|---|---|---|
| 1 | Claude-3.5-Sonnet (snapshot unspecified) | 92.2% | AutoPLC | Official leaderboard | |
| 2 | DeepSeek-Chat | 23% | Official leaderboard | ||
| 3 | GPT-4o (snapshot unspecified) | 21.4% | Official leaderboard | ||
| 4 | GLM-4-Plus | 16.1% | Official leaderboard | ||
| 5 | | 9.88% | Sep 2024 | Official leaderboard | |
| 6 | | 2.21% | Jul 2024 | Official leaderboard |
| # | Model | Score | Setting | Date | Source |
|---|---|---|---|---|---|
| 1 | | 9.88% | Sep 2024 | Official leaderboard | |
| 2 | | 2.21% | Jul 2024 | Official leaderboard |
Everything the board measures
The benchmark’s paper publishes 9 numbers for each entry: the headline score, 3 parts of the test and 5 other measures. Rank entries by any one, compare them all in the table, or plot any two. Each row is the entry’s best run on the headline score.
- Headline
- Headline score
- Parts
- LGF (SCL)
- Competition (SCL)
- OSCAT (ST)
- Other measures
- LGF average errors
- Competition average errors
- OSCAT average errors
- Agents4PLC pass rate
- Agents4PLC validation rate
- Headline
- Headline score
- Parts
- LGF (SCL)
- Competition (SCL)
- OSCAT (ST)
- Other measures
- LGF average errors
- Competition average errors
- OSCAT average errors
- Agents4PLC pass rate
- Agents4PLC validation rate
- Headline
- Headline score
- Parts
- LGF (SCL)
- Competition (SCL)
- OSCAT (ST)
- Other measures
- LGF average errors
- Competition average errors
- OSCAT average errors
- Agents4PLC pass rate
- Agents4PLC validation rate
- Meta
- Qwen
- not in our model list
Scores over time
All the scores we have, one dot each, so a model tested at several settings appears more than once.
Source: Official AutoPLC leaderboard
No lab model card reports it yet
We read the headline results of 546 launch posts from 59 labs, and none of them list this benchmark.
More in Engineering and CAD
- EEBench In use 13 electrical-engineering circuit and PCB design tasks graded by deterministic build checks, simulation and BOM constraints. No LLM judge.
Gemini 4 Carbon 83.9%
- 3DCodeBench In use Agentic procedural 3D modeling via code: author engine-ready 3D assets through software APIs. Graded for executability and shape fidelity.
LongCat-2.5 55.4%
- CADGenBench Only in system cards Agents construct CAD models from design prompts. The generation split is graded for executability and geometric correctness. Claude Fable 5 45.1%
- CADmium Fusion 360 Reconstruction Only in system cards Models reconstruct CAD parts from text descriptions of Fusion 360 designs. The authors measure shape distance and count invalid outputs. CADmium-3B 191.9
- PartBench Only in system cards Parametric mechanical part design and CAD-style generation, graded for geometric and manufacturing fidelity. Grok 4.6 58.5%
- Razavi-Bench Not in model cards Models explain what happens in analog circuits and why. A language model awards up to four points per answer against a reference and a rubric.
Gemini 4 Carbon 98.3%
Data audit
9 of 10 checks pass, 1 warning. Look first at the Newest score check. The newest came 2 years ago, in September 2024, for Qwen2.5-Coder (7B). Every benchmark
Catalog record 2 pass
- Pass Task access All tasks are public.
- Pass Confidence Checked against a primary source.
Scores 1 warning 3 pass 1 note
- Pass Independent runs Scores from the benchmark’s paper (6 entries).
- Pass Models scored 2 models we track, plus 4 other entries on its leaderboard.
- Warning Newest score The newest came 2 years ago, in September 2024, for Qwen2.5-Coder (7B).
- Note Frontier models None of the top 10 has a score. The strongest tested is Llama 3.1-8B (#204).
- Pass Headroom The best is 9.88%, under 85%, so it still separates models.
Leaderboard import 3 pass
- Pass Importer We read the board on arxiv.org: 2 rows for models we track and 4 other entries at the last read.
- Pass Last read November 20th, 2026.
- Pass Read worked The last read worked.
Consistency 1 pass 2 notes
- Note Lab claims No model has both a lab number and an independent run.
- Pass Known issues No published audit found problems.
- Note Epoch AI review Epoch AI hasn’t reviewed it.