Blink LED¶
The simplest PiPLC program — a button controls an LED.
Ladder Diagram¶
I/O Assignment¶
| Address | Description |
|---|---|
I:0/0 | Push button (input) |
O:0/0 | LED (output) |
How It Works¶
When I:0/0 is TRUE (button pressed), the XIC contact passes power to the OTE coil, which energizes O:0/0 (LED turns on). When the button is released, the LED turns off.
Tip
Open examples/blink-led.plcproj in PiPLC to try this program.