Filter by Categories
Filter by content type
Generic filters
Filter by Custom Post Type

Did you mean? Industry 4.0CODESYSUNSNFCRYOBIIPCSCADACybersecurityCustom Design

Filter by Categories
Filter by content type
Generic filters
Filter by Custom Post Type

Did you mean? Industry 4.0CODESYSUNSNFCRYOBIIPCSCADACybersecurityCustom Design

Filter by Categories
Filter by content type
Generic filters
Filter by Custom Post Type

Did you mean? Industry 4.0CODESYSUNSNFCRYOBIIPCSCADACybersecurityCustom Design

CATIM mechatronic cat 600 wide

What normal was: eight plant problems an AI advisor can catch before the alarm

Content tags...

Most faults on a plant announce themselves quietly, long before a limit alarm fires. The CATIMi Advisor is CATIM's own AI engine: it learns what normal looks like on your plant and says, every second, how far the plant has strayed from it. This post explains how it works, what keeps it safe beside a PLC, and eight industrial control problems it can help solve, with an honest line on what we have shown on our bench.

The alarm that comes too late

A fixed alarm limit answers one question: has this value crossed a line? It is simple, auditable and essential - and it fires at the end of the story. A corroding connector, a frozen transmitter, a valve left a turn open, a bearing wearing out: each moves the plant away from how it normally runs while every value stays inside its limits. By the time a limit trips, the line has stopped or the scrap is made.

The harder question is is the plant still behaving the way it normally does? Nobody writes that as a rule, because "normal" is a pattern across many signals, not a number. That is the question the CATIMi Advisor is built to answer.

How the Advisor works, in one minute

The Advisor is a small neural network of a kind called an autoencoder. Picture a network that squeezes its input through a narrow middle and rebuilds it on the other side. Trained only on recordings of your plant's normal running, it becomes very good at rebuilding normal - and poor at rebuilding anything it has not seen. How badly it rebuilds the present is the signal.

  • Once a second, for each signal it watches, it looks at the last 32 seconds as five numbers: the value, how it changes, good replies, failed replies and its spread.
  • One score. The rebuild error is scaled so that normal running sits below 1. A score above 1 for three seconds raises the Advisor's alarm.
  • Each input's share. Every score carries each input's part of it, so a screen can say which signal moved, not only that something did.
  • Your choice of signals. The engineer picks the one to eight signals a model learns.

It is small enough to live beside the PLC. The model is about 26 KB and runs on the controller's built-in AI processor, its neural processing unit (NPU), leaving the CPU to the control program. The plant's data stays on site.

How the CATIMi Advisor fits beside the PLC

How the pieces fit. The PLC's values reach the Advisor once a second through i3X, the controller's data server. The score goes out on the Unified Namespace (UNS) - the controller's shared message broker - to the PLC, to a history kept on the controller, and to a dashboard. Models come in, and recordings go out, only through the controller's secure file service. Every box here has run on our bench.

The engineer's side is one tool, the CATIM Advisor Builder Win application. It fetches the controller's labelled recordings, says whether there is enough data to train on, builds the model, reports in plain words what it catches and how many false alarms an hour it would raise, and puts a signed model on the controller. Like every CATIM Windows tool, it is a module of its own, ready to sit under one CATIM main application.

Trust before cleverness

An advisor is only useful if the people running the plant can trust it. Three things matter more than the model's accuracy:

  • It advises; the PLC decides. The Advisor is part of no control or safety function. Its score arrives in the PLC as an input, and the plant's own logic decides what, if anything, to do with it.
  • Only a model signed by CATIM loads. The controller checks every model package's signature and contents, refuses a version lower than the one it runs, and puts the previous model back if the new one fails its health check. Only the Advisor Builder may load a model; a tool that fetches recordings may only fetch.
  • It fails loudly, not quietly. It restarts itself after a stop, without looping on a configuration fault. A score that is not valid - while the engine or its data path restarts - must read as no advice, never as all clear. On our bench - a simulated machine, not a customer plant - held at full load for two hours beside a running PLC, the Advisor left the PLC cycling on time throughout.

A habit worth knowing

The Advisor does not know what a fault is. It knows what normal was, and says how far the plant has moved from it. Two things follow that make it useful in practice:

  • The height of the score hints at the kind of change, more than at how serious it is. On our bench, a link dropping replies scored about 43, a step to a new operating point about 284, and a value frozen in place about 1,160. Normal running scored 0.04 to 0.12.
  • The shares point at where to look. The score says something has changed; the shares say which signal changed most.

