SemaPLC: An Open-Source Agentic IDE for Generation, Verification, and Simulation of PLC Programs from Natural Language
Open Access
- 3 October 2026
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 180-185
Abstract
Programmable logic controllers (PLCs) run much of the world's industrial automation, but writing and validating their IEC~61131-3 Structured Text (ST) is time-consuming and expert-intensive. Large language models (LLMs) can draft ST from a natural-language description, but existing open-source PLC editors give users no way to check that the generated program behaves as specified, or to simulate it before deployment. We present SemaPLC, an open-source IDE that closes this gap. From a natural-language description, a model-agnostic LLM agent drafts ST and SemaPLC runs a closed loop over it: it compiles, deploys, and verifies the user's scenarios into a pass/fail behavioral report, repairing the code from feedbacks until it compiles and every scenario passes. It then renders a live in-browser process simulation alongside the ST source, an automatically derived ladder view, and real-time variables, all in synchronized panels. SemaPLC ships as two reusable open-source components, a web IDE and a PLC tool suite. Across classic control scenarios, SemaPLC turns natural-language prompts into behaviorally verified and simulated programs, putting a trustworthy, hardware-free PLC programming agent into a single browser tab.Keywords
This publication has 10 references indexed in Scilit:
- Sema Code: Decoupling AI Coding Agents into Programmable, Embeddable InfrastructurearXiv, 2026
- Agents4PLC: Automating Closed-Loop PLC Code Generation and Verification in Industrial Control Systems Using LLM-Based AgentsIEEE Transactions on Software Engineering, 2026
- LLM-based and Retrieval-Augmented Control Code Generation2024
- LLM4PLC: Harnessing Large Language Models for Verifiable Programming of PLCs in Industrial Control Systems2024
- From Natural Language Requirements to the Verification of Programmable Logic Controllers: Integrating FRET into PLCverif2023
- Self-Refine: Iterative Refinement with Self-Feedback2023
- Evaluating Large Language Models Trained on CodearXiv, 2021
- OpenPLC: An IEC 61,131–3 compliant open source industrial controller for cyber security researchComputers & Security, 2018
- Applying Model Checking to Industrial-Sized PLC ProgramsIEEE Transactions on Industrial Informatics, 2015
- An overview of model checking practices on verification of PLC softwareSoftware and Systems Modeling, 2014