Program exercise · Medium · Ladder · 11 min · Pro

Trust only a fresh reply

Light the low-stock lamp only from a successful reply. A failed request must not reuse the old count.

This exercise is part of Pro. Start the free trial to open it.

How it is checked.

  • The lamp checks Done and Error
  • A failed reply leaves the lamp off
  • Fewer than 10 items lights the lamp

Builds on the lesson Normally open and normally closed field devices, and a fail-safe Stop.

Part of Web API. All practice exercises.