Standard beginning

The function block fbStandardBegin determines the start conditions for the step sequence and monitors the safe status to allow automatic or manual operation. This function block is a main component of every sequence and is located in the Selmo Basic library. refHwzHmi is the reference (pointer) to the variable list "GVL_<HwZone_name>_HMI.stHmiIfarrow-up-right" refHwzIf is the reference (pointer) to the variable list "GVL_<HwZone_name>.stHwzIfarrow-up-right" refSeqHmi is the reference (pointer) to the variable list "GVL_<Sequence_name>_HMI.stHmiIfarrow-up-right" (stHmiSequence) refSeqIf is the reference (pointer) to the variable list "GVL_<Sequence_name>.stSeqIfarrow-up-right" (stSequenceInterface) xSeqSafetyModeOn Query of the safety key switch "GVL_<HwZone_name>_IOs.xSafetyFunctionKeySwitcharrow-up-right" iSeqStepcounter current step counter of the sequence "GVL_<Sequence_name>.iStepcounterarrow-up-right" aSeqPb Array of manual operation push buttonsarrow-up-right (HMI Buttons) is increased by one index per active HMI button per zone aLampMatrix Array of the bit matrixarrow-up-right (variable declaration) is increased by two indices per zone aStepMatrix Array of the bit matrixarrow-up-right (variable declaration) is increased by two indices per zone aTempMatrix Array of the bit matrixarrow-up-right (variable declaration) is increased by two indices per zone aEocSteps Array of the bit matrixarrow-up-right (Variable declaration) is increased by one index per step

Copy

// ########################### STANDARD BEGINNING ###########################
   {region "Description Standard Beginning"}
   (*
   The Standard Beginning determines the step sequence start up conditions and 
   monitors the safe status of the step sequence to allow Automatic or Manual operation
   *)
   {endregion}
   fbStandardBegin(
      refHwzHmi := GVL_<HwZone_name>_HMI.stHmiIf,
      refHwzIf := GVL_<HwZone_name>.stHwzIf,
      refSeqHmi:= GVL_<Sequence_name>_HMI.stHmiIf,
      refSeqIf := GVL_<Sequence_name>.stSeqIf, 
      xSeqSafetyModeOn := GVL_<HwZone_name>_IOs.xSafetyFunctionKeySwitch,
      iSeqStepcounter := GVL_<Sequence_name>.iStepcounter,
      aSeqPb := aPb, 
      aLampMatrix := aMatrix, 
      aStepMatrix := aStep, 
      aTempMatrix := aTemp,
      aEocSteps := aEocSteps); 

Last updated

Was this helpful?