Skip to content
Matteo Fiameni
← Field notes

D · The basics

The map of a factory's systems:who does what, from sensor to ERP

ERP, MES, SCADA, historian, PLC: what each factory system does, where its job ends and how to draw the map of your own plant.

· 4 min read

  • ISA-95
  • MES
  • ERP
  • SCADA
  • basics
A large unrolled sheet of paper with a factory model on it: machines, an electrical cabinet, a console and a small office connected by pencil lines; a single line, from the conveyor to the office, glows amber
AI-generated illustration

I remember a project where, in the first meetings with the client, I realised that nobody had a complete view of the systems in the plant. Each department knew its own applications, but there was no picture of how they talked to each other. I started rebuilding the flows, from the machines all the way up to the business systems. Only by putting everything on paper did dependencies and weak points emerge that nobody had considered.

A factory has many systems, and the names overlap: one vendor calls MES what another calls SCADA, and the data history sometimes lives inside one of the two. To find my way I always start from the same map, the one in the industry's reference standard, ISA-95.

01The map in one figure

From sensor to ERP

The ISA-95 levels with the systems that usually live there; in amber the data going up, in grey orders and commands coming down

Levels and systems from the OPC Foundation's ISA-95 information model (OPC 10030), which takes them from ISA-95 / IEC 62264. Simplified diagram: real factories also have direct links, for example between SCADA and PLCs.

Read it from the bottom. Sensors and actuators touch the process. The PLC closes the control loop: it reads the signals and drives the outputs, in times measured in fractions of a second. Above it, level 3 is manufacturing operations: the MES with orders, quality and traceability, SCADA for supervision, the historian for time series. At the top the ERP, the business system, which plans over days, weeks and months.

02Who does what, and where it stops

Level 4

ERP

Knows which orders must be produced, with which materials and at what cost. Doesn't know what happens on the line minute by minute.

Level 3

MES

Brings orders to the floor and tracks progress, scrap and traceability. Doesn't close the machine's control loop.

Level 3

SCADA

Supervises several machines: overviews, alarms, trends. Doesn't manage orders or materials.

Level 3

Historian

Stores process time series, with the timestamp and quality of every value. Doesn't know what a lot is.

Level 2

PLC and DCS

Control the machine and the plant, cycle after cycle. They wait for nobody.

Many products cover more than one role, and that is fine. What matters is writing down, for each piece of data, which system owns it.

03Not everyone runs at the same speed

Months, weeks, daysLevel 4: ERP planning and logistics
Days, shifts, hours, minutes, secondsLevel 3: manufacturing operations
Under a secondLevel 2: automated control

The time frames are the ones given by the OPC Foundation's ISA-95 model. They explain many integration problems: an ERP that thinks in days should not be queried for every part produced, and a PLC that thinks in milliseconds cannot wait for an answer from a system that thinks in shifts.

04One rule: the MES is not on the critical path

If the MES or the network stops, the machine must be able to finish its cycle safely, and the data must arrive later, in order. Control stays at the bottom; the MES observes, coordinates and confirms.

I remember a case where we had to think through what would happen if communication with the MES dropped during production. The choice was to keep the control logic on the machine and handle the data to be sent locally. That way, even without the network or the MES, the machine could complete its cycle safely and recover the information to synchronise later. Production was not supposed to depend on the availability of the information systems.

I wrote about what happens when the network is gone in The network goes down, the line doesn't.

05Who owns the data

ERP

Orders and master data

Materials, bills of materials, routings: the MES receives them, it doesn't invent them.

MES

Progress and genealogy

What was produced, with which lot, with which result.

PLC

Machine state

Running, stopped, in alarm: whoever drives it knows.

When two systems hold the same data and nobody has decided which one rules, sooner or later the numbers don't add up. It happens above all with production confirmations: a lost or duplicate confirmation in the ERP becomes an inventory error.

06How to draw the map of your own factory

  1. Step 1List the systems that really exist, including Excel sheets and paper.
  2. Step 2For each important piece of data, write down who owns it.
  3. Step 3For each arrow, note direction, protocol, frequency and who maintains it.
  4. Step 4Mark where data is moved by hand: that is where time is lost and mistakes are made.

The result is not a poster: it is the interface inventory. You need it every time a new machine arrives, a system is replaced or someone asks why two numbers don't match. To connect many systems without the arrows multiplying with every addition there is the Unified Namespace; to work out whether your company needs a MES, there is what a MES is.

Sources (2)

Share this note