Standard end

The function block fbStandardEnd contains the logic that extracts information from the machine state (step) for actuators and sensors (zones) and determines the type of subsequent actions. It also supervises the control of the step counter and provides diagnostics to the HMI. This FB is a main component of every sequence and can be found in the Selmo Basic library. 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) iSeqEndStep Query of the last modeled step "GVL_<HwZone_name>_IOs.xSafetyFunctionKeySwitcharrow-up-right" iSeqStepcounter current step counter of the sequence "GVL_<Sequence_name>.iStepcounterarrow-up-right" 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 aSeqHmiBits Array of the bit matrix is increased by two indices per zone and serves as information for the HMI "GVL_<Sequence_name>_HMI.aHmiarrow-up-right" aStepMonitoringMatrix Array for storing the times per step "GVL_<Sequence_name>.aStepMonitoringMatrixarrow-up-right" aStepMonitoringFb Array of the memory blocksarrow-up-right (variable declaration) per step

Copy

// ########################### STANDARD END ###########################
   {region "Description Standard End"}
   (*
   The Standard End section provides the logic which extracts fault information from 
   the step sequence fault matrix determining the nature of the fault and subsequent actions.
   It also supervises control of the sequence step counter and provides the diagnostic  ‘link’ to the ‘HMI’ software.
   *)
   {endregion}
   GVL_<Sequence_name>.iStepCounterLastCycle := GVL_<Sequence_name>.iStepCounter;

   fbStandardEnd(
      refSeqHmi:= GVL_<Sequence_name>_HMI.stHmiIf,
      refSeqIf :=GVL_<Sequence_name>.stSeqIf,   
      iSeqEndStep := GVL_<Sequence_name>.iEndStep, 
      iSeqStepCounter := GVL_<Sequence_name>.iStepCounter, 
      aLampMatrix := aMatrix, 
      aStepMatrix := aStep, 
      aTempMatrix := aTemp, 
      aSeqHmiBits := GVL_<Sequence_name>_HMI.aHmi,
      aStepMonitoringMatrix := GVL_<Sequence_name>.aStepMonitoringMatrix,
      aStepMonitoringFb := aStepMonitoringFb);

Interlock Stored

Copy

2.2.1.7.8.7. <Sequence_name>_InputMapping


Copy

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

In the input mapping the required hardware inputs are mapped to the input zones. Example:

Copy

2.2.1.7.8.8. <Sequence_name>_OutputMapping


Copy

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

In the output mapping the output zones are mapped to the hardware outputs as required. Example:

Copy

Last updated

Was this helpful?