Sequence CMZ

A “Constantly Monitored Zone” (CMZ) at machines is an area or zone in a machine that is continuously monitored by sensors or other monitoring mechanisms. These zones contain, for example, critical components or processes of a machine where the occurrence of a fault or malfunction can have severe consequences. The monitoring of these zones is done by various types of sensors, for example temperature or pressure sensors. These continuously measure the values in the zone and transmit them to the machine's control system. The control system initiates appropriate measures in case of deviations from normal values to avoid or minimize potential problems.

fbErrorSetCtr* The function block enables setting and resetting of CMZs fbErrorSetCtrl*.P_timErrorDelay allows delaying a fault, i.e. it must be active for at least this time before the fault is set fbErrorSetCtrl*.P_xAutoReset allows automatically acknowledging a fault as soon as it has been resolved fbErrorSetCtrl*.M_ErrorSet(xError)here the variable, the CMZ previously defined in the Studio, is assigned "NOT GVL_<Sequence_name>_CMZ.xCMZ_1arrow-up-right" fbErrorSetCtrl*.M_ErrorSet(xReset)Global or sequence-related reset of the CMZ "GVL_Global.stGlobalIf.xFaultResetarrow-up-right ; GVL_<Sequence_name>_HMI.stHmiIf.xHmiPbFaultResetarrow-up-right" (stHmiSequence)

fbCmzFault The function block checks the corresponding arrays to see if a fault has occurred. fbCmzFault(aFaultMatrix) array of the entire CMZarrow-up-right (variable declaration) summarized fbCmzFault(xFaultActive)variable for collective faults of the CMZ "GVL_<Sequence_name>.stSeqIf.xSeqCmzFaultarrow-up-right" (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;

Last updated

Was this helpful?