LLM4SFC: Sequential Function Chart Generation via Large Language Models
Not on the map. Why?
Abstract (arXiv)
While Large Language Models (LLMs) are increasingly used for synthesizing textual PLC programming languages like Structured Text (ST) code, other IEC 61131-3 standard graphical languages like Sequential Function Charts (SFCs) remain underexplored. Generating SFCs is challenging due to graphical nature and ST actions embedded within, which are not directly compatible with standard generation techniques, often leading to non-executable code that is incompatible with industrial tool-chains In this work, we introduce LLM4SFC, the first framework to receive natural-language descriptions of industrial workflows and provide executable SFCs. LLM4SFC is based on three components: (i) A reduced structured representation that captures essential topology and in-line ST and reduced textual verbosity; (ii) Fine-tuning and few-shot retrieval-augmented generation (RAG) for alignment with SFC programming conventions; and (iii) A structured generation approach that prunes illegal tokens in real-time to ensure compliance with the textual format of SFCs. We evaluate LLM4SFC on a dataset of real-world SFCs from automated manufacturing projects, using both open-source and proprietary LLMs. The results show that LLM4SFC reliably generates syntactically valid SFC programs effectively bridging graphical and textual PLC languages, achieving a generation generation success of 75% - 94%, paving the way for automated industrial programming.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 7 of its 27 references that are in the map. First posted on arXiv 7 Dec 2025.
Builds on
7 of 27 references.
References · 7
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2022Efficient Training of Language Models to Fill in the Middlecited by 255
- 2022What's Behind the Mask: Understanding Masked Graph Modeling for Graph Autoencoderscited by 82
- 2024A Performance Study of LLM-Generated Code on Leetcodecited by 49
- 2024Exploring LLM Support for Generating IEC 61131-3 Graphic Language Programscited by 2
- 2025MATCH: Task-Driven Code Evaluation through Contrastive Learningcited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026LLM4RTL: Tool-Assisted LLM for RTL Generation
- 2025Evaluating Large Language Models for Functional and Maintainable Code in Industrial Settings: A Case Study at ASML
- 2024Agents4PLC: Automating Closed-loop PLC Code Generation and Verification in Industrial Control Systems using LLM-based Agents
- 2025Flow2Code: Evaluating Large Language Models for Flowchart-based Code Generation Capability
- 2025ChartCoder: Advancing Multimodal Large Language Model for Chart-to-Code Generation
- 2025GUIDE: LLM-Driven GUI Generation Decomposition for Automated Prototyping
- 2024C2: Scalable Auto-Feedback for LLM-based Chart Generation
- 2026RealChart2Code: Advancing Chart-to-Code Generation with Real Data and Multi-Task Evaluation