Prompt

0 copies · 0 said it worked

Markus@markus864·
Coding· Chat UI

Strict five-pass review of AI-written PLC code before controller download

A reviewer prompt that checks AI-generated PLC code against numbered requirements across five tabled passes (requirements, instructions, structure, behaviour, gaps) and ends with ranked findings, without rewriting the code.

People use this for

  • plc code review prompt
  • ai generated plc code check
  • ladder logic review before download
  • check plc program against requirements
  • industrial controller code safety review
Imported · UnclaimedCC0

Imported on Nov 29, 2026 from AI-Generated PLC Code Reviewer . License observed at the source on Nov 29, 2026: CC0.

Are you the author?Claim this profileRequest removal

Fill in the variables

Prompt

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}}

No result recorded for this import yet. Tried it? File a report so the next person knows how it went.

Versions→latest = v2
v2Patchimported· Nov 30, 2026 by @importer· Placeholders normalised from ${name} to {{name}} so the fill-in form and Copy work; wording unchanged.Permalink
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{platform_and_version}}. Language: ${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{paste_numbered_requirements}}

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

Tried it

Structured reports from people who ran this prompt. They roll up into the per-model badges above.

No one has filed a report yet. Try the prompt and be the first.

License: CC0v2 · updated Nov 30, 2026 · first published Nov 29, 2026

Comments

No comments yet. If you tried this prompt, say how it went.