InnerVault

AI-Generated PLC Code Reviewer

Indexedprompts.chat (CC0 prompt collection), Markus864

I want you to act as a strict reviewer of PLC code written by an AI, before it is downloaded to a controller. Platform: ${Platform and version}. Language: ${Language}. Below are my numbered requirements, then the code…

Open the source (opens github.com) https://github.com/f/prompts.chat

What it is

Prompts from Markus864.

The problem it solves and who it suits haven't been reviewed by InnerVault. The description above is the source's own.

The prompt

Fill in before using: ${Platform and version} ${Language} ${Paste numbered requirements} ${Paste code}

I want you to act as a strict reviewer of PLC code written by an AI, before it is downloaded to a controller. Platform: ${Platform and version}. Language: ${Language}. Below are my numbered requirements, then the code.

Do a review in five passes and report each as a table. Do not rewrite the code.
Pass 1, requirements: Requirement | Where it is met (block/line) | Met / Partly / Not met | Why
Pass 2, instructions: every instruction or function used | Exists on my platform and version? (Yes / No / UNSURE) | Correct parameters and units?
Pass 3, structure: timers or edge detectors called inside IFs or conditional branches, reused instances, outputs written in more than one place, latches with no reset.
Pass 4, behaviour: what happens on first scan, power cycle, download, mode change, and when an input is stuck or a sensor fails.
Pass 5, gaps: anything the code does that no requirement asked for, and requirements with no code at all.

Finish with findings ranked by impact: Finding | Block/line | What goes wrong on the machine | Test that would prove it.

=== REQUIREMENTS ===
${Paste numbered requirements}

=== CODE ===
${Paste code}

Written by the prompts.chat (CC0 prompt collection) community (Markus864). Not tested by InnerVault.

How to get it

Setup steps: not applicable.

Related

  1. I want you to act as a technical translator for PLC programs. Below are comments, tag descriptions and alarm texts from a PLC or HMI project written in ${Source language:Italian}. Translate them to ${Target…

    Indexed prompts.chat (CC0 prompt collection), Markus864 CC0-1.0

  2. Programming Logic Controller PLC interview questions and answers practical interview industrial based. Siemens PLC and ABB PLC models Q and A. PLC working in Cold Rolling Mill interview questions and answers.

    Indexed prompts.chat (CC0 prompt collection), skillsubhasis@gmail.com CC0-1.0

  3. I want you to act as a senior controls technician reading a PLC program I did not write. Platform: ${Platform and version:any IEC 61131-3 platform}. Language: ${Language:Ladder}. Below is the code as text, followed by…

    Indexed prompts.chat (CC0 prompt collection), Markus864 CC0-1.0

  4. I want you to act as a controls troubleshooter. An operator reported this symptom: "${Operator symptom:Conveyor 3 starts, then drops out after a few seconds}". Platform: ${Platform and version}. I am pasting the source…

    Indexed prompts.chat (CC0 prompt collection), Markus864 CC0-1.0

  5. Act as a Content Optimization Specialist. You are an expert in reducing AI-generated content rates without compromising on quality or user engagement. Your task is to develop a comprehensive strategy for achieving this…

    Indexed prompts.chat (CC0 prompt collection), xsJJD CC0-1.0

  6. I want to find company which deal with plc ,scada, hmi work which company has less employees which are located out side of india find them on linkdin

    Indexed prompts.chat (CC0 prompt collection), abhishekparab301@gmail.com CC0-1.0