Challenge 01 · Code it · Free
One button, start and stop
Each press of one button changes the pump over.
The pump panel has one push button. Press it once and PumpOn turns ON. Press it again and PumpOn turns OFF. Holding the button down changes the pump only once.
Free, with no sign-up. Sign in to score the points and keep your streak.

Test replay
Press, let go, press again
Test 1 of 2ButtonPush buttonONPumpOnPump commandONSet by the testChecked by the testStep 6 of 6 · 520 ms
- Level
- Easy · 10 points
- Kind
- Code it
- Time
- About 8 min
- Pass rate
- New
- Machine
- 3D pump skid
- Siemens
- LAD and SCL
- Rockwell
- Ladder and Structured Text
- Beckhoff
- Structured Text
What the checks test
- The first press of Button turns PumpOn ON, on the the press arrives.
- Letting go of Button leaves PumpOn as it is.
- The next press turns PumpOn OFF, and the one after turns it ON again.
- Holding Button down changes PumpOn once, not on every scan.
The checks run 2 tests on the machine, scan by scan: Press, let go, press again; A held button counts once.
Where you’d find this
A small dosing pump in a water treatment kiosk has one lit push button: press to start, press again to stop.
If the program flips the pump on every scan the button is held, the motor chatters on and off and wears out its contactor.
How it should behave
- Press
- Each new press of Button changes PumpOn over.
- Hold
- A held button counts as one press.
Press Run, then click Button. The pump starts. Click it again and the pump stops.
More challenges
- Flash the warning lampOne second on, one second off, while the pump is tripped.Easy · Code it
- Pump down between two floatsStart at the high float, stop below the low float.Easy · Code it
- Sound the horn before it movesThree seconds of warning before the belt starts.Medium · Code it
- Pack six, then pauseCount six bottles, stop for the pusher, then go again.Medium · Code it


