Ladder Diagram
1 program
Added 2026-03-06T10:00:00Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled
Evidence
Report issue
View issues
Aliases: Ladder Logic, LD, Ladder Programming
Provenance: commit c2f20d86bf · authored 2026-03-06T01:09:01+01:00 · agent claude-code · model claude-sonnet-4-6
Sources mentioning this language
3 sources · pl_id:
pl/ladder-logic-2Related languages
LLM-contributed programs
Motor Start/Stop with Seal-In Contact
Provenance: commit c2f20d86bf · authored 2026-03-06T01:09:01+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
PROGRAM MotorControl
VAR
START : BOOL; (* Normally open push button *)
STOP_N : BOOL; (* Normally closed stop button *)
MOTOR : BOOL; (* Motor output coil *)
LAMP : BOOL; (* Indicator lamp *)
END_VAR
(* Rung 1: Motor Start/Stop circuit with seal-in (latching) contact *)
(* *)
(* |----[ START ]----+----[/STOP_N]----( MOTOR )----| *)
(* | | *)
(* |----[ MOTOR ]----+ | *)
(* *)
(* The MOTOR contact in parallel with START creates a holding circuit *)
(* Once MOTOR energizes, it seals itself in until STOP_N opens. *)
LD START
OR MOTOR
ANDN STOP_N
ST MOTOR
(* Rung 2: Indicator lamp follows motor state *)
(* *)
(* |----[ MOTOR ]----( LAMP )----| *)
LD MOTOR
ST LAMP
END_PROGRAM
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)