Loading [a11y]/accessibility-menu.js
LLM-based and Retrieval-Augmented Control Code Generation | IEEE Conference Publication | IEEE Xplore

LLM-based and Retrieval-Augmented Control Code Generation


Abstract:

Control code is designed and implemented for industrial automation applications that manage power plants, petrochemical processes, or steel production. Popular large lang...Show More

Abstract:

Control code is designed and implemented for industrial automation applications that manage power plants, petrochemical processes, or steel production. Popular large language models (LLM) can synthesize low-level control code in the Structured Text programming notation according to the standard IEC 61131-3, but are not aware of proprietary control code function block libraries, which are often used in practice. To automate control logic implementation tasks, we proposed a retrieval-augmented control code generation method that can integrate such function blocks into the generated code. With this method control engineers can benefit from the code generation capabilities of LLMs, re-use proprietary and well-tested function blocks, and speed up typical programming tasks significantly. We have evaluated the method using a prototypical implementation based on GPT-4, LangChain, Open-PLC, and the open-source OSCAT function block library. In several spot sample tests, we successfully generated IEC 61131-3 ST code that integrated the desired function blocks, could be compiled, and validated through simulations.CCS CONCEPTS• Software and its engineering Automatic programming; Command and control languages; • Applied computing → Computer-aided design; • Computing methodologies → Natural language processing.
Date of Conference: 20-20 April 2024
Date Added to IEEE Xplore: 30 October 2024
ISBN Information:
Conference Location: Lisbon, Portugal

1 Introduction

In industrial automation, engineers design and implement control logic code that processes a vast amount of sensor data and sends control signals to actuators, such as motors, pumps, robots, or heat exchangers [10]. This control logic code thus manages many complex production processes, e.g., chemical refineries, power plants, and mines. Programming control logic is still a largely manual process [12], [26]. However, recently LLMs have been found to be useful for generating programs according to the programming languages used in industrial automation [14].

Contact IEEE to Subscribe

References

References is not available for this document.