With that in mind, here are eight problems it can help solve.

How to read the diagrams. A solid border is a part we have shown on our bench, on a simulated machine we can disturb on purpose, not a customer plant. A dashed border is the part each plant brings: its own sensors, labels, model and PLC logic. A thick red border is the fault the problem is about.

The problem. A Modbus or similar link to a drive, a meter or a remote I/O station rarely fails at once. A connector corrodes, a cable is crushed, a termination comes loose, and the link starts to drop the odd reply. The PLC's retries hide it - the value still arrives - until one day they do not, and the line stops. A fixed alarm on link down fires only at the end.

How the Advisor helps. Two of the five numbers it reads for each signal are good replies and failed replies, so it learns how a healthy link behaves: almost no failures, a steady rhythm. A trickle of exceptions is unlike anything in its normal, and the score rises well before the link fails. On the bench, Modbus exceptions gave a score of about 43 with the alarm on. Maintenance gets a work order for a cable, not a breakdown.

A fieldbus link going bad

On the bench, and on your plant. On our bench, a Modbus link's errors are scored and alarmed. On your plant, the model is trained on your own links, one signal per device.

A frozen or stuck sensor

The problem. A transmitter that freezes - a failed analogue card, a stuck float, a gateway that keeps sending its last value - looks perfectly healthy: the value is in range, its quality is Good, no limit is crossed. A loop then controls on a number that is no longer true, and a tank overfills or a temperature runs away.

How the Advisor helps. A live measurement is never perfectly still: it has noise, small changes and a spread. The Advisor learns that texture, so a value with no change and no spread at all is far from normal, even though the value itself looks fine. We will be honest: our first model missed a frozen value. Adding the change and spread inputs fixed it, and the frozen value now scores about 1,160 - a height that itself says frozen, not noisy.

A frozen or stuck sensor

On the bench, and on your plant. On our bench, the frozen value is caught. On your plant, each transmitter becomes a signal of a model.

A process that has quietly shifted

The problem. A setpoint is changed and not changed back, a valve is left a turn open after maintenance, a new batch of material runs differently. Every value stays inside its limits, so no alarm fires, yet the plant is no longer running the way it was set up - and the energy bill, the scrap rate or the wear tells the story months later.

How the Advisor helps. The Advisor remembers the plant's normal operating point, not just its limits. A step to a new base value is a large change from that normal: on the bench it scored about 284. The operator then decides. If the change was a mistake, it is put back and the score falls. If it was meant - a new product, a new recipe - the operator records the new running, labels it good, and the engineer trains a model that knows it (A better model, rolled out safely).

A process that has quietly shifted

On the bench, and on your plant. On our bench, a step to a new base value is scored, and a labelled recording has been retrained into a new model and put on the controller. On your plant, your setpoints and valve positions become the model's signals.

A pump or fan wearing out

The problem. A pump's bearing wears, an impeller erodes, a fan's filter clogs. Each signal on its own - motor current, discharge pressure, flow - moves a little and stays in range. What changes is how they move together: the same flow now takes more current, or the same current gives less pressure. A limit on any one of them sees nothing until the machine is close to failing.

How the Advisor helps. A model that learns several signals at once learns their relationship in normal running, not only each one's range. When the relationship breaks, the rebuild fails, the score rises, and the shares point to the signals that no longer agree. The model is trained on weeks of healthy running, recorded on a schedule. The data path reads the PLC once a second, which suits slow wear seen in current, pressure, flow and temperature; vibration needs a faster path than once a second.

A pump or fan wearing out

On the bench, and on your plant. On our bench, a model learns the one to eight signals the engineer chooses, every score carries each input's share, and recording runs on a schedule. On your plant, a pump's current, pressure and flow become one model.

Waste when the plant should be idle

The problem. At night and over the weekend a plant should draw a known base load. A compressed-air leak, a heater left on, a conveyor that never stops, a cooling-water valve passing - each costs money every idle hour, and none of them trips an alarm, because nothing is out of range for a running plant.

How the Advisor helps. The controller records on a schedule the operator sets, and each session is labelled. Recording the idle hours on their own lets the engineer train a model of idle normal: the air pressure's slow decay, the base current, the quiet flow. Run in those hours, it scores a leak or a running motor as unlike idle. The score log keeps the nights for up to 90 days, so a slow rise across weeks shows in the history.

Waste when the plant should be idle

