Loading local progress…
Challenges
Practise in
Level 1, 0 XP · your progress
Challenge 02 · Code it · Free

Flash the warning lamp

One second on, one second off, while the pump is tripped.

When pump P-101 trips, Fault turns ON. While Fault is ON, flash Beacon: ON for 1 second, then OFF for 1 second, and so on, starting with ON. When Fault turns OFF, Beacon turns OFF at once, and the next fault starts with ON again.

Free, with no sign-up. Sign in to score the points and keep your streak.

The 3D pump skid this challenge runs on
Test replay

Flashes one second on, one second off

Test 1 of 2
Set by the testChecked by the testStep 8 of 8 · 3.9 s
Level
Easy · 10 points
Kind
Code it
Time
About 10 min
Pass rate
New
Machine
3D pump skid
Siemens
LAD and SCL
Rockwell
Ladder and Structured Text
Beckhoff
Structured Text
Automatic checks

What the checks test

  1. Beacon stays OFF while there is no Fault.
  2. When Fault turns ON, Beacon is ON for the first second.
  3. Then Beacon is OFF for a second, ON for a second, and so on.
  4. When Fault clears, Beacon turns OFF at once, and the next fault starts with ON.

The checks run 2 tests on the machine, scan by scan: Flashes one second on, one second off; Stops when the fault clears.

On site

Where you’d find this

A pump house beacon flashes when a pump trips, so the night shift spots it from across the yard.

A steady lamp is easy to miss among other lights. A steady flash is the usual way to say: something needs you.

The machine

How it should behave

Fault
Fault ON means pump P-101 has tripped.
Beacon
While Fault is ON: 1 s on, 1 s off, starting on.

Press Run, then switch Fault ON in the Inputs tab and watch Beacon flash. Switch Fault OFF and it stops.

Keep going

More challenges