mlsanityData to 14 Oct 2026

Agents4PLC: Automating Closed-loop PLC Code Generation and Verification in Industrial Control Systems using LLM-based Agents

arXiv 2410.14209 ↗First posted 18 Oct 2024cs.SEcited by 26

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

In industrial control systems, the generation and verification of Programmable Logic Controller (PLC) code are critical for ensuring operational efficiency and safety. While Large Language Models (LLMs) have made strides in automated code generation, they often fall short in providing correctness guarantees and specialized support for PLC programming. To address these challenges, this paper introduces Agents4PLC, a novel framework that not only automates PLC code generation but also includes code-level verification through an LLM-based multi-agent system. We first establish a comprehensive benchmark for verifiable PLC code generation area, transitioning from natural language requirements to human-written-verified formal specifications and reference PLC code. We further enhance our `agents' specifically for industrial control systems by incorporating Retrieval-Augmented Generation (RAG), advanced prompt engineering techniques, and Chain-of-Thought strategies. Evaluation against the benchmark demonstrates that Agents4PLC significantly outperforms previous methods, achieving superior results across a series of increasingly rigorous metrics. This research not only addresses the critical challenges in PLC programming but also highlights the potential of our framework to generate verifiable code applicable to real-world industrial applications.

Key facts. Cited by 26 papers in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 30 of its 70 references that are in the map. First posted on arXiv 18 Oct 2024.

Builds on

30 of 70 references.

Closest ancestors · 7

Same direction, newest first

  1. 2024Large Language Model-Based Agents for Software Engineering: A Survey4 Sep
  2. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
  3. 2024Agentless: Demystifying LLM-based Software Engineering Agents1 Jul
  4. 2024MapCoder: Multi-Agent Code Generation for Competitive Problem Solving18 May
  5. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May
  6. 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challenges14 Jan
  7. 2023ChatDev: Communicative Agents for Software Development16 Jul

Other references · 23

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  2. 2023A Survey on Large Language Model based Autonomous Agentscited by 2,242
  3. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  4. 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,808
  5. 2022Competition-Level Code Generation with AlphaCodecited by 1,462
  6. 2023The Rise and Potential of Large Language Model Based Agents: A Surveycited by 1,439
  7. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
  8. 2024ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Toolscited by 1,121
  9. 2023StarCoder: may the source be with you!cited by 799
  10. 2024A Survey on the Memory Mechanism of Large Language Model based Agentscited by 634
  11. 2024Understanding the planning of LLM agents: A surveycited by 421
  12. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
11 more
  1. 2024AutoSafeCoder: A Multi-Agent Framework for Securing LLM Code Generation through Static Analysis and Fuzz Testingcited by 35
  2. 2024LLM4PLC: Harnessing Large Language Models for Verifiable Programming of PLCs in Industrial Control Systemscited by 21
  3. 2024Automated C/C++ Program Repair for High-Level Synthesis via Large Language Modelscited by 18
  4. 2023Supersonic: Learning to Generate Source Code Optimizations in C/C++cited by 16
  5. 2023FRANC: A Lightweight Framework for High-Quality Code Generationcited by 14
  6. 2021Generalizing to New Domains by Mapping Natural Language to Lifted LTLcited by 11
  7. 2023LLM-based Control Code Generation using Image Recognitioncited by 10
  8. 2023ChatGPT for PLC/DCS Control Logic Generationcited by 9
  9. 2022K-ST: A Formal Executable Semantics of the Structured Text Language for PLCscited by 6
  10. 2024Generating Java Methods: An Empirical Assessment of Four AI-Based Code Assistantscited by 6
  11. 2024Automated Control Logic Test Case Generation using Large Language Modelscited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 1; 2025: 13; 2026: 12.

26 papers.

Sort:

By area:

  1. 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 116
  2. 2025A Survey on Trustworthy LLM Agents: Threats and Countermeasurescited by 96
  3. 2025A Comprehensive Survey on Multi-Agent Cooperative Decision-Making: Scenarios, Approaches, Challenges and Perspectivescited by 27
  4. 2025Leveraging LLM Agents and Digital Twins for Fault Handling in Process Plantscited by 9
  5. 2025A Survey of Foundation Models for IoT: Taxonomy and Criteria-Based Analysiscited by 5
  6. 2026InCoder-32B-Thinking: Industrial Code World Model for Thinkingcited by 4
  7. 2024AutoPLC: Generating Vendor-Aware Structured Text for Programmable Logic Controllerscited by 3
  8. 2025Agent-as-a-Service based on Agent Networkcited by 3
  9. 2025EvolMathEval: Towards Evolvable Benchmarks for Mathematical Reasoning via Evolutionary Testingcited by 3
  10. 2025Designing LLM-based Multi-Agent Systems for Software Engineering Tasks: Quality Attributes, Design Patterns and Rationalecited by 3
  11. 2025Retrieval-Augmented Fine-Tuning With Preference Optimization For Visual Program Generationcited by 2
  12. 2025Capability-Driven Skill Generation with LLMs: A RAG-Based Approach for Reusing Existing Libraries and Interfacescited by 2
14 more
  1. 2025Beyond touch-based human-machine interface: Control your machines in natural language by utilizing large language models and OPC UAcited by 1
  2. 2025Vendor-Aware Industrial Agents: RAG-Enhanced LLMs for Secure On-Premise PLC Code Generationcited by 1
  3. 2026From Thinker to Society: Security in Hierarchical Autonomy Evolution of AI Agentscited by 1
  4. 2026Foundation-Model-Based Agents in Industrial Automation: Purposes, Capabilities, and Open Challengescited by 1
  5. 2025Lifecycle-Aware code generation: Leveraging Software Engineering Phases in LLMscited by 0
  6. 2026LLM-VA: Resolving the Jailbreak-Overrefusal Trade-off via Vector Alignmentcited by 0
  7. 2026Automating Cause-Effect Specification with Knowledge Graphs and Large Language Modelscited by 0
  8. 2026RAG-Based Auto-Configuration for Industrial Fieldbus Devicescited by 0
  9. 2026AI Control Scientist: LLM-driven Agentic System for Automated Control Designcited by 0
  10. 2026PLCBench: Can Autonomous LLM Agents Turn PLC Access into Sustained Physical Impact?cited by 0
  11. 2026Large Language Models in the Loop: A Stability- and Network-Aware Survey in Networked Control, Cyber-Physical, and Multi-Agent Systemscited by 0
  12. 2026Requirement-Bound Verified Commissioning: A Frozen Four-Billion-Parameter Local Model as a Candidate Generator under an External Acceptance Layer with Verification and Release Authoritycited by 0
  13. 2026From Dead Code and Static Requirements to Working Engines: Software Revival with Coding Agentscited by 0
  14. 2026PLCWorld: Benchmarking LLM-Generated PLC Programs in Closed-Loop Plant Simulationcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2026SemaPLC: A Project-Grounded, Verification-Gated Agent Harness for PLC Code Generation
  2. 2024MCCoder: Streamlining Motion Control with LLM-Assisted Code Generation and Rigorous Verification
  3. 2026LLM-Based Multi-Agent Systems for Code Generation: A Multi-Vocal Literature Review
  4. 2025Autonomous Control Leveraging LLMs: An Agentic Framework for Next-Generation Industrial Automation
  5. 2025AutoFSM: A Multi-agent Framework for FSM Code Generation with IR and SystemC-Based Testing
  6. 2026ChipMATE: Multi-Agent Training via Reinforcement Learning for Enhanced RTL Generation
  7. 2025PAT-Agent: Autoformalization for Model Checking
  8. 2024MAGE: A Multi-Agent Engine for Automated RTL Code Generation