arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.15809cs.SEcs.AI
收藏

用于PLC/DCS控制逻辑生成的ChatGPT

ChatGPT for PLC/DCS Control Logic Generation

ABB Research(ABB研究院)

Heiko Koziolek, Sten Gruener, Virendra Ashiwal

AI总结:

本文通过构建100个提示探索ChatGPT(GPT-4)从自然语言生成PLC/DCS控制逻辑的能力,发现其能生成语法正确的IEC 61131-3结构化文本代码并具备推理能力,为后续LLM基准测试奠定基础。

摘要:

提供生成式人工智能的大语言模型(LLMs)已在支持软件工程师创建、总结、优化和记录源代码方面变得流行。目前尚不清楚LLMs如何在使用典型控制编程语言的编程任务中支持控制工程师。研究人员已经探索了GitHub CoPilot或DeepMind AlphaCode用于源代码生成,但尚未涉及控制逻辑编程。本文的贡献是一项探索性研究,为此我们创建了10个代表性类别中的100个LLM提示,以分析从自然语言生成PLC和DCS控制逻辑的情况。我们使用GPT-4 LLM通过ChatGPT生成答案来测试这些提示。它在许多情况下生成了语法正确的IEC 61131-3结构化文本代码,并展示了有用的推理能力,可以提高控制工程师的生产力。我们的提示集合是更正式的LLM基准测试的基础,用于测试和比较此类模型在控制逻辑生成方面的表现。

英文摘要:

Large language models (LLMs) providing generative AI have become popular to support software engineers in creating, summarizing, optimizing, and documenting source code. It is still unknown how LLMs can support control engineers using typical control programming languages in programming tasks. Researchers have explored GitHub CoPilot or DeepMind AlphaCode for source code generation but did not yet tackle control logic programming. The contribution of this paper is an exploratory study, for which we created 100 LLM prompts in 10 representative categories to analyze control logic generation for of PLCs and DCS from natural language. We tested the prompts by generating answers with ChatGPT using the GPT-4 LLM. It generated syntactically correct IEC 61131-3 Structured Text code in many cases and demonstrated useful reasoning skills that could boost control engineer productivity. Our prompt collection is the basis for a more formal LLM benchmark to test and compare such models for control logic generation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