> 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/sequence-logic-control/sequence-cmz.md).

# Sequence CMZ

Eine „Constantly Monitored Zone” CMZ bei Maschinen ist ein Bereich oder eine Zone in einer Maschine, der bzw. die ständig von Sensoren oder anderen Überwachungsmechanismen überwacht wird. In diesen Zonen befinden sich beispielsweise kritische Komponenten oder Prozesse einer Maschine, bei denen das Auftreten eines Fehlers oder einer Störung schwerwiegende Konsequenzen haben kann. Die Überwachung dieser Zonen erfolgt durch verschiedene Arten von Sensoren, beispielsweise Temperatur- oder Drucksensoren. Diese messen kontinuierlich die Werte in der Zone und übermitteln sie an das Steuerungssystem der Maschine. Das Steuerungssystem leitet bei Abweichungen von den normalen Werten entsprechende Maßnahmen ein, um potenzielle Probleme zu vermeiden oder zu minimieren.

**fbErrorSetCtr**\* Der Baustein ermöglich das Setzen und Rücksetzen von CMZ's fbErrorSetCtrl\*.**P\_timErrorDelay** ermöglicht es einen Fehler zu verzögern, d.h. er muss min. für diese Zeit aktiv sein bevor der Fehler gesetzt wird fbErrorSetCtrl\*.**P\_xAutoReset** ermöglicht es einen Fehler sobald er behoben wurde automatisch zu quittieren fbErrorSetCtrl\*.M\_ErrorSet(**xError**)hier wird die Variable, der zuvor im Studio definierte CMZ, zugewiesen "[NOT GVL\_\<Sequence\_name>\_CMZ.xCMZ\_1](https://selmo-technology-gmbh.gitbook.io/selmo-solution/02-selmo-standard/04-selmo-plc-code/contents#221782-gvl_sequence1_cmz)" fbErrorSetCtrl\*.M\_ErrorSet(**xReset**)Globale oder Sequence bezogener Reset des CMZ "[GVL\_Global.stGlobalIf.xFaultReset](https://selmo-technology-gmbh.gitbook.io/selmo-solution/02-selmo-standard/04-selmo-plc-code/contents#22141-stglobalinterface) ; [GVL\_\<Sequence\_name>\_HMI.stHmiIf.xHmiPbFaultReset](https://selmo-technology-gmbh.gitbook.io/selmo-solution/02-selmo-standard/04-selmo-plc-code/contents#221783-gvl_sequence1_hmi)" (stHmiSequence)

**fbCmzFault** Der Baustein überprüft die entsprechenden Arrays ob ein Fehler aufgetreten ist. fbCmzFault(**aFaultMatrix**) [Array der gesamten CMZ](https://selmo-technology-gmbh.gitbook.io/selmo-solution/02-selmo-standard/04-selmo-plc-code/contents#221786-sequence1) (Variablen Deklaration) zusammengefasst fbCmzFault(**xFaultActive**)Variable für Sammelfehler des CMZ "[GVL\_\<Sequence\_name>.stSeqIf.xSeqCmzFault](https://selmo-technology-gmbh.gitbook.io/selmo-solution/02-selmo-standard/04-selmo-plc-code/contents#221781-gvl_sequence1)" (stSequenceInterface)

Copy

```
// ########################### SEQUENCE CMZ ###########################
   {region "Description Sequence CMZ"}
   (*
   The Sequence Constantly Monitored Zone (or ‘CMZ’) is similar to the TCMZ but
   will contain only machine unsafe /fatal faults related to the individual step sequence.
   *)
   {endregion}

   // Hardware Zone Fatal Fault (TCMZ)
   fbErrorSetCtrl0.P_xAutoReset := TRUE;
   aCmz[0] := fbErrorSetCtrl0.M_ErrorSet(xError := GVL_HwZone1.stHwzIf.xFatalFault, xReset:= GVL_Global.stGlobalIf.xFaultReset OR GVL_Sequence1_HMI.stHmiIf.xHmiPbFaultReset);

   // Hardware Zone Gate Fortress Fault (TCMZ)
   fbErrorSetCtrl1.P_xAutoReset := TRUE;
   aCmz[1] := fbErrorSetCtrl1.M_ErrorSet(xError := GVL_HwZone1.stHwzIf.xGateFortressFaultTcmz, xReset:= GVL_Global.stGlobalIf.xFaultReset OR GVL_Sequence1_HMI.stHmiIf.xHmiPbFaultReset);

   // CMZ: xCMZ_1 | CMZ 1
   fbErrorSetCtrl2.P_xAutoReset := TRUE;
   fbErrorSetCtrl2.P_timErrorDelay := T#1500MS;
   aCmz[2] := fbErrorSetCtrl2.M_ErrorSet(xError := NOT GVL_Sequence1_CMZ.xCMZ_1, xReset:= GVL_Global.stGlobalIf.xFaultReset OR GVL_Sequence1_HMI.stHmiIf.xHmiPbFaultReset);


   fbCmzFault(aFaultMatrix:= aCmz, xFaultActive => GVL_Sequence1.stSeqIf.xSeqCmzFault);
   GVL_Sequence1.stSeqIf.xNoCMZFault := NOT GVL_Sequence1.stSeqIf.xSeqCmzFault;
```

<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/sequence-logic-control/sequence-cmz.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.
