Skip to content

Instruction Reference

For the scan model and DSL vocabulary, start with Core Concepts. This section is the reference for writing rungs.

with Rung(Start, ~Fault):
    out(MotorRunning)
    on_delay(RunDelay, preset=500)

Read it like a ladder diagram: conditions go on Rung(...), instructions go in the body. Use the pages below by instruction family.

Start here

  • Rungs — comments, branching, source order, and how power flows through a rung
  • Conditions — contacts, comparisons, AND/OR logic, and edge detection
  • Coilsout, latch, reset, and immediate I/O

Data movement

  • Data Movementcopy, blockcopy, fill, converters, pack_*, and unpack_*
  • Mathcalc(), overflow behavior, division rules, and range sums

Time and control

Communication

  • Communicationsend, receive, Modbus targets, and status tags

Exact signatures

If you want signatures and parameters instead of examples, use the Instruction Set API. For the rest of the generated API surface, start at the API Reference.