> 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-struktur-und-standard/selmo-technischer-standard-und-struktur/beschreibung-selmo-plc-code/sequence-logic/less-than-sequence_name-greater-than/struktur-less-than-sequence_name-greater-than/standard-beginning.md).

# Standard Beginning

Der Funktionsblock fbStandardBegin bestimmt die Startbedingungen für die Schrittfolge und überwacht den sicheren Status, um den automatischen oder manuellen Betrieb zu ermöglichen. Dieser Funktionsblock ist ein Hauptbestandteil jeder Sequence und befindet sich in der Selmo Basic Bibliothek. **refHwzHmi** ist die Reference(Pointer)zu der Variablenliste "[GVL\_\<HwZone\_name>\_HMI.stHmiIf](https://selmo-technology-gmbh.gitbook.io/selmo-solution/02-selmo-standard/04-selmo-plc-code/contents#221721-sthmihardwarezone)" **refHwzIf** ist die Reference(Pointer)zu der Variablenliste "[GVL\_\<HwZone\_name>.stHwzIf](https://selmo-technology-gmbh.gitbook.io/selmo-solution/02-selmo-standard/04-selmo-plc-code/contents#221711-sthardwarezoneinterface)" **refSeqHmi** ist die Reference(Pointer)zu der Variablenliste "[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** ist die Reference(Pointer)zu der Variablenliste "[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** Abfrage des Sicherheitsschlüsselschalter "[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** aktueller Schrittzähler der 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 der Handbetrieb Push buttons](https://selmo-technology-gmbh.gitbook.io/selmo-solution/02-selmo-standard/04-selmo-plc-code/contents#221786-sequence1) (HMI Buttons) wird um einen Index je aktiven HMI - Button je Zone erhöht **aLampMatrix** [Array der Bit Matrix](https://selmo-technology-gmbh.gitbook.io/selmo-solution/02-selmo-standard/04-selmo-plc-code/contents#221786-sequence1) (Variablen Deklaration) wird um zwei Indizes je Zone erhöht **aStepMatrix** [Array der Bit Matrix](https://selmo-technology-gmbh.gitbook.io/selmo-solution/02-selmo-standard/04-selmo-plc-code/contents#221786-sequence1) (Variablen Deklaration) wird um zwei Indizes je Zone erhöht **aTempMatrix** [Array der Bit Matrix](https://selmo-technology-gmbh.gitbook.io/selmo-solution/02-selmo-standard/04-selmo-plc-code/contents#221786-sequence1) (Variablen Deklaration) wird um zwei Indizes je Zone erhöht **aEocSteps** [Array der Bit Matrix](https://selmo-technology-gmbh.gitbook.io/selmo-solution/02-selmo-standard/04-selmo-plc-code/contents#221786-sequence1) (Variablen Deklaration) wird um einen Index je Schritt erhöht

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-struktur-und-standard/selmo-technischer-standard-und-struktur/beschreibung-selmo-plc-code/sequence-logic/less-than-sequence_name-greater-than/struktur-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.