On the bench, and on your plant. On our bench, recording runs in scheduled sessions labelled good, bad or other, and the score is kept for up to 90 days. On your plant, a model of idle normal is trained on the idle hours and scored only in them.

An alarm flood: where do I look first?

The problem. When a process upset begins, dozens of alarms fire within seconds, most of them consequences of one cause. The operator has to find the first domino while the screen fills. Alarm management standards ask for fewer, better alarms; most plants have more.

How the Advisor helps. The Advisor gives one number for the whole unit, with each signal's share of it. The share points at the signal that moved first and most, often well before its own limit alarm. On a screen beside the alarm list, it answers the operator's first question - where do I look? - in one line. It does not replace the alarm system; it ranks the suspects.

An alarm flood: which signal is to blame

On the bench, and on your plant. On our bench, every score carries each input's share, on the UNS and through i3X. On your plant, the shares sit on the operator's screen beside the alarm list.

An advisory interlock in the PLC

The problem. Some changes call for a cautious response before anyone has diagnosed them: slow a line, hold the next batch, ask for an inspection before a restart. A hard interlock on a single limit is too blunt for that, and a person watching a screen is too slow at 3 a.m.

How the Advisor helps. The score and the alarm arrive in the PLC itself, in Tributary - the data-flow engine of CATIM Nimbus - each second. The PLC's own program, written, reviewed and tested by the plant's engineers like any other logic, decides what an alarm means: a slower speed, a held batch, a message to the operator. The model never writes an output; the PLC reads its advice and keeps every decision. A score that is not valid must read as no advice, and the logic falls back to its normal behaviour.

An advisory interlock in the PLC

On the bench, and on your plant. On our bench, the score and alarm reach the PLC each second, and read not valid while the data server restarts. On your plant, a Tributary flow written by your engineers acts on the alarm.

A better model, rolled out safely

The problem. A model is never finished: the plant changes, a missed fault is found, more data arrives. But every change to what runs beside a PLC is a risk - an untested file, the wrong version, a model meant for another machine. Plants that cannot update safely stop updating.

How the Advisor helps. The improvement loop is one application on the engineer's PC. The Advisor Builder fetches the controller's labelled recordings, trains the new model, reports in plain words what it catches and how often it would alarm falsely, and signs it. The controller accepts only a signed package, of a higher version, made for that unit; installs it; checks its health; and puts the old model back if the check fails. The score log keeps the history across the change, so before and after can be compared.

A better model, rolled out safely

On the bench, and on your plant. On our bench, the Advisor Builder records, fetches, trains, signs and installs a model, and the controller refuses a lower version. Its model caught 27 of 38 deliberate faults at 1.38 false alarms an hour. On your plant, the same loop runs on your own recordings.

What it does not do

  • It is not a safety function. It advises; the PLC and the plant's safety system decide.
  • It does not diagnose. It says unlike normal, how far, and which signal; the engineer says why.
  • It knows only the normal it was shown. A model trained on too little running alarms falsely; the Advisor Builder's report says how often, and more labelled data lowers it.
  • It reads once a second. Faster signals, such as vibration, need a faster data path.
  • Its data stays on the controller unless an engineer fetches it. Nothing goes to a cloud.

What it means for you

  • For executives: early warning that costs a work order instead of a breakdown, from your plant's own data, on site, with every decision still made by your control system and your people.
  • For project managers: a pilot starts with advice on a screen and moves into the PLC one reviewed step at a time; gathering normal running is a recording schedule, not a site campaign.
  • For engineers: one score and its shares, delivered to the PLC, the UNS and a history; signed models that only move forward; and a not-valid score you design for as no advice.

A question to take back to your plant

Think of your last three unplanned stops. How many of them gave a warning - a few dropped replies, a reading that went still, a pump drawing a little more - that nobody was watching for? If the answer is "most", the problem is not a lack of alarms; it is a lack of anyone who remembers what normal looked like. That is the job we built the CATIMi Advisor for. Tell us which of the eight problems costs you most, and we will tell you what it would take to show it on your equipment. Get in touch.

Read more

About CATIM. CATIM - Creating Automation Technology In Motion - empowers people to engineer automation solutions that solve hard technical problems. CATIM Nimbus, the CODESYS edge controller with advisory AI, is the next generation of the Nimbus platform it has built since 2019. CATIM customers own their hardware and its services, connected by open industrial protocols, with no lock-in subscription and security updates and fixes free for at least ten years from sale.