@Kpeter,
was machst Du wenn weder Türe noch Not-Aus gedrückt? In der Tabelle steht da ja noch dann Not-Aus gesamt Anlage = 1
Also mal am einfachsten mit Bit-Operationen:
U #Türe
U #Not-Aus
O
U #Türe
UN #Not-Aus
O
UN #Türe
UN #Not-Aus
= #Not-Aus_gesamt_Anlage
Dann könnte man reduzieren
U #Türe
O
UN #Türe
UN #Not-Aus
= #Not-Aus_gesamt_Anlage
Oder habe ich mich nun verrannt ...