Challenge - 5 Problems
Level Control Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediateWhat is the output of this ladder logic snippet controlling a tank level?
Given a tank with a high-level sensor (HL) and a low-level sensor (LL), the ladder logic below controls a pump (PUMP). What is the state of PUMP after the sensors read HL=0 and LL=1?
PLC Programming
(* Ladder logic *) |----[LL]----|----(PUMP)----| |----[HL]----|----|/|--------|
Attempts:
2 left
💡 Hint
Think about how the low-level sensor and high-level sensor inputs affect the pump coil.
✗ Incorrect
The pump is energized when LL is true (1) and HL is false (0). Since LL=1 and HL=0, the pump coil is energized, so PUMP is ON.
📝 Syntax
intermediateWhich of these Structured Text (ST) code snippets correctly implements a level control ON/OFF logic?
You want to turn ON a pump when the level is below 30% and turn it OFF when the level is above 70%. Which code snippet correctly implements this?
Attempts:
2 left
💡 Hint
Check the correct syntax for IF statements and assignment in Structured Text.
✗ Incorrect
Option D uses correct IF syntax with ELSIF and assignment operator ':='. Other options have syntax errors like missing semicolons, wrong assignment operator, or incorrect END_IF usage.
🔧 Debug
advancedWhy does this PLC program cause the pump to never turn OFF?
The program below is intended to turn ON the pump when level < 40 and turn OFF when level > 80. However, the pump never turns OFF once ON. Identify the bug.
PLC Programming
IF Level < 40 THEN Pump := TRUE; ELSIF Level > 80 THEN Pump := FALSE; END_IF; // Pump variable is BOOL
Attempts:
2 left
💡 Hint
Think about what happens when level is between 40 and 80.
✗ Incorrect
When level is between 40 and 80, neither condition is true, so Pump keeps its last state. Without hysteresis or a default OFF condition, Pump stays ON once set.
🚀 Application
advancedHow many times will the pump turn ON in this simulation?
A tank level sensor triggers pump ON when level < 25 and pump OFF when level > 75. The level changes as: 100, 20, 30, 10, 80, 70, 20, 90. How many times does the pump turn ON?
Attempts:
2 left
💡 Hint
Count transitions from level above 25 to below 25 that cause pump ON.
✗ Incorrect
Pump turns ON when level drops below 25 from above. Transitions: 100->20 (ON), 30->10 (ON), 70->20 (ON). Total 3 times.
🧠 Conceptual
expertWhat is the main advantage of using hysteresis in a level control system?
Why do level control systems often use two different thresholds (e.g., ON at 30%, OFF at 70%) instead of a single threshold?
Attempts:
2 left
💡 Hint
Think about what happens if the level hovers near one threshold.
✗ Incorrect
Hysteresis prevents the pump from turning ON and OFF rapidly when the level fluctuates near a single threshold, protecting equipment and reducing wear.
