返回提示词库Back to prompts
当前显示中英对照

写作表达writing

Ladder Start/Stop With Interlocks

来自 prompts.chat 开放提示词库的公开模板,适合写作、改写和表达。正文保留原文,方便直接复制使用。

An open prompt template from prompts.chat for writing, rewriting, and communication. The original wording is preserved for direct copying.

ChatGPTClaudeGemini
0 次复制copies·小黑丸整理Curated by XHW

提示词正文Prompt text

复制后替换变量Replace variables after copying
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:Conveyor_M1}.

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

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.
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:Conveyor_M1}.

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

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.

使用场景Best used for

适合写作、改写和表达,使用前请替换其中的角色、主题和具体约束。

Useful for writing, rewriting, and communication. Replace the role, topic, and constraints before using it.

使用提醒Usage note

这条内容来自 prompts.chat 公开提示词库;说明为中英对照,正文保留来源原文。使用前请检查并按自己的工作场景改写。

Sourced from the prompts.chat public library. Descriptions are bilingual; the prompt preserves the original text. Review and adapt it to your work before use.