Skip to content

A collection of prompts for large language models to support control logic engineering.

License

Notifications You must be signed in to change notification settings

hkoziolek/control-logic-generation-prompts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Control Logic Generation Prompts

This repository contains a collection of natural language prompts to generate control logic in IEC 61131-3 Structured Text using Large Language Models (LLM). The collection is structured in categories:

  • Standard Algorithms
  • Mathematical Functions
  • PLC Programming Tasks
  • Process Control
  • Sequential Control
  • Interlocks
  • Diagnostics / Communication
  • Advanced Process Control
  • Various Engineering Inputs
  • Programmer Support

The complete list of prompts contains their exact formulation. The prompts are meant as initial examples to test the capabilities and limitations of LLMs in the context of control programming. Some of them are inspired by real engineering projects, but they are abstracted to be generally usable. The range of heterogeneous categories is intended to cover different aspects of control programming. The prompts may be refined and enhanced to improve the quality of the generated answers. Domain-specific prompt engineering patterns could be derived, which could then inform control engineers in formulating specific prompts for a task at hand.

For testing the capabilities of LLMs to generate source code in IEC 61131-3 Structured Text notation, we have fed the prompts to ChatGPT with the GPT-4 LLM, and saved the generated answers. An Excel Workbook is available to filter and sort the results. An exact replication of these answers is perhaps impossible due to the non-deterministic nature of LLMs. Still it should be possible to produce at least similarly useful answers with the same prompts.

About

A collection of prompts for large language models to support control logic engineering.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages