Lamp Test
//--------------------------------Lamp Test--------------------------------
{region "Description Lamp Test"}
(*
The lamp test function is implemented via a pushbutton on the HMI or a hardware button.
Pressing this button activates the lamp test output in any sequence.
This output is then used to test the lamp outputs wherever necessary.
*)
{endregion}
aLampTestMatrix[0] := GVL_Global.stGlobalIf.xLampTest;
aLampTestMatrix[1] := GVL_<HwZone_name>_HMI.stHmiIf.xHmiLampTest;
aLampTestMatrix[2] := GVL_<HwZone_name>_IOs.xLampTest;
FOR iIndex := 0 TO 2 DO
IF aLampTestMatrix[iIndex] THEN
GVL_<HwZone_name>.stHwzIf.xLampTest := TRUE;
EXIT;
ELSE
GVL_<HwZone_name>.stHwzIf.xLampTest := FALSE;
END_IF
END_FORLast updated
Was this helpful?

