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-2
LLM (this repo) · 1WikipediaWikidata · Q1411875

Related languages

Ladder Logic (0.44)Prolog (0.39)PROGOL (0.34)LDPL (0.28)ASP (0.25)

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
code.ld · license: Public Domain · added: 2026-03-06T10:00:00Z
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.)

Contribute — propose a file extension

Tell us where to find evidence about Ladder Diagram (mapped to pl/ladder-logic-2). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Ladder Diagram/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Laconic Ladder Logic →