Release pushbutton pressed

Release Pushbutton pressed Pressing a release pushbutton within the zone activates the output 'release pressed'

Copy

// --------------------------------Release Pushbutton Pressed--------------------------------
   {region "Description Release Pushbutton Pressed"}
   (*
   Pressing any release p/b within the zone activates the release p/b pressed flag.
   *)
   {endregion}
   aReleaseMatrix[0] := GVL_<HwZone_name>_IOs.xRelease;

   FOR  iIndex := 0 TO 0 DO 
      IF aReleaseMatrix[iIndex] THEN
         GVL_<HwZone_name>.stHwzIf.xReleasePbPressed := TRUE;
         EXIT;
      ELSE
         GVL_<HwZone_name>.stHwzIf.xReleasePbPressed := FALSE;
      END_IF
   END_FOR

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

Last updated

Was this helpful?