PDL2

1 program Added 2026-03-06T12:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Program and Data Language 2, COMAU PDL2
Provenance: commit a1cffc4467 · authored 2026-03-06T01:22:31+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

PDL (0.33)Perl Data Language (0.33)Eta (0.28)Piet (0.28)Pike (0.28)

LLM-contributed programs

Pick and Place Robot Routine

Provenance: commit a1cffc4467 · authored 2026-03-06T01:22:31+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.pdl2 · added: 2026-03-06T12:00:00Z
-- PDL2: Pick and place robot program
PROGRAM pick_and_place
  VAR
    i         : INTEGER
    home_pos  : JOINTPOS
  BEGIN
    WRITE ('Starting pick and place routine', NL)

    -- Move to home position
    MOVE JOINT TO home_pos

    -- Open gripper (digital output 1)
    $DO[1] := FALSE

    FOR i := 1 TO 3 DO
      WRITE ('Cycle ', i, ' of 3', NL)

      -- Move to pick position (predefined)
      MOVE LINEAR TO $MNTOOL : ADVANCE
      DELAY 200

      -- Close gripper
      $DO[1] := TRUE
      DELAY 500

      -- Move to place position
      MOVE LINEAR TO $MNTOOL : ADVANCE
      DELAY 200

      -- Open gripper
      $DO[1] := FALSE
      DELAY 500

      -- Return to home
      MOVE JOINT TO home_pos
    ENDFOR

    WRITE ('Pick and place complete', NL)
  END
END PROGRAM

Contribute — propose a file extension

Tell us where to find evidence about PDL2 (mapped to pl/pdl2). 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/PDL2/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← pdl-ada PDML →