Your first command
Make a pump follow a button.
Make the pump run while you hold Start, and stop when you let go. Your code switches the pump through PumpOn. PumpOn is a : a named signal that is ON or OFF.
Free, with no sign-up. Create a free account to keep your progress on every computer.

Pump runs while Start is held
Test 1 of 3StartStart requestONPumpOnPump commandON- Level
- Foundation
- Time
- About 8 min
- Reward
- +100 XP
- Rig
- 3D pump skid
- Siemens editors
- SCL, LAD
- Rockwell editors
- Structured Text, Ladder
- Course stage
- 1. Read, decide, command
What the tests check
- While Start is held, PumpOn is ON ().
- When you let go of Start, PumpOn goes OFF ().
- Try it Use the buttons below the model and watch the rig respond.
- Test solution Every check runs on your code in one press.
- Replay If one fails, step through it one scan at a time to see why.
Where you’d see this on site
In a factory wash room, an operator holds a button to run a water pump. Letting go should stop the pump.
If the pump keeps running after the button is released, the hose keeps spraying when nobody expects it.
In a block of flats, a basement tank holds water from the mains. Two pumps push it up to the taps above. One runs while the other waits as a spare. A low-water switch stops the pumps before the tank runs dry.
- Street mainsWater enters the building
- Storage tankHolds a supply for the pumps
- Water pumpsPush water to the floors aboveYou are here
- Taps upstairsResidents use the water they need
On a real site: places, parts and safety
- Block of flats — pushing water up to the top floors
- Brewery — sending hot water to a brewing tank
- Water-treatment works — moving water between filter tanks
- Office building — pumping water round the heating pipes
A low-water switch can take away permission to run. The pump must stop before it runs dry and damages its seal.
The PLC can say ON even when a pump has failed. Check the measured flow as well as the command.
The Stop input in these exercises is not an emergency stop. Real machines also need guards, emergency stops and a safe way to cut the power.
The sizes, timings and cutaways are teaching choices, not a drawing of any one real installation.
Next in the course
- Permission to runRun only when every condition is right.Foundation · 8 min · +100 XP
- Bring the tank up to temperatureHeat the water, then stop at 45°C.Foundation · 18 min · +300 XP
- Make it stay runningPress Start once. It runs until Stop.Foundation · 8 min · +100 XP
- Stop doesn't stop itFind the path that gets round Stop.Applied · 12 min · +200 XP