FAIL_MOD := IN1;
OUT1 := 0;
IF (FAIL_MOD = 1) THEN
OUT1 := 'phase_failures:Inlet Valve Open';
ELSE
IF (FAIL_MOD = 2) THEN
OUT1 := 'phase_failures:Inlet Valve Open';
ELSE
IF (FAIL_MOD = 4) THEN
OUT1 := 'phase_failures:Outlet Not Closed';
ELSE
IF (FAIL_MOD = 8) THEN
OUT1 := 'phase_failures:Agitator Stopped';
ENDIF;
ENDIF;
ENDIF;
ENDIF
This expression determines which failure message should be displayed to the operator based on the first failure condition that was detected by the Boolean Fan In block. The failure message will later be written to the phase's FAIL_INDEX parameter.