Skip to content

Automated PLC Programming Using a Multi-Task LLM System

Jul 2026 · International Conference on Control, Decision and Information Technologies · pp. 3280-3285 · 0 citations · 16 references

Abstract

Programmable Logic Controllers (PLCs) are central to industrial automation, yet their programming remains largely manual and time-consuming. While Large Language Models (LLMs) excel at general-purpose code generation, their use in industrial control is limited by tight coupling with physical hardware, constrained I/O signals, and strict safety requirements. We propose a novel approach to PLC code generation that takes as input structured lists of sensors and actuators from electrical CAD tools, together with the required control functionality. The task is formulated as generating machine-specific control functions grounded in available signals, ensuring physical implementability. The system is based on a single LLM adapted through multi-stage fine-tuning and enhanced with Retrieval-Augmented Generation (RAG). Experiments on error detection, code fixing, and code generation show that fine-tuning significantly improves performance. RAG provides strong gains in error detection and code generation, while offering limited benefit for code fixing, highlighting its task-dependent effectiveness.

View source

Similar papers

Book Open access Aug 2026

StarVerus: LLM-Powered Multi-Agent Collaboration for Industrial Rust Code Verification Automation

Creating code specifications is a crucial measure to improve the trustworthiness of many industrial systems implemented in Rust with high security requirements. Because writing specifications requires highly specialized professionals and is time-consuming, the automatic generation of specifications, enabled by large la...

Chao Jiang, Ding Wang, Dugang Liu et al. · 0 citations
#software testing Preprint Aug 2026

PLCBench: Can Autonomous LLM Agents Turn PLC Access into Sustained Physical Impact?

PLCBENCH is presented, to the authors' knowledge, the first real-PLC hardware-in-the-loop (HIL) framework for characterizing this cyber-to-physical capability and its boundaries and it combines vendor-native interaction, commercial PLC execution, closed-loop reduced-order process simulation, and independent outcome ver...

Yitian Zhou, Jing-Yu Zheng, Qi-Liang Jiang et al. · 0 citations
Preprint Aug 2026

SemaPLC: A Project-Grounded, Verification-Gated Agent Harness for PLC Code Generation

This work presents \textsc{SemaPLC}, a project-grounded and verification-gated agent harness assembled from conventional tools but governed by a strict completion rule, which raises the mean at every layer and most sharply at runtime.

Yan-Lun Tu, Hua-Can Wang, Zi-Yue Zhou et al. · 1 citation · ⚡1
Jul 2026

VTR-LLM: Multi-Agent LLM Framework for Automated Debugging of FPGA CAD Flows

VTR-LLM is presented, a fully automated, multi-agent framework for diagnosing and resolving failures in the Verilog-to-Routing (VTR) CAD flow, and can resolve 95% of all failures fully automatically, with robust performance across error categories.

Mohamed A. Elgammal, Jamie Wu, Lynne Liu et al. · 0 citations
Aug 2026

Evaluating LLMs in ROS robotic software code generation

This work constructs ROSDevEval, a specialized benchmark comprising 240 real-world ROS programming tasks, and conducts a comprehensive empirical study to evaluate four state-of-the-art LLMs alongside a specialized code assistant (GitHub Copilot), revealing a severe domain capability gap.

Yuxin Zhao, Xinjun Mao, Tanghaoran Zhang et al. · 0 citations
Preprint Jul 2026

Integrating High-Level Requirements to Low-Level Tests with Machine-Readable V&V Specifications

VNVSpec, an open-source framework that makes V&V specifications machine-readable and executable, is introduced, which can handle up to 10,000 requirements and is evaluated by self-application, in which it is continuously assessed in CI against its own specification.

M. Arief, Nur Ahmad Khatim, Ali Akarma et al. · 0 citations

Related blog posts

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.