Alarm, wenn ein Schütz nach dem Abschalten des SPS-Ausgangs geschlossen bleibt (verschweißte Kontakte)
Von English mit KI übersetzt ·
Pharmawerk, HVAC für eine Reinraumsuite. Zuluftventilatoren starten über Schütze, die von Ausgängen der S7-1200 angesteuert werden. Letzten Monat ist ein Schütz verschweißt: Ausgang aus, Ventilator lief weiter, und niemand hat es sechs Stunden lang bemerkt, weil die SPS nie prüfte. Die SPS-Daten gehen über unser Gateway an Hermetry.Ich möchte zwei Dinge. Die SPS muss es lokal erkennen, dafür bin ich verantwortlich. Und Hermetry soll einen Alarm auslösen, wenn der Sollzustand und der Istzustand länger als ein paar Sekunden voneinander abweichen, damit die Instandhaltung es auf dem Board sieht und eine Benachrichtigung erhält. Was ist der sauberste Weg, „Ausgang sagt aus, aber der Ventilator läuft“ als Alarm abzubilden?
Pharma site, HVAC for a cleanroom suite. Supply fans start through contactors driven by S7-1200 outputs. Last month a contactor welded: output off, fan kept running, nobody noticed for six hours because the PLC never checked. The PLC data goes to Hermetry through our gateway.
I want two things. The PLC must catch it locally, that’s on me. And Hermetry should raise an alarm when the commanded state and the actual state disagree for more than a few seconds, so maintenance sees it on the board and gets a notification. What’s the cleanest way to express „output says off but the fan is running“ as an alarm?
Von English mit KI übersetzt ·
Könnten Sie einen Stromsensor am Lüfterkabel anbringen und einen Alarm auslösen, wenn Strom fließt, obwohl er ausgeschaltet sein sollte?
Could you put a current sensor on the fan cable and alarm when current flows while it should be off?
Von English mit KI übersetzt ·
Der aktuelle Sensor von David ist eine gültige Rückmeldequelle, aber die meisten Schütze haben bereits einen Hilfsschaltblock, und der ist günstiger.Verbinde einen NO-Hilfskontakt mit einem SPS-Eingang (oder verwende das aktuelle Relais, falls das Schütz keinen Hilfsblock aufnehmen kann). Veröffentliche dann beide Werte in derselben Nachricht alle paar Sekunden, nicht nur bei Änderung:
{"sf1.cmd": 0, "sf1.fb": 1}
Alarmregel im Profil, im JSON-Modus, da das Formular pro Schweregrad nur einen Vergleich unterstützt:
"severities": [
{ "severity": "MAJOR",
"condition": { "any": [
{ "all": [ { "key": "sf1.cmd", "op": "==", "value": 0 }, { "key": "sf1.fb", "op": "==", "value": 1 } ] },
{ "all": [ { "key": "sf1.cmd", "op": "==", "value": 1 }, { "key": "sf1.fb", "op": "==", "value": 0 } ] } ] } }
],
"debounce": { "mode": "duration", "raise": 5, "clear": 5 }
Das erfasst verschweißt (aus, aber läuft) und Anzug fehlgeschlagen (ein, aber gestoppt). Das Entprellen über 5 s Dauer deckt die Anzugs- und Abfallzeit des Schützes ab. Das Entprellen nach Dauer schreitet nur voran, wenn Messwerte eintreffen, daher muss die SPS weiter melden; bei reiner Meldung bei Änderung würde der Alarm auf die nächste Änderung warten.Einfachere Alternative: Lass die SPS mit eigenem Timer ein Diskrepanz-Bit berechnen (das sie ohnehin für die lokale Verriegelung braucht) und alarmiere bei sf1.discrepancy == true. Weniger JSON, eine einzige Datenquelle. Die Bedingungen sind in der Alarm conditions reference erklärt.
David’s current sensor is a valid feedback source, but most contactors already have an auxiliary contact block, which is cheaper.
Wire an NO auxiliary contact to a PLC input (or use the current relay if the contactor can’t take an aux block). Then publish both values in the same message, every few seconds, not only on change:
{"sf1.cmd": 0, "sf1.fb": 1}
Alarm rule on the profile, in JSON mode since the form only does one comparison per severity:
"severities": [
{ "severity": "MAJOR",
"condition": { "any": [
{ "all": [ { "key": "sf1.cmd", "op": "==", "value": 0 }, { "key": "sf1.fb", "op": "==", "value": 1 } ] },
{ "all": [ { "key": "sf1.cmd", "op": "==", "value": 1 }, { "key": "sf1.fb", "op": "==", "value": 0 } ] } ] } }
],
"debounce": { "mode": "duration", "raise": 5, "clear": 5 }
That covers welded (off but running) and failed to pull in (on but stopped). The 5 s duration debounce covers the contactor’s pick-up and drop-out time. Duration debounce only moves forward when readings arrive, so the PLC has to keep reporting; with change-only reporting the alarm would wait for the next change.
Simpler alternative: let the PLC compute a discrepancy bit with its own timer (it needs it for the local interlock anyway) and alarm on sf1.discrepancy == true. Less JSON, one source of truth. Conditions are explained on Alarm conditions reference.
Von English mit KI übersetzt ·
Ich habe mich für das PLC-Discrepancy-Bit, einen 3 s-Timer und den lokalen Trip entschieden. Hermetry alarmiert bei sf1.discrepancy == true für alle sechs Zuluftventilatoren über eine einzige Profilregel. Beim Test durch Forcen des Hilfseingangs kamen Alarm und E-Mail innerhalb von Sekunden. Deine JSON-Version habe ich in meinen Notizen für die Standorte behalten, an deren SPS-Programm ich nicht herankomme.
Went with the PLC discrepancy bit, 3 s timer, plus the local trip. Hermetry alarms on sf1.discrepancy == true for all six supply fans through one profile rule. Tested by forcing the aux input and got the alarm and the e-mail within seconds. Kept your JSON version in my notes for the sites where I can’t touch the PLC program.
- Du musst angemeldet sein, um auf dieses Thema antworten zu können.
Mitdiskutieren
Melde dich an, um Fragen zu stellen und zu beantworten, hilfreiche Beiträge mit „Gefällt mir“ zu markieren und die Antwort zu kennzeichnen, die dein Problem gelöst hat. Jeder Beitrag bringt Punkte und Stufen.

