PLC and SCADA Architecture: The Control Layer and the Supervisory Layer

PLC and SCADA Architecture: The Control Layer and the Supervisory Layer

Key Takeaway

PLC and SCADA architecture works only when the control layer owns real-time decisions and the supervisory layer owns showing and recording. The link between them carries data down and status up, never commands back down that the PLC must act on inside a scan.

PLC and SCADA Architecture PLC LAYER Scan cycle 1 to 20 ms Read inputs, run program, write outputs Safety relay and contactors Local and remote I/O SCADA LAYER SCADA server and HMI Historian and trending Alarm list and first-out Recipe and batch control THE LINK OPC UA and MQTT Modbus TCP and RTU Profinet and EtherNet/IP One-way data flow down ENTERPRISE MES and ERP interfaces Industrial IoT gateway Cloud analytics Reporting and KPI PLC cycle: 1 to 20 ms SCADA refresh: 1 to 10 s Rule: real-time stays in control layer 90 percent of faults are wiring

Figure 1: The PLC control layer and the SCADA supervisory layer, with the link between them and the enterprise layer above

1. PLC SCADA Architecture: The Two-Layer Model

PLC scada architecture divides a machine into two layers with different jobs and different time scales. The control layer is the PLC. It reads sensors, runs the program and writes outputs in a repeating scan, and it decides how the machine moves in milliseconds. The supervisory layer is SCADA with an HMI. It shows the operator what is happening, records history, accepts setpoints and lets a human intervene. Keeping them separate is the discipline that makes a machine commissionable, diagnosable and safe.

The mistake that costs money is to mix them. When the SCADA has to poll the PLC every few hundred milliseconds to decide whether to stop a conveyor, the machine has already produced scrap before the SCADA notices. When a planning query from ERP runs against the same controller that is running a servo loop, the scan grows and the axis lags. Each layer stays in its own time budget, and data flows one way: commands down, status up.

A small Indian machine shop in Tamil Nadu or Gujarat running a three-shift line has no spare operators to diagnose a tangled architecture. The layers below are the ones that keep the line running without that spare headcount.

2. The Control Layer: PLC Scan Cycle and I/O Response

The control layer is where the machine makes its decisions. A PLC runs a cyclic scan: read all inputs into an input image, execute the program from top to bottom, then write the results to the outputs. Everything in this layer is at least one scan old, and the scan time is the real-time budget of the machine.

The four stages of one scan

  • Input image update. The CPU reads the physical digital and analogue input modules into the process input image.
  • Program execution. The CPU runs the user program from the first instruction to the last, reading and writing to the process image.
  • Output write. The CPU transfers the calculated output values to the physical output modules, which drive contactors, valves and drives.
  • Housekeeping. Communication tasks, diagnostics and watchdog updates run in the background.

The numbers are small but they add up. A small machine with hardwired I/O might scan in 2 to 10 ms. A large machine with distributed I/O and drives on an industrial Ethernet network can scan in 20 to 50 ms, and most of that time is the bus cycle, not the instructions. The worst-case field-to-output response is roughly two scans plus the input filter time, the module update time and the output switching time.

For a machine that must react within 20 ms, a 10 ms scan with a 10 ms input filter already costs 20 ms before the program even sees a limit switch. The fix is not a faster CPU. It is lowering the input filter on fast signals, moving interlocks into the same scan, and keeping slow work out of the fast task.

3. The Supervisory Layer: SCADA, HMI and Historian

The supervisory layer is what the operator sees. Its job is to show the machine state, record what happened, let an operator change setpoints and recipes, and present alarms. It is explicitly not the place for real-time decisions.

What belongs in SCADA

  • An HMI screen that shows machine state, process state and the one or two actions an operator can take right now.
  • A historian that trends process values at one to ten second sampling, fine enough to see a single cycle on a 30 second machine cycle.
  • An alarm list that shows the unacknowledged count, the first-out alarm and the standing alarms.
  • Recipe and batch control that loads parameters into the PLC, not code that runs the machine.

The rule that keeps this layer honest: the SCADA does not close a control loop. A SCADA that reads a level every 100 ms and writes a valve setpoint is running a control loop at human speed, and it will be slow, jittery and hard to tune. The PLC closes the loop at 5 to 20 ms, and the SCADA reads the result.

The link carries data down from the supervisory layer to the control layer (setpoints, recipes, mode changes) and status up from the control layer to the supervisory layer (positions, temperatures, faults, counts). It never carries a command that the PLC must act on inside a single scan.

Protocols used on the link

  • OPC UA. The modern standard for factory data. It carries structured data, alarms and events with security built in, and it is the natural link from a PLC to MES, ERP and historians.
  • MQTT. A publish-subscribe protocol suited to low-bandwidth links and remote sites, often used from an edge gateway to the cloud.
  • Modbus TCP and Modbus RTU. The oldest industrial protocol, still everywhere on small machines and legacy drives.
  • Profinet and EtherNet/IP. Industrial Ethernet fieldbuses that carry cyclic I/O between the PLC and drives, remote I/O and sensors.

The important decision is which traffic rides which network. Cyclic axis setpoints ride Profinet or EtherNet/IP at millisecond cycle times. Diagnostic reads, web pages and file transfers ride OPC UA or MQTT at slower rates. Mixing them on one cable without separation produces cyclic jitter that looks exactly like a mechanical resonance, and the fix is network configuration, not servo tuning.

