AutoPLC: Generating Vendor-Aware Structured Text for Programmable Logic Controllers
Donghao Yang, Aolang Wu, Tianyi Zhang, Li Zhang, Fang Liu, Xiaoli Lian, Yuming Ren, Jiaji Tian, Xiaoyin Che

TL;DR
AutoPLC is an innovative framework that automatically generates vendor-specific Structured Text code for PLCs from natural language, reducing learning barriers and improving productivity in industrial automation.
Contribution
It introduces a novel four-stage generation process combining planning, case retrieval, API recommendation, and validation, tailored for vendor-specific PLC programming languages.
Findings
Achieves over 90% compilation success on a 914-task benchmark
Outperforms baseline methods in code generation quality
Reduces per-task cost to approximately $0.13
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSemantic Web and Ontologies · Multi-Agent Systems and Negotiation · Service-Oriented Architecture and Web Services
MethodsLib
