Where does the downtime reason come from when you log S7 fault messages with timestamps?

Hi all,

I'm building a small prototype: a Raspberry Pi reads a data block from an S7 via Snap7 (read-only) and logs every change from "running" to "fault" with a timestamp and fault code into a database. It works against a simulated S7.

Now I'm stuck on the real-world side, where you have far more experience than I do:

1. Where does the reason for a stop come from on your machines? Is it a fault code in the PLC, only an alarm text on the HMI, or does someone have to enter it by hand?
2. How do you separate micro-stops (a jam, a light barrier briefly blocked) from real faults? Is there a fixed time threshold?
3. Have you seen this kind of logging actually used day to day, or does the evaluation die out after a few weeks?

Background: I'm checking with a friend whether this could become a startup. just want to hear about some experiences.

Thanks,
Oskar
 
Hi Oskar,

Good questions — this is exactly where most of these projects get stuck, not in the Snap7 part.

1. Where the reason comes from: in practice it's almost never one source. The PLC usually gives you the *what* and *when* — a fault code, a sensor not made, a drive fault. The HMI alarm text is often just that same code translated. The *why* — no material, jam, waiting for operator, changeover — usually still needs a human. What works best on the lines I see is a mix: log the PLC code automatically, and pop up 3-4 big buttons on the HMI for the operator to pick a reason, no free text. If you ask for free text, you get nothing.

2. Micro-stops vs real faults: don't use time alone. My rule of thumb is: if the machine restarts itself without an operator reset, it's a micro-stop. If it needs a reset, an acknowledgment, or someone to clear a jam, it's a fault. As a starting threshold, 60 seconds works for a lot of packaging / assembly lines, but count frequency too — twenty 20-second jams in an hour is not a micro problem anymore.

3. Does it get used? Honestly, yes, it dies out a lot — usually because nobody owns the weekly review. The ones that survive all have the same thing: a simple top-3 stop reasons report that maintenance actually looks at on Monday morning, and a clear owner. Without that, even good data just piles up in a database.

One question back: what kind of machine / industry are you testing this on? The right threshold and the right reason list change a lot between, say, packaging and a standalone process skid.
 
Top