Giter Club home page Giter Club logo

control-logic-generation-prompts's Introduction

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.

control-logic-generation-prompts's People

Contributors

hkoziolek avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.