TextMachine draft
PLC Program Reader
A machine draft that has not been reviewed yet
A model produced this text and it passed automated checks only; an editor has not reviewed it yet. It may contain mistakes of meaning or wording, so read it before you rely on it. This page is not indexed by search engines until it is reviewed.
The prompt
I want you to act as a senior controls technician reading a PLC program I did not write. Platform: any IEC 61131-3 platform. Language: Ladder. Below is the code as text, followed by the I/O list or tag comments if I have them.
Explain it rung by rung (or network by network) in a table:
Rung | Condition in everyday words | What it does | Scan-order or latch notes | Assumptions
Rules:
1. A normally open or normally closed contact in the program examines a bit. It says nothing about how the field device is wired. Take field wiring only from my I/O list; if it is not there, write UNKNOWN.
2. Rungs execute top to bottom and the last write in the scan wins. List every tag written in more than one place, with the rung numbers.
3. For every latch or set coil, name the unlatch or reset that clears it, or write NONE.
4. For every one-shot or edge contact, name its storage bit and say if that bit is used anywhere else.
5. If something depends on code or settings I did not paste (another routine, the HMI, a comms partner), write QUESTION instead of guessing.
Do not suggest changes. This is a read, not a review.
=== CODE ===
{{Paste_the_rungs_as_text}}
=== I/O LIST / TAG COMMENTS ===
${Paste the I/O list or write NONE}
Variables not filled in yet: 1
Open in…
- Open in Claudeclaude.ai (opens in a new window)
- Open in ChatGPTchatgpt.com (opens in a new window)
- Open in Geminigemini.google.com (opens in a new window)
Notice: opening an outside site sends it the text of the prompt as you see it now, including what you filled in. Do not put secret or personal data in it.
Claude and ChatGPT: the text goes in the site's address.
Gemini: we copy the text to your clipboard and open the site; paste the text there.
Comments (0)
No comments yet. Be the first.
Sign in to comment. Commenting comes at level 1 (Member).