AI-Generated PLC Code Reviewer
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
-
PLC Comment Translator
PromptsI 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…
-
Programming Logic Controller PLC interview questions and answers. Add S7400 Simens PLC and ABB PLC.
PromptsProgramming 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.
-
PLC Program Reader
PromptsI 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…
-
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…
-
Lower AI Generation Rate
PromptsAct 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…
-
Finding the company
PromptsI 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