How does Bob know what to do next?
An order starts a sequence. The controller coordinates the coffee machine, cup handling and preparation steps, and uses signals from individual modules to check progress. A reusable sequence lets the same station handle several drinks without treating each order as unrelated.