5. Enterprise Layer: MES, ERP and Cloud

The enterprise layer answers questions about output, quality and cost over days and weeks. It is MES, ERP, the data historian and any cloud analytics. It reads from the supervisory layer, never from the control layer directly, because a planning query has no business sharing a cycle with a servo move.

Data flows down quickly and information flows up slowly. A production count goes up once per part. An energy reading goes up once per minute. A quality result goes up once per batch. None of these needs to share time with the axis position loop. The enterprise layer also writes setpoints down: a new recipe from ERP becomes a PLC recipe download, and the PLC applies it at the start of the next part, not in the middle of a move.

Security belongs here too. IEC 62443 covers industrial automation security, and the gateway between the factory network and the enterprise network is where firewalls, unidirectional gates and password policy live. A machine with its PLC exposed to the plant Wi-Fi is a machine waiting for a ransomware incident.

6. The One-Way Discipline: Commands Down, Status Up

PLC scada architecture depends on a single rule that is easy to state and hard to keep: data flows down quickly and information flows up slowly. Commands go from the enterprise to the supervisory to the control layer at the speed of the slowest layer that must react. Status comes back up. When a designer mixes this, the result is either a control loop with a one-second delay inside it, or a SCADA that cannot survive a network glitch.

What the discipline means in practice

Direction What moves Typical rate Who owns it
Down Setpoints, recipes, mode changes, alarms acknowledged Seconds to minutes Supervisory and enterprise
Up Positions, temperatures, counts, fault codes, history Milliseconds to seconds Control and supervisory
Never down inside a scan Commands the PLC must act on within one scan – Control layer only

The consequence is that a breakdown at 2 am can be diagnosed from the SCADA history without touching the PLC program, because the history shows what the machine was doing and when. The program stays in the control layer where it belongs, and the operator never has to open the PLC to read what happened.

7. Indian Shop Floor Conditions

The analysis above assumes clean power and a stable ambient, and an Indian metalworking shop in May and June offers neither. Ambient temperature routinely reaches 40 to 45 deg C, and inside a non-cooled cabinet it can be 15 to 20 deg C hotter. This matters in three ways.

Heat and timing

Semiconductors get slower as they get hotter. A CPU that executes a program in 5 ms at 25 deg C may take 6 to 8 ms at 65 deg C internal temperature. The input filters and module update times are temperature rated, and an out-of-specification cabinet temperature pushes them beyond nominal. The scan budget must be built for the worst operating temperature, not the commissioning temperature.

Supply voltage swings

The nominal supply is 415 V, 3-phase, 50 Hz, but many Indian plant feeders measure 340 to 460 V. At 340 V the supply is 18 percent below nominal, which pulls the 24 V DC control supply down with it. A control supply dipping to 19 V makes input modules report false transitions, and a program reacting to bouncing signals shows a scan time that jumps under load. Where the supply is unreliable, specify a wide-input switchmode supply and measure the 24 V rail at the far end of the cabinet, not at the supply terminals.

Serviceability

Whatever platform you choose, the technician called out at 2 am must be able to read the worst-case scan time from a keypad or panel display without a laptop and a licence. Write the expected worst-case scan time into the machine documentation next to the as-built schematic, and keep the program backup with a version history.

8. Commissioning and the Living Budget

The architecture is not finished when the machine runs. It is finished when somebody who did not build it can diagnose a fault at 2 am. Commissioning happens in order: power and earthing first with the drives disconnected, then field I/O point by point, then the safety circuit, then the control logic with the drives disabled, then motion at reduced speed, then the process with real parts, then the performance numbers recorded.

The deliverable is a response budget sheet. It lists the process requirement, the input filter time, the module update time, the network cycle time, the worst-case scan time measured under full load, and the output switching time, and it sums them against the requirement. Re-run the budget after every significant program change and every hardware addition. A machine whose response budget was calculated once at commissioning and never revisited is the machine that starts missing cycles two years later.

The scan time should be trended, not measured once. Log the maximum scan time once per minute and plot it against the date. A healthy machine shows a flat line. A growing program shows a staircase, and the staircase tells you exactly which change to roll back.

Sources

  1. IEC 61131-3, Programmable controllers – Programming languages
  2. IEC 61158, Industrial communication networks – Fieldbus
  3. OPC UA, Unified Architecture
  4. IEC 62443, Security of industrial automation and control systems
  5. ISA-95, Enterprise-control system integration

Key Takeaways

  • PLC scada architecture separates the control layer from the supervisory layer so that real-time decisions never depend on a web browser or a dashboard.
  • The PLC scan cycle reads inputs, runs the program and writes outputs in a fixed loop, and every machine decision is at least one scan old.
  • OPC UA and MQTT carry factory data up to MES and ERP, while the control layer keeps its own cycle on Profinet, EtherNet/IP or Modbus.
  • A SCADA that polls a PLC every 100 ms to detect a fault is a design error, because the fault has already produced scrap before the SCADA notices.
  • The enterprise layer reads from the supervisory layer, never from the control layer directly, because a planning query has no business sharing a cycle with a servo move.

Leave a Reply