Automatic vs Manual Mode Switching in SCADA Systems
📖 Scenario: You are working with a SCADA (Supervisory Control and Data Acquisition) system that controls a water pump station. The system can operate in two modes: automatic mode, where the pump runs based on sensor readings, and manual mode, where an operator controls the pump directly.To ensure safety and flexibility, the system must switch between these modes correctly.
🎯 Goal: Build a simple program that stores the current mode of the pump station, allows switching between automatic and manual modes, and prints the current mode.
📋 What You'll Learn
Create a variable to store the current mode with the exact name
current_mode.Create a variable called
allowed_modes that holds the list of modes: 'automatic' and 'manual'.Write a function called
switch_mode that takes a mode name and changes current_mode only if the mode is in allowed_modes.Print the current mode using
print.💡 Why This Matters
🌍 Real World
SCADA systems control critical infrastructure like water pumps, power grids, and factories. Correct mode switching ensures safety and proper operation.
💼 Career
Understanding mode switching logic is essential for DevOps engineers working with industrial automation and monitoring systems.
Progress0 / 4 steps