Sprint: 5 — Timers, Counters, Registers Languages allowed: ST or LD Time: ~2 hours
A water tank has a level transducer (4–20 mA → 0–100% scaled value). When the operator presses START, the system runs an automatic fill-then-drain cycle:
The system must abort safely on STOP or EStop.
| Tag | Type | Description |
|---|---|---|
Start |
BOOL | Start cycle |
Stop |
BOOL | Stop cycle |
EStop |
BOOL | E-stop (NC, true when OK) |
Level_Pct |
INT | Level 0–100 % (scaled from 4–20 mA) |
Hold_Done |
BOOL | True when hold timer has elapsed |
Inlet_Valve |
BOOL | Inlet solenoid |
Outlet_Valve |
BOOL | Outlet solenoid |
Hold_Timer_EN |
BOOL | Enable for the hold timer |
Phase |
INT | 0=Idle, 1=Filling, 2=Holding, 3=Draining |
Cycle_Active |
BOOL | True between Start and end of Drain |
The Hold_Timer_EN should be true only during Phase 2.
Submit solution.st.