ChatGPT for PLC/DCS Control Logic Generation
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) providing generative AI have become popular to support software engineers in creating, summarizing, optimizing, and documenting source code. It is still unknown how LLMs can support control engineers using typical control programming languages in programming tasks. Researchers have explored GitHub CoPilot or DeepMind AlphaCode for source code generation but did not yet tackle control logic programming. The contribution of this paper is an exploratory study, for which we created 100 LLM prompts in 10 representative categories to analyze control logic generation for of PLCs and DCS from natural language. We tested the prompts by generating answers with ChatGPT using the GPT-4 LLM. It generated syntactically correct IEC 61131-3 Structured Text code in many cases and demonstrated useful reasoning skills that could boost control engineer productivity. Our prompt collection is the basis for a more formal LLM benchmark to test and compare such models for control logic generation.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 7 of its 22 references that are in the map. First posted on arXiv 25 May 2023.
Builds on
7 of 22 references.
References · 7
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2023A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPTcited by 612
- 2023A Comprehensive Survey on Pretrained Foundation Models: A History from BERT to ChatGPTcited by 364
- 2023The Impact of AI on Developer Productivity: Evidence from GitHub Copilotcited by 264
- 2023A Categorical Archive of ChatGPT Failurescited by 167
- 2023ChatGPT Prompt Patterns for Improving Code Quality, Refactoring, Requirements Elicitation, and Software Designcited by 66
- 2022Automatic Code Documentation Generation Using GPT-3cited by 37
Built on by
Citing papers per year: 2023: 1; 2024: 3; 2025: 3; 2026: 2.
9 papers.
- 2024Agents4PLC: Automating Closed-loop PLC Code Generation and Verification in Industrial Control Systems using LLM-based Agentscited by 25
- 2024Large Language Model-Enabled Multi-Agent Manufacturing Systemscited by 14
- 2024AutoPLC: Generating Vendor-Aware Structured Text for Programmable Logic Controllerscited by 2
- 2025Retrieval-Augmented Fine-Tuning With Preference Optimization For Visual Program Generationcited by 2
- 2025Capability-Driven Skill Generation with LLMs: A RAG-Based Approach for Reusing Existing Libraries and Interfacescited by 2
- 2023Natural Language based Context Modeling and Reasoning for Ubiquitous Computing with Large Language Models: A Tutorialcited by 1
- 2025Beyond touch-based human-machine interface: Control your machines in natural language by utilizing large language models and OPC UAcited by 1
- 2026Navigating Ethical AI Challenges in the Industrial Sector: Balancing Innovation and Responsibilitycited by 0
- 2026An LLM-Driven Workflow for Automated Process Control Strategy Generation and Tuning from Dynamic Process Modelscited by 0
- 2026An LLM-Driven Workflow for Automated Process Control Strategy Generation and Tuning from Dynamic Process Models23 Jul 2026
- 2026Navigating Ethical AI Challenges in the Industrial Sector: Balancing Innovation and Responsibility14 Jan 2026
- 2025Beyond touch-based human-machine interface: Control your machines in natural language by utilizing large language models and OPC UA13 Oct 2025
- 2025Capability-Driven Skill Generation with LLMs: A RAG-Based Approach for Reusing Existing Libraries and Interfaces6 May 2025
- 2025Retrieval-Augmented Fine-Tuning With Preference Optimization For Visual Program Generation23 Feb 2025
- 2024AutoPLC: Generating Vendor-Aware Structured Text for Programmable Logic Controllers3 Dec 2024
- 2024Agents4PLC: Automating Closed-loop PLC Code Generation and Verification in Industrial Control Systems using LLM-based Agents18 Oct 2024
- 2024Large Language Model-Enabled Multi-Agent Manufacturing Systems4 Jun 2024
- 2023Natural Language based Context Modeling and Reasoning for Ubiquitous Computing with Large Language Models: A Tutorial24 Sep 2023
Similar, not cited
Close in wording, no citation either way
- 2024Capabilities of Large Language Models in Control Engineering: A Benchmark Study on GPT-4, Claude 3 Opus, and Gemini 1.0 Ultra
- 2026LLM-Based Multi-Agent Systems for Code Generation: A Multi-Vocal Literature Review
- 2025Automating Modelica Module Generation Using Large Language Models: A Case Study on Building Control Description Language
- 2026LLM4RTL: Tool-Assisted LLM for RTL Generation
- 2025Evaluating and Improving Large Language Models for Competitive Program Generation
- 2024Enhancing Code Generation Performance of Smaller Models by Distilling the Reasoning Ability of LLMs
- 2025Empowering AI to Generate Better AI Code: Guided Generation of Deep Learning Projects with LLMs
- 2023Chain-of-Thought in Neural Code Generation: From and For Lightweight Language Models