Lamp Test

Lamp Test The lamp test function is implemented via a push button on the HMI. By pressing this button, the "Lamp Test" output is activated in any sequence. This output is then used to test the lamp outputs wherever required.

Copy

//--------------------------------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_FOR

<***>Variable name, comment and data type are automatically taken from the Studio

Last updated

Was this helpful?