I am utterly stumped. The next program simply doesn't run, but why? Is it a bug in the CCU2 with complex conditions, or is the problem as usual between chair and keyboard?
What I'm trying, 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