> For the complete documentation index, see [llms.txt](https://infosys.selmotech.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://infosys.selmotech.com/selmo-solution/selmo-solution-en/selmo-structure-and-standard/selmo-technical-standard-and-structure/description-selmo-plc-code/sequence-logic/less-than-sequence_name-greater-than/structure-less-than-sequence_name-greater-than/standard-beginning.md).

# 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.stHmiIf](https://selmo-technology-gmbh.gitbook.io/selmo-solution/02-selmo-standard/04-selmo-plc-code/contents#221721-sthmihardwarezone)" **refHwzIf** is the reference (pointer) to the variable list "[GVL\_\<HwZone\_name>.stHwzIf](https://selmo-technology-gmbh.gitbook.io/selmo-solution/02-selmo-standard/04-selmo-plc-code/contents#221711-sthardwarezoneinterface)" **refSeqHmi** is the reference (pointer) to the variable list "[GVL\_\<Sequence\_name>\_HMI.stHmiIf](https://selmo-technology-gmbh.gitbook.io/selmo-solution/02-selmo-standard/04-selmo-plc-code/contents#221783-gvl_sequence1_hmi)" (stHmiSequence) **refSeqIf** is the reference (pointer) to the variable list "[GVL\_\<Sequence\_name>.stSeqIf](https://selmo-technology-gmbh.gitbook.io/selmo-solution/02-selmo-standard/04-selmo-plc-code/contents#221781-gvl_sequence1)" (stSequenceInterface) **xSeqSafetyModeOn** Query of the safety key switch "[GVL\_\<HwZone\_name>\_IOs.xSafetyFunctionKeySwitch](https://selmo-technology-gmbh.gitbook.io/selmo-solution/02-selmo-standard/04-selmo-plc-code/contents#22173-gvl_hwzone1_ios)" **iSeqStepcounter** current step counter of the sequence "[GVL\_\<Sequence\_name>.iStepcounter](https://selmo-technology-gmbh.gitbook.io/selmo-solution/02-selmo-standard/04-selmo-plc-code/contents#221781-gvl_sequence1)" **aSeqPb** [Array of manual operation push buttons](https://selmo-technology-gmbh.gitbook.io/selmo-solution/02-selmo-standard/04-selmo-plc-code/contents#221786-sequence1) (HMI Buttons) is increased by one index per active HMI button per zone **aLampMatrix** [Array of the bit matrix](https://selmo-technology-gmbh.gitbook.io/selmo-solution/02-selmo-standard/04-selmo-plc-code/contents#221786-sequence1) (variable declaration) is increased by two indices per zone **aStepMatrix** [Array of the bit matrix](https://selmo-technology-gmbh.gitbook.io/selmo-solution/02-selmo-standard/04-selmo-plc-code/contents#221786-sequence1) (variable declaration) is increased by two indices per zone **aTempMatrix** [Array of the bit matrix](https://selmo-technology-gmbh.gitbook.io/selmo-solution/02-selmo-standard/04-selmo-plc-code/contents#221786-sequence1) (variable declaration) is increased by two indices per zone **aEocSteps** [Array of the bit matrix](https://selmo-technology-gmbh.gitbook.io/selmo-solution/02-selmo-standard/04-selmo-plc-code/contents#221786-sequence1) (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); 
```

<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://infosys.selmotech.com/selmo-solution/selmo-solution-en/selmo-structure-and-standard/selmo-technical-standard-and-structure/description-selmo-plc-code/sequence-logic/less-than-sequence_name-greater-than/structure-less-than-sequence_name-greater-than/standard-beginning.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
