HMI Screen Layout Principles
📖 Scenario: You are designing a simple Human-Machine Interface (HMI) screen for a factory control system. The screen will show the status of three machines and allow operators to see if they are running or stopped.
🎯 Goal: Build a basic HMI screen layout using a dictionary to represent machine statuses, add a configuration for alert threshold, filter machines that need attention, and display the filtered list.
📋 What You'll Learn
Create a dictionary called
machines with three machines and their statuses ('running' or 'stopped')Add a variable called
alert_status set to 'stopped' to filter machines needing attentionUse a dictionary comprehension to create
alert_machines with only machines matching alert_statusPrint the
alert_machines dictionary to show machines needing attention💡 Why This Matters
🌍 Real World
HMI screens in factories show machine statuses clearly so operators can quickly see which machines need attention.
💼 Career
Understanding how to organize and filter data for HMI layouts is important for automation engineers and SCADA system developers.
Progress0 / 4 steps