The Senbrix logo, mark of the Raspberry Pi PLC development environment

Part 3 is the program. Open the project from Part 2, ask the AI for a ladder in one line, deploy it to the Pi, and move a relay.

What you need

ItemDetail
Parts 1 and 2 doneEditor installed, runtime on the Pi, Pi-SD16R assigned as main board in the Test project
Claude CodeInstalled and logged in as in Part 1. Without it the console button stays disabled
Input wiringPush buttons on IN1 and IN2
Starting pointThe Test project from Part 2 open and connected to the Pi through the connection icon (Part 2, section 4)

1. Open the Claude console

Click AI in the left menu. It still says “Awaiting mode selection”. Click Open Claude Console at the bottom right and a Claude Code terminal opens beside the editor, reads the project state, and asks its first question.

How should we start this project? 1. AI mode / 2. Assistant mode

Answer 2.

ModeWhat it does
AI modeThe AI drives interview, design, plan, implementation and verification step by step, asking for approval at each gate
Assistant modeFor building right now, like this. No gates. Ask and it edits

When the AI page shows mode “Assistant mode” and current phase “Assistant ready”, you are set.

2. Ask for the ladder in one line

Type this into the console.

On main board Pi-SD16R, make a latching circuit: pressing IN1 turns OUT1 on, pressing IN2 turns it off.
Three seconds after OUT1 comes on, turn OUT2 on as well. Use the board bindings for addresses (inputs P1-P4, outputs P5-P8).

Entering the request in the Claude console and watching symbols and ladder get generated

The AI checks the board bindings, adds symbols, writes the ladder, verifies it with lint and a build, then reports back. It takes about a minute.

The generated symbols

Check them under Symbols in the left menu.

The symbols page with Start button P1, Stop button P2, Output 1 P5, Output 2 P6, Running M0 and Output 2 delay T0 added

NameAddressRole
Start buttonP1Main board IN1
Stop buttonP2Main board IN2
Output 1P5Main board OUT1
Output 2P6Main board OUT2
RunningM0Latched run state
Output 2 delayT0TON timer, 10 ms units

The generated ladder

Check it under Ladder. Four rungs.

The generated four-rung ladder: latch, OUT1 output, TON 300 delay, OUT2 output

RungContent
1Start button ∥ Running → Stop button NC contact → Running coil. Stop-priority latch
2Running → Output 1
3Running → TON(Output 2 delay, 300). 10 ms × 300 = 3 s
4Output 2 delay → Output 2

3. Deploy

Click Deploy in the left menu. Save, build and deploy run back to back. The status bar reads Deploy complete: runtime running and the device indicator switches to (RUN).

To build on its own, click Build. If there are errors, a list comes up and points you at the ladder cell.

4. Check it in the monitor

Click Monitor. Contact states and the timer’s current value show live on the ladder.

In monitor mode, pressing the start button turns Running and Output 1 on and the timer starts counting

ActionWhat you see
Press IN1Running ON, Output 1 ON. The OUT1 relay on the board closes and its LED lights
3 seconds passOutput 2 delay reaches 300, Output 2 goes ON. The OUT2 relay closes
Press IN2Running OFF. Output 1, the timer and Output 2 all drop together

The monitor is read-only. Forcing values is what Diagnose (diagnostics mode) is for, and this series does not cover it.

Recap

PartWhat you did
Part 1Editor and .NET 9 SDK on Windows
Part 2Runtime on the Pi, Pi-SD16R main board XML
Part 3Ladder from AI, deploy, monitor