v2 of 2

Permanent link · Nov 30, 2026

Markus@markus864Coding

Write PLC ladder logic for a motor start/stop with interlocks

Asks the model to act as a PLC programmer and produce ladder rungs for a motor start/stop circuit with stop-dominant seal-in, latched overload fault, rising-edge reset, and permissive interlocks, plus a test table.

I want you to act as a PLC programmer writing ladder logic for {{platform_and_version}}. Write a motor start/stop circuit for {{motor_name}}.

Inputs, with what TRUE means:
- {{start_tag}} (normally open pushbutton, TRUE = pressed)
- {{stop_tag}} (wired normally closed, TRUE = healthy, not pressed)
- {{overload_tag}} (TRUE = overload healthy)
- {{permissive_tags}} (TRUE = OK to run)
- {{reset_tag}} (normally open, TRUE = pressed)
Outputs: {{run_output}}, {{fault_tag}}.

Requirements:
1. Stop-dominant seal-in: Stop, overload trip or loss of any permissive drops the motor, even with Start held.
2. Overload trip latches M1_Fault. Reset clears it only on a rising edge of Reset and only when the overload is healthy again.
3. Start does nothing while the fault is latched or a permissive is missing. No restart on its own when a permissive returns.
4. Each output is written in exactly one rung.
Use only instructions that exist on my platform. If you are unsure one exists, mark it UNSURE.

Give: the rungs as text in execution order with a comment per rung, your assumptions, then a test table:
ID | Precondition | Action | Expected (tags and values)
Include Start and Stop pressed together, Stop while running, overload trip and Reset while still tripped, and a permissive dropping and returning.

Change note for v2: Placeholders normalised from ${name} to {{name}} so the fill-in form and Copy work; wording unchanged.

Result

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 PLC programmer writing ladder logic for ${Platform and version{platform_and_version}}. Write a motor start/stop circuit for ${Motor name:Conveyor_M1{motor_name}}.

Inputs, with what TRUE means:
- ${Start tag:Start_PB{start_tag}} (normally open pushbutton, TRUE = pressed)
- ${Stop tag:Stop_PB{stop_tag}} (wired normally closed, TRUE = healthy, not pressed)
- ${Overload tag:M1_OL_OK{overload_tag}} (TRUE = overload healthy)
- ${Permissive tags:Downstream_Running, Lube_Pressure_OK{permissive_tags}} (TRUE = OK to run)
- ${Reset tag:Reset_PB{reset_tag}} (normally open, TRUE = pressed)
Outputs: ${Run output:M1_Run{run_output}}, ${Fault tag:M1_Fault{fault_tag}}.

Requirements:
1. Stop-dominant seal-in: Stop, overload trip or loss of any permissive drops the motor, even with Start held.
2. Overload trip latches M1_Fault. Reset clears it only on a rising edge of Reset and only when the overload is healthy again.
3. Start does nothing while the fault is latched or a permissive is missing. No restart on its own when a permissive returns.
4. Each output is written in exactly one rung.
Use only instructions that exist on my platform. If you are unsure one exists, mark it UNSURE.

Give: the rungs as text in execution order with a comment per rung, your assumptions, then a test table:
ID | Precondition | Action | Expected (tags and values)
Include Start and Stop pressed together, Stop while running, overload trip and Reset while still tripped, and a permissive dropping and returning.

Cite this exact version as /p/write-plc-ladder-logic-for-a-motor-startstop-with-interlocks-bg6s/v/2.