PLC Scada
PLC Scada
SCADA (Supervisory Control and Data Acquisition) is a system used for monitoring and
controlling industrial processes remotely. It is widely used in power plants, water treatment
facilities, oil and gas industries, and manufacturing plants.
1. Definition
SCADA is a centralized system that gathers real-time data from field devices, processes
it, and enables operators to monitor and control equipment remotely.
2. Components of SCADA
o Human-Machine Interface (HMI): The graphical user interface where operators
monitor data and control processes.
o Supervisory System (SCADA Software): The software that collects and
processes data from field devices.
o Remote Terminal Units (RTUs): Devices that collect data from sensors and
transmit it to the SCADA system.
o Programmable Logic Controllers (PLCs): Industrial computers that control and
automate processes.
o Communication Network: The medium for data transmission, which can be
wired (Ethernet, Modbus) or wireless.
3. Functions of SCADA
o Data Acquisition: Collecting real-time data from field sensors.
o Monitoring: Displaying system parameters and alarms.
o Control: Enabling operators to remotely adjust system parameters.
o Data Logging and Reporting: Storing historical data for analysis and decision-
making.
4. Types of SCADA Systems
o Monolithic SCADA: Standalone systems used in older installations.
o Distributed SCADA: Uses multiple networked computers for better
performance.
o Networked SCADA: Uses cloud-based or web-based technology for real-time
remote monitoring.
5. SCADA Communication Protocols
o Modbus
o DNP3 (Distributed Network Protocol)
o OPC (OLE for Process Control)
o IEC 60870-5-104 (for power systems)
6. Applications of SCADA
o Power generation and distribution (smart grids)
o Water and wastewater treatment plants
o Oil and gas pipeline monitoring
o Industrial automation in manufacturing
PLC (Programmable Logic Controller)
1. Definition of PLC
A PLC is a specialized digital computer that reads input signals, processes them based on a user-
defined program (logic), and generates output signals to control various machines or processes.
1. Reads Input Signals from sensors (e.g., push buttons, limit switches).
2. Processes Logic Program stored in its memory.
3. Generates Output Signals to control actuators like motors, relays, solenoids.
4. Repeats the Cycle Continuously in a loop (scanning cycle).
5. Types of PLCs
1. Fixed/Compact PLC:
o Has a fixed number of I/Os.
o Best for small applications.
2. Modular PLC:
o Expandable I/O modules for large and flexible applications.
o Used in complex automation processes.
3. Distributed PLC:
o Connected via networks for large-scale control systems (e.g., SCADA
integration).
PLCs communicate with other devices using industrial communication protocols such as:
Modbus
PROFIBUS / PROFINET
Ethernet/IP
CAN Bus
DNP3 (for power systems)
7. Applications of PLC
1. Definition of HMI
An HMI is a digital display or touch-screen system that enables operators to visualize and
control industrial processes in real-time. It serves as a bridge between humans and machines by
providing graphical representations of system parameters.
2. Components of HMI
1. Hardware
o Display Screen: Touch screen or monitor (LCD, LED) used to display system
data.
o Input Devices: Touch panels, keyboards, or function buttons for user interaction.
o Communication Interface: Connects to PLCs, SCADA, and other controllers via
protocols like Modbus, Ethernet/IP, or PROFINET.
2. Software
o Used to design the graphical interface.
o Allows programming of alarms, trends, and control functions.
o Examples: Wonderware InTouch, Siemens WinCC, Rockwell Factory Talk
View, Schneider Vijeo Designer.
3. Functions of HMI
4. Types of HMI
1. Standalone HMI:
o Used for simple machine control (e.g., a single PLC-controlled system).
o Example: A touch screen on a conveyor belt control system.
2. Networked HMI:
o Connected to multiple PLCs or a SCADA system.
o Used in large-scale automation (e.g., power plants, manufacturing lines).
3. Web-Based HMI (Cloud HMI):
o Allows remote access via web browsers or mobile devices.
o Useful for remote monitoring in industries like oil & gas.
6. Applications of HMI
Explanation:
2. HMI Programming
2.1 HMI Development Software
Different manufacturers provide software tools for HMI programming, such as:
In Siemens TIA Portal, PLC tags are imported directly into WinCC.
In Rockwell’s FactoryTalk View, PLC tags are accessed via RSLinx.
In Modbus-based systems, tags are mapped using register addresses.
The HMI should have a Start and Stop button to control a motor.
The motor status (ON/OFF) should be displayed on the screen.
Conclusion
HMI systems are essential for modern industrial automation. Effective design, programming,
and integration with PLCs and SCADA ensure efficient operations.
Let's go with a hands-on example in Siemens WinCC (TIA Portal) since it’s widely used in
industrial automation.
In this example, we’ll create an HMI screen in Siemens WinCC (TIA Portal) to start/stop a
motor and display its status.
1. System Requirements
Software: Siemens TIA Portal (v15 or later)
Hardware: Siemens S7-1200 or S7-1500 PLC (or a simulator)
Communication Protocol: PROFINET (default for Siemens devices)
plaintext
CopyEdit
(Start Button) ----[ ]----+----( )----(Motor ON)
|
(Stop Button) ----[ / ]--+
LAD
CopyEdit
Motor_Start ----[ ]----+----( )---- Motor_Status
|
Motor_Stop ----[ / ]--+
📌 Explanation:
Start Button
Stop Button
Indicator Lamp for motor status
1. Start Button:
o Drag a Push Button from the toolbox.
o Set Text: "START MOTOR".
o Go to Properties → Events → Press Action.
o Select "Write Tag", choose Motor_Start (%M0.0), and set value 1.
2. Stop Button:
o Drag another Push Button and name it "STOP MOTOR".
o Link it to Motor_Stop (%M0.1), setting value 1.
3. Motor Status Indicator:
o Drag a Lamp (Indicator) from the toolbox.
o Link it to Motor_Status (%M0.2).
o Set colors: Green (ON), Gray (OFF).
Final Outcome:
✅ The HMI screen successfully controls the motor via PLC!
Expanding HMI with Data Logging, Alarms, and SCADA Integration in Siemens
WinCC (TIA Portal)
2. Configure the log format: Save to CSV or SQL database (if available).
1. Drag a Trend View (Graph) from the Toolbox to the HMI screen.
2. Link it to Motor_Status → Show ON/OFF state as a timeline graph.
3. Add a Data Table to show historical logs (if needed).
✅ Now, the HMI logs motor status in real-time and displays trends!
LAD
CopyEdit
Motor_Status --[ ]-- Timer (60 min) --( )-- Motor_Overload
✅ Now, the HMI will alert operators when the motor is overloaded!
✅ Now, SCADA can access HMI data remotely for plant-wide monitoring!
Final Outcome
🎯 Our enhanced HMI system now includes:
✔ Data Logging for motor status tracking
✔ Alarms for overload warnings
✔ SCADA Integration for remote monitoring
SCADA (Supervisory Control and Data Acquisition) plays a crucial role in power systems,
helping utilities monitor, control, and automate operations in real time. Let’s explore a practical
SCADA application in power grid management.
1. Overview: SCADA in Power Systems
SCADA is used in generation, transmission, and distribution to:
✅ Monitor real-time electrical parameters (voltage, current, frequency)
✅ Control circuit breakers, transformers, and substations remotely
✅ Detect faults and trigger alarms
✅ Log historical data for analysis and optimization
2 Communication Network
RTU sends data to the SCADA server via IEC 60870-5-104 (TCP/IP) or DNP3
protocol.
Data is stored in a historian database for logging.
Final Thoughts
SCADA is essential for modern power grids, improving efficiency, reducing downtime, and
enabling remote operations. Would you like a hands-on SCADA system setup example using
Siemens WinCC, Ignition, or another SCADA platform?
Here are practical PLC programming examples in real-world applications using Ladder
Logic (LAD).
PLC Logic
✅ Functionality:
PLC Logic
✅ Functionality:
PLC Logic
PLC Logic
✅ Functionality:
PLC Logic
✅ Functionality:
📌 Steps:
✅ Now, operators can check system status remotely from their phone!
Protocol: Use MQTT (lightweight protocol for sending PLC data to cloud).
Broker: Install Mosquitto MQTT Broker on SCADA or edge device.
PLC Code: Publish data (e.g., motor status, temperature) to MQTT Topic.
✅ Now, SCADA sends real-time data to the cloud for remote monitoring!
Final Outcome
Our SCADA system now supports:
✔ Email Alerts for alarms 🚨
✔ Mobile Monitoring via apps/web 📱
✔ Cloud Integration for big data analytics
Goal: Connect a Siemens PLC (S7-1200/S7-1500) to AWS IoT Core using MQTT for cloud-
based monitoring.
✅ Key Features:
✔ Real-time PLC data sent to AWS IoT via MQTT
✔ Monitor data on AWS IoT Dashboard
✔ Trigger cloud-based analytics & alerts
1 Requirement
🔹 Hardware: Siemens S7-1200 or S7-1500 PLC
🔹 Software: TIA Portal (v15 or later), Node-RED, AWS IoT Core
🔹 Protocol: MQTT (Message Queuing Telemetry Transport)
json
CopyEdit
{
"Effect": "Allow",
"Action": "iot:Publish",
"Resource": "*"
}
sh
CopyEdit
npm install -g node-red
3. Start Node-RED:
sh
CopyEdit
node-red
✅ Now, Node-RED will publish data from Siemens PLC to AWS IoT Core!
✅ Now, Siemens PLC sends data to Node-RED, which forwards it to AWS IoT via MQTT!
bash
CopyEdit
plc/data
python
CopyEdit
import boto3
def lambda_handler(event, context):
if event['temperature'] > 80:
sns = boto3.client('sns')
sns.publish(TopicArn="your-sns-topic", Message="High Temp!")
✅ Now, AWS will send email alerts when temperature exceeds limits!
✅ Final Outcome
Your Siemens PLC is now connected to AWS IoT via MQTT!
✔ Real-time data monitoring on AWS IoT Core
✔ Email alerts when alarms occur
✔ Scalable cloud integration for industrial automation
I'll provide step-by-step tutorials for both Siemens TIA Portal and Allen-Bradley RSLogix
based on your experience level. Let me know if you want beginner, intermediate, or advanced
topics! 🚀
Siemens TIA Portal Tutorials
✅ Basic: 1 PLC Basics – Create a new project, add an S7-1200/1500 PLC, configure I/O
2 Ladder Logic (LAD) Programming – Start/Stop Motor Control, Timers, Counters
3 HMI Integration – Create a simple HMI screen for control & monitoring
✅ Intermediate:
4 Data Blocks & Structs – Organizing variables for better PLC programming
5 Analog Signal Processing – Read/write analog values from sensors
6 PID Control in TIA Portal – Implementing PID loops for temperature control
✅ Advanced:
7 Profinet & Modbus Communication – Connect Siemens PLC to external devices
8 OPC UA & SCADA Integration – Send PLC data to WinCC Unified or Ignition SCADA
9 Motion Control – Servo motor control with Siemens S7-1500 & VFD
✅ Intermediate:
4 Timers & Counters – TON, TOF, RTO, CTU, CTD examples
5 Analog I/O Processing – Reading from an analog sensor
6 HMI with FactoryTalk View – Connecting RSLogix to FactoryTalk HMI
✅ Advanced:
7 EtherNet/IP Communication – Connecting RSLogix PLC to other devices
8 Add-On Instructions (AOI) – Create reusable function blocks
9 SCADA Integration – Send PLC data to Ignition/MQTT/Cloud