Ich verstehe das complet nicht... Das folgende Programm wird einfacht nicht ausgefuhrt, aber wieso nicht? Ein bug im CCU2 mit komplexe bedingungen, oder ist wie ublich das problem zwischen Tastatur and Stuhl?
Was ich versuche, in pseudo code:
Code: Alles auswählen
IF ( valve position > 10% open AND temperature > 23 C ) OR ( valve sticking OR error position OR some other error )
;
; valve shouldn't be open on high temperatures, and serious problems should be highlighted
;
display red light
;
ELSEIF ( temperature > 23 C AND warning light is orange ) OR ( battery valve empty OR low battery thermostat )
;
; some other part of my system triggered an error condition, which in turn switched on a specific warning light
; also show low batteries (time to replace them)
;
display orange light
;
ELSEIF ( valve position > 10% open )
;
; no error condition was triggered before, so it's okay the valve is open, show a green light
;
display green light
;
ELSE
;
; valve is closed, nothing to show
;
display no light
;
ENDIF