feat: Implementierung der Anzeige für Isolationsfehler

- Anzeige des "Isolationsfehler" für Werte über kueAlarm1-Array.
- Fehlerstatus in roter Schrift dargestellt, analog zu "Aderbruch" und "Erdschluss".
- Anzeige priorisiert Isolationsfehler vor Standard-Isolationswert.
This commit is contained in:
ISA
2024-10-27 16:03:25 +01:00
parent c0bd054bd9
commit 60aedd96ee

View File

@@ -405,28 +405,30 @@ function Kue705FO({
<span className="text-white text-[10px]">Alarm</span> <span className="text-white text-[10px]">Alarm</span>
</div> </div>
</div> </div>
{/* isoDisplay: Zeigt den Isolationswiderstand, Aderbruch oder Erdschluss an */} {/* Anzeige für Isolationsfehler, Aderbruch oder Erdschluss */}
<div className="relative mt-[50px] mx-auto bg-black text-white w-[100px] h-[40px] flex items-center justify-center text-[18px] z-10"> <div className="relative mt-[50px] mx-auto bg-black text-white w-[100px] h-[40px] flex items-center justify-center text-[18px] z-10">
<div className="text-center"> <div className="text-center">
<span <span
className={ className={
window.kueCableBreak[slotIndex] === 1 || window.kueCableBreak[slotIndex] === 1 ||
window.kueGroundFault[slotIndex] === 1 window.kueGroundFault[slotIndex] === 1 ||
window.kueAlarm1[slotIndex] === 1
? "text-red-500 text-[14px]" // Rot und kleinere Schrift für Alarme ? "text-red-500 text-[14px]" // Rot und kleinere Schrift für Alarme
: "" : ""
} }
> >
{/* Zeigt den entsprechenden Fehler oder den Isolationswert */}
{window.kueCableBreak[slotIndex] === 1 {window.kueCableBreak[slotIndex] === 1
? isoDisplayText // Anzeige für Aderbruch, wenn aktiv ? isoDisplayText // Aderbruch-Anzeige
: window.kueGroundFault[slotIndex] === 1 : window.kueGroundFault[slotIndex] === 1
? groundFaultDisplayText // Anzeige für Erdschluss, wenn aktiv und kein Aderbruch ? groundFaultDisplayText // Erdschluss-Anzeige
: window.kueAlarm1[slotIndex] === 1
? "Isolationsfehler" // Isolationsfehler-Anzeige
: isolationswert || ">200"}{" "} : isolationswert || ">200"}{" "}
{/* Standardanzeige für Isolationswert */}
</span> </span>
{/* Nur anzeigen, wenn kein Alarm aktiv ist */}
{window.kueCableBreak[slotIndex] !== 1 && {window.kueCableBreak[slotIndex] !== 1 &&
window.kueGroundFault[slotIndex] !== 1 && ( window.kueGroundFault[slotIndex] !== 1 &&
window.kueAlarm1[slotIndex] !== 1 && (
<div className="text-[8px]">ISO MOhm</div> <div className="text-[8px]">ISO MOhm</div>
)} )}
</div> </div>