English

LLM-based Control Code Generation using Image Recognition

Software Engineering 2023-11-20 v1

Abstract

LLM-based code generation could save significant manual efforts in industrial automation, where control engineers manually produce control logic for sophisticated production processes. Previous attempts in control logic code generation lacked methods to interpret schematic drawings from process engineers. Recent LLMs now combine image recognition, trained domain knowledge, and coding skills. We propose a novel LLM-based code generation method that generates IEC 61131-3 Structure Text control logic source code from Piping-and-Instrumentation Diagrams (P&IDs) using image recognition. We have evaluated the method in three case study with industrial P&IDs and provide first evidence on the feasibility of such a code generation besides experiences on image recognition glitches.

Keywords

Cite

@article{arxiv.2311.10401,
  title  = {LLM-based Control Code Generation using Image Recognition},
  author = {Heiko Koziolek and Anne Koziolek},
  journal= {arXiv preprint arXiv:2311.10401},
  year   = {2023}
}

Comments

8 pages, 8 figures

R2 v1 2026-06-28T13:24:05.521Z