FUNCTION_BLOCK "FB_Main_skel_UH03"
{ S7_Optimized_Access := 'TRUE' }
VERSION : 0.1
// ============================================================
// AUTOMATISCH GENERIERTES GRUNDGERUEST — create_skel.py
// Quelle: E/A-Listen UH03 (data/)
// TODO-Marken kennzeichnen manuell zu ergaenzende Stellen
// (Timings, Topologie/JamAreas, Safety, Release, Priority).
// ============================================================
   VAR
      TRO301 : "FB_ILS_MTRO_PinStore_Auto";   // KR-K2101 / Block 2.1.1
      TRO302 : "FB_ILS_MTRO_PinStore_Auto";   // KR-K2102 / Block 2.1.3
      TRO303 : "FB_ILS_MTRO_1Sep";   // KR-K2110
      TRO304 : "FB_ILS_MTRO_PinStore_Auto";   // KR-K2201 / Block 2.2.1
      TRO305 : "FB_ILS_MTRO_PinStore_Auto";   // KR-K2202 / Block 2.2.3
      TRO306 : "FB_ILS_MTRO_1Sep1Swi";   // KR-K2210 / Block 2.3.4
      TRO307 : "FB_ILS_MTRO_PinStore_Auto";   // KR-K2303 / Block 2.3.1
      TRO308 : "FB_ILS_MTRO_PinStore_Auto";   // KR-K2304 / Block 2.3.3
      fbConveyor0201 : "FB_Conveyor";   // KR-M0201
      TRO310 : "FB_ILS_MTRO_PinStore_Auto";   // KR-M2101 / Block 2.1.1
      TRO311 : "FB_ILS_MTRO_PinStore_Auto";   // KR-M2102 / Block 2.1.3
      TRO312 : "FB_ILS_MTRO_1Sep";   // KR-M2103 / Block 2.1.2
      TRO313 : "FB_ILS_MTRO_1Sep";   // CV-M2104 / Block 2.1.4
      TRO314 : "FB_ILS_MTRO_Vario";   // CV-M2105
      TRO315 : "FB_ILS_MTRO_Vario";   // CV-M2106
      TRO316 : "FB_ILS_MTRO_Vario";   // CV-M2107
      TRO317 : "FB_ILS_MTRO_Vario";   // CV-M2108
      TRO318 : "FB_ILS_MTRO_Vario";   // CV-M2109 / Block 2.1.4
      TRO319 : "FB_ILS_MTRO_1Sep";   // KR-M2110
      TRO320 : "FB_ILS_MTRO_Vario";   // CV-M2111
      fbConveyor2112 : "FB_Conveyor";   // KR-M2112
      TRO322 : "FB_ILS_MTRO_PinStore_Auto";   // KR-M2201 / Block 2.2.1
      TRO323 : "FB_ILS_MTRO_PinStore_Auto";   // KR-M2202 / Block 2.2.3
      TRO324 : "FB_ILS_MTRO_1Sep";   // KR-M2203
      TRO325 : "FB_ILS_MTRO_1Sep";   // KR-M2204
      TRO326 : "FB_ILS_MTRO_Vario";   // CV-M2205 / Block 2.2.1
      TRO327 : "FB_ILS_MTRO_Vario";   // CV-M2206 / Block 2.2.2
      TRO328 : "FB_ILS_MTRO_Vario";   // CV-M2207 / Block 2.2.3
      TRO329 : "FB_ILS_MTRO_Vario";   // CV-M2208
      TRO330 : "FB_ILS_MTRO_Vario";   // CV-M2209 / Block 2.1.4
      TRO331 : "FB_ILS_MTRO_1Sep";   // KR-M2301
      fbConveyor2302 : "FB_Conveyor";   // KR-M2302 / Block 2.3.4
      TRO333 : "FB_ILS_MTRO_PinStore_Auto";   // KR-M2303 / Block 2.3.1
      TRO334 : "FB_ILS_MTRO_PinStore_Auto";   // KR-M2304 / Block 2.3.3
      TRO335 : "FB_ILS_MTRO_Vario";   // CV-M2305 / Block 2.3.1
      fbConveyor2306 : "FB_Conveyor";   // CV-M2306
      fbConveyor2307 : "FB_Conveyor";   // CV-M2307
      TRO338 : "FB_ILS_MTRO_Vario";   // CV-M2308 / Block 2.3.3
      TRO339 : "FB_ILS_MTRO_Vario";   // CV-M2309
      TRO340 : "FB_ILS_MTRO_Vario";   // CV-M4101
      TRO341 : "FB_ILS_MTRO_Vario";   // CV-M4102
      TRO342 : "FB_ILS_MTRO_Vario";   // CV-M4201
      TRO343 : "FB_ILS_MTRO_Vario";   // CV-M4202
      TRO344 : "FB_ILS_MTRO_Vario";   // CV-M4301
      TRO345 : "FB_ILS_MTRO_Vario";   // CV-M4401
   END_VAR

BEGIN
    REGION TRO301 (PinStore_Auto) — KR-K2101 / Block 2.1.1
        #TRO301.stInSeparator1.Settings.nSeparatorNo := "cSep301.1";
        #TRO301.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO301.stInSeparator1.Settings.tTrailingTime := T#500ms;      // TODO Timing
        #TRO301.stInSeparator1.Settings.tHandlingTime := T#200ms;      // TODO Timing
        #TRO301.stInSeparator1.Settings.tJam := "TimeForSepJam";
        #TRO301.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBGxxxx"];
        #TRO301.stInSenJam2 := "DB_Inputs".Sensors["cInBG3065"];

        #TRO301.stInPriorityManager.xReleaseOk := TRUE;                // TODO Priority

        #TRO301(nInMainTroNo := "cMainTro301",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInCarouselRun := TRUE,                                // TODO Conveyor
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea301".stJam301_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea301".stJam301_1.stData,
                arInOutJamExit2 := "DB_JamArea301".stJam301_2.arCarrier,   // TODO Topologie
                stInOutJamExit2 := "DB_JamArea301".stJam301_2.stData,
                xOutStopper1 => "MBxxxx",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro301"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO301);
    END_REGION

    REGION TRO302 (PinStore_Auto) — KR-K2102 / Block 2.1.3
        #TRO302.stInSeparator1.Settings.nSeparatorNo := "cSep302.1";
        #TRO302.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO302.stInSeparator1.Settings.tTrailingTime := T#500ms;      // TODO Timing
        #TRO302.stInSeparator1.Settings.tHandlingTime := T#200ms;      // TODO Timing
        #TRO302.stInSeparator1.Settings.tJam := "TimeForSepJam";
        #TRO302.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBGxxxx"];
        #TRO302.stInSenJam2 := "DB_Inputs".Sensors["cInBG3185"];

        #TRO302.stInPriorityManager.xReleaseOk := TRUE;                // TODO Priority

        #TRO302(nInMainTroNo := "cMainTro302",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInCarouselRun := TRUE,                                // TODO Conveyor
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea302".stJam302_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea302".stJam302_1.stData,
                arInOutJamExit2 := "DB_JamArea302".stJam302_2.arCarrier,   // TODO Topologie
                stInOutJamExit2 := "DB_JamArea302".stJam302_2.stData,
                xOutStopper1 => "MBxxxx",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro302"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO302);
    END_REGION

    REGION TRO303 (1Sep) — KR-K2110
        #TRO303.stInSeparator1.Settings.nSeparatorNo := "cSep303.1";
        #TRO303.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO303.stInSeparator1.Settings.tTrailingTime := T#500ms;      // TODO Timing
        #TRO303.stInSeparator1.Settings.tHandlingTime := T#200ms;      // TODO Timing
        #TRO303.stInSeparator1.Settings.tJam := "TimeForSepJam";
        #TRO303.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBG4444"];
        #TRO303.stInSenJam2 := "DB_Inputs".Sensors["cInBG4443"];

        #TRO303.stInPriorityManager.xReleaseOk := TRUE;                // TODO Priority

        #TRO303(nInMainTroNo := "cMainTro303",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInCarouselRun := TRUE,                                // TODO Conveyor
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea303".stJam303_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea303".stJam303_1.stData,
                arInOutJamExit2 := "DB_JamArea303".stJam303_2.arCarrier,   // TODO Topologie
                stInOutJamExit2 := "DB_JamArea303".stJam303_2.stData,
                xOutStopper1 => "MB4444",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro303"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO303);
    END_REGION

    REGION TRO304 (PinStore_Auto) — KR-K2201 / Block 2.2.1
        #TRO304.stInSeparator1.Settings.nSeparatorNo := "cSep304.1";
        #TRO304.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO304.stInSeparator1.Settings.tTrailingTime := T#500ms;      // TODO Timing
        #TRO304.stInSeparator1.Settings.tHandlingTime := T#200ms;      // TODO Timing
        #TRO304.stInSeparator1.Settings.tJam := "TimeForSepJam";
        #TRO304.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBGxxxx"];
        #TRO304.stInSenJam2 := "DB_Inputs".Sensors["cInBGxxxx"];

        #TRO304.stInPriorityManager.xReleaseOk := TRUE;                // TODO Priority

        #TRO304(nInMainTroNo := "cMainTro304",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInCarouselRun := TRUE,                                // TODO Conveyor
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea304".stJam304_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea304".stJam304_1.stData,
                arInOutJamExit2 := "DB_JamArea304".stJam304_2.arCarrier,   // TODO Topologie
                stInOutJamExit2 := "DB_JamArea304".stJam304_2.stData,
                xOutStopper1 => "MBxxxx",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro304"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO304);
    END_REGION

    REGION TRO305 (PinStore_Auto) — KR-K2202 / Block 2.2.3
        #TRO305.stInSeparator1.Settings.nSeparatorNo := "cSep305.1";
        #TRO305.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO305.stInSeparator1.Settings.tTrailingTime := T#500ms;      // TODO Timing
        #TRO305.stInSeparator1.Settings.tHandlingTime := T#200ms;      // TODO Timing
        #TRO305.stInSeparator1.Settings.tJam := "TimeForSepJam";
        #TRO305.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBGxxxx"];
        #TRO305.stInSenJam2 := "DB_Inputs".Sensors["cInBGxxxx"];

        #TRO305.stInPriorityManager.xReleaseOk := TRUE;                // TODO Priority

        #TRO305(nInMainTroNo := "cMainTro305",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInCarouselRun := TRUE,                                // TODO Conveyor
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea305".stJam305_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea305".stJam305_1.stData,
                arInOutJamExit2 := "DB_JamArea305".stJam305_2.arCarrier,   // TODO Topologie
                stInOutJamExit2 := "DB_JamArea305".stJam305_2.stData,
                xOutStopper1 => "MBxxxx",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro305"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO305);
    END_REGION

    REGION TRO306 (1Sep1Swi) — KR-K2210 / Block 2.3.4
        #TRO306.stInSeparator1.Settings.nSeparatorNo := "cSep306.1";
        #TRO306.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO306.stInSeparator1.Settings.tTrailingTime := T#100ms;      // TODO Timing
        #TRO306.stInSeparator1.Settings.tHandlingTime := T#50ms;       // TODO Timing
        #TRO306.stInSeparator1.Settings.tJam := "TimeForSepJam";
        #TRO306.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBG4395"];
        #TRO306.stInSenJam2 := "DB_Inputs".Sensors["cInBG4507"];
        #TRO306.stInSwitch1.Settings.nSwitchNo := "cSwi306.1";

        #TRO306(nInMainTroNo := "cMainTro306",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInCarouselRun1 := TRUE,                               // TODO Conveyor
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea306".stJam306_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea306".stJam306_1.stData,
                arInOutJamExit2 := "DB_JamArea306".stJam306_2.arCarrier,   // TODO Topologie (Dir1)
                stInOutJamExit2 := "DB_JamArea306".stJam306_2.stData,
                arInOutJamExit3 := "DB_JamArea306".stJam306_3.arCarrier,   // TODO Topologie (Dir2)
                stInOutJamExit3 := "DB_JamArea306".stJam306_3.stData,
                xOutStopper1 => "MB4395",
                xOutSw1ExTo3 => "MB4392",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro306"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO306);
    END_REGION

    REGION TRO307 (PinStore_Auto) — KR-K2303 / Block 2.3.1
        #TRO307.stInSeparator1.Settings.nSeparatorNo := "cSep307.1";
        #TRO307.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO307.stInSeparator1.Settings.tTrailingTime := T#500ms;      // TODO Timing
        #TRO307.stInSeparator1.Settings.tHandlingTime := T#200ms;      // TODO Timing
        #TRO307.stInSeparator1.Settings.tJam := "TimeForSepJam";
        #TRO307.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBGxxxx"];
        #TRO307.stInSenJam2 := "DB_Inputs".Sensors["cInBG4273"];

        #TRO307.stInPriorityManager.xReleaseOk := TRUE;                // TODO Priority

        #TRO307(nInMainTroNo := "cMainTro307",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInCarouselRun := TRUE,                                // TODO Conveyor
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea307".stJam307_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea307".stJam307_1.stData,
                arInOutJamExit2 := "DB_JamArea307".stJam307_2.arCarrier,   // TODO Topologie
                stInOutJamExit2 := "DB_JamArea307".stJam307_2.stData,
                xOutStopper1 => "MBxxxx",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro307"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO307);
    END_REGION

    REGION TRO308 (PinStore_Auto) — KR-K2304 / Block 2.3.3
        #TRO308.stInSeparator1.Settings.nSeparatorNo := "cSep308.1";
        #TRO308.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO308.stInSeparator1.Settings.tTrailingTime := T#500ms;      // TODO Timing
        #TRO308.stInSeparator1.Settings.tHandlingTime := T#200ms;      // TODO Timing
        #TRO308.stInSeparator1.Settings.tJam := "TimeForSepJam";
        #TRO308.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBGxxxx"];
        #TRO308.stInSenJam2 := "DB_Inputs".Sensors["cInBG4375"];

        #TRO308.stInPriorityManager.xReleaseOk := TRUE;                // TODO Priority

        #TRO308(nInMainTroNo := "cMainTro308",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInCarouselRun := TRUE,                                // TODO Conveyor
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea308".stJam308_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea308".stJam308_1.stData,
                arInOutJamExit2 := "DB_JamArea308".stJam308_2.arCarrier,   // TODO Topologie
                stInOutJamExit2 := "DB_JamArea308".stJam308_2.stData,
                xOutStopper1 => "MBxxxx",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro308"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO308);
    END_REGION

    REGION fbConveyor0201 — KR-M0201
        #fbConveyor0201.Settings.tEnergySafeTime := "cTimeEnergySafe";
        #fbConveyor0201.Settings.xGridActive := FALSE;                         // TODO Grid
        #fbConveyor0201.Settings.sMotorProtectName := 'FC0201';

        #fbConveyor0201(xInEnabled := TRUE,                                    // TODO Enable
                xInMotorProtection := "FC0201",
                xInPowerContactor := "MAxxxx",
                stInOutHMI := "DB_Interface_HMI".stConveyors.fbConveyor0201);
    END_REGION

    REGION TRO310 (PinStore_Auto) — KR-M2101 / Block 2.1.1
        #TRO310.stInSeparator1.Settings.nSeparatorNo := "cSep310.1";
        #TRO310.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO310.stInSeparator1.Settings.tTrailingTime := T#500ms;      // TODO Timing
        #TRO310.stInSeparator1.Settings.tHandlingTime := T#200ms;      // TODO Timing
        #TRO310.stInSeparator1.Settings.tJam := "TimeForSepJam";
        #TRO310.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBGxxxx"];
        #TRO310.stInSenJam2 := "DB_Inputs".Sensors["cInBG3003"];

        #TRO310.stInPriorityManager.xReleaseOk := TRUE;                // TODO Priority

        #TRO310(nInMainTroNo := "cMainTro310",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInCarouselRun := TRUE,                                // TODO Conveyor
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea310".stJam310_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea310".stJam310_1.stData,
                arInOutJamExit2 := "DB_JamArea310".stJam310_2.arCarrier,   // TODO Topologie
                stInOutJamExit2 := "DB_JamArea310".stJam310_2.stData,
                xOutStopper1 => "MBxxxx",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro310"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO310);
    END_REGION

    REGION TRO311 (PinStore_Auto) — KR-M2102 / Block 2.1.3
        #TRO311.stInSeparator1.Settings.nSeparatorNo := "cSep311.1";
        #TRO311.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO311.stInSeparator1.Settings.tTrailingTime := T#500ms;      // TODO Timing
        #TRO311.stInSeparator1.Settings.tHandlingTime := T#200ms;      // TODO Timing
        #TRO311.stInSeparator1.Settings.tJam := "TimeForSepJam";
        #TRO311.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBG3134"];
        #TRO311.stInSenJam2 := "DB_Inputs".Sensors["cInBG3123"];

        #TRO311.stInPriorityManager.xReleaseOk := TRUE;                // TODO Priority

        #TRO311(nInMainTroNo := "cMainTro311",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInCarouselRun := TRUE,                                // TODO Conveyor
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea311".stJam311_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea311".stJam311_1.stData,
                arInOutJamExit2 := "DB_JamArea311".stJam311_2.arCarrier,   // TODO Topologie
                stInOutJamExit2 := "DB_JamArea311".stJam311_2.stData,
                xOutStopper1 => "MB3134",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro311"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO311);
    END_REGION

    REGION TRO312 (1Sep) — KR-M2103 / Block 2.1.2
        #TRO312.stInSeparator1.Settings.nSeparatorNo := "cSep312.1";
        #TRO312.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO312.stInSeparator1.Settings.tTrailingTime := T#500ms;      // TODO Timing
        #TRO312.stInSeparator1.Settings.tHandlingTime := T#200ms;      // TODO Timing
        #TRO312.stInSeparator1.Settings.tJam := "TimeForSepJam";
        #TRO312.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBG3245"];
        #TRO312.stInSenJam2 := "DB_Inputs".Sensors["cInBG3242"];

        #TRO312.stInPriorityManager.xReleaseOk := TRUE;                // TODO Priority

        #TRO312(nInMainTroNo := "cMainTro312",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInCarouselRun := TRUE,                                // TODO Conveyor
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea312".stJam312_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea312".stJam312_1.stData,
                arInOutJamExit2 := "DB_JamArea312".stJam312_2.arCarrier,   // TODO Topologie
                stInOutJamExit2 := "DB_JamArea312".stJam312_2.stData,
                xOutStopper1 => "MB3245",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro312"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO312);
    END_REGION

    REGION TRO313 (1Sep) — CV-M2104 / Block 2.1.4
        #TRO313.stInSeparator1.Settings.nSeparatorNo := "cSep313.1";
        #TRO313.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO313.stInSeparator1.Settings.tTrailingTime := T#500ms;      // TODO Timing
        #TRO313.stInSeparator1.Settings.tHandlingTime := T#200ms;      // TODO Timing
        #TRO313.stInSeparator1.Settings.tJam := "TimeForSepJam";
        #TRO313.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBG3425"];
        #TRO313.stInSenJam2 := "DB_Inputs".Sensors["cInBG3362"];

        #TRO313.stInPriorityManager.xReleaseOk := TRUE;                // TODO Priority

        #TRO313(nInMainTroNo := "cMainTro313",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInCarouselRun := TRUE,                                // TODO Conveyor
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea313".stJam313_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea313".stJam313_1.stData,
                arInOutJamExit2 := "DB_JamArea313".stJam313_2.arCarrier,   // TODO Topologie
                stInOutJamExit2 := "DB_JamArea313".stJam313_2.stData,
                xOutStopper1 => "MB3425",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro313"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO313);
    END_REGION

    REGION TRO314 (Vario) — CV-M2105
        #TRO314.stInSeparator1.Settings.nSeparatorNo := "cSep314.1";
        #TRO314.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO314.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBG3244"];
        #TRO314.stInVario.stSenCarrInPos := "DB_Inputs".Sensors["cInBG3247"];
        #TRO314.stInVario.stSenFinger := "DB_Inputs".Sensors["cInBG3243"];
        #TRO314.stInVario.stSenJam := "DB_Inputs".Sensors["cInBG3241"];

        #TRO314(nInMainTroNo := "cMainTro314",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea314".stJam314_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea314".stJam314_1.stData,
                arInOutJamFinger := "DB_JamArea314".stJam314_2.arCarrier,  // TODO Topologie
                xOutStopper => "MB3244",
                xOutVarioMotor => "MA0142",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro314"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO314);
    END_REGION

    REGION TRO315 (Vario) — CV-M2106
        #TRO315.stInSeparator1.Settings.nSeparatorNo := "cSep315.1";
        #TRO315.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO315.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBG3304"];
        #TRO315.stInVario.stSenCarrInPos := "DB_Inputs".Sensors["cInBG3307"];
        #TRO315.stInVario.stSenFinger := "DB_Inputs".Sensors["cInBG3303"];
        #TRO315.stInVario.stSenJam := "DB_Inputs".Sensors["cInBG3301"];

        #TRO315(nInMainTroNo := "cMainTro315",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea315".stJam315_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea315".stJam315_1.stData,
                arInOutJamFinger := "DB_JamArea315".stJam315_2.arCarrier,  // TODO Topologie
                xOutStopper => "MB3304",
                xOutVarioMotor => "MA0143",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro315"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO315);
    END_REGION

    REGION TRO316 (Vario) — CV-M2107
        #TRO316.stInSeparator1.Settings.nSeparatorNo := "cSep316.1";
        #TRO316.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO316.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBG3364"];
        #TRO316.stInVario.stSenCarrInPos := "DB_Inputs".Sensors["cInBG3367"];
        #TRO316.stInVario.stSenFinger := "DB_Inputs".Sensors["cInBG3363"];
        #TRO316.stInVario.stSenJam := "DB_Inputs".Sensors["cInBG3361"];

        #TRO316(nInMainTroNo := "cMainTro316",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea316".stJam316_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea316".stJam316_1.stData,
                arInOutJamFinger := "DB_JamArea316".stJam316_2.arCarrier,  // TODO Topologie
                xOutStopper => "MB3364",
                xOutVarioMotor => "MA0144",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro316"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO316);
    END_REGION

    REGION TRO317 (Vario) — CV-M2108
        #TRO317.stInSeparator1.Settings.nSeparatorNo := "cSep317.1";
        #TRO317.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO317.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBG3424"];
        #TRO317.stInVario.stSenCarrInPos := "DB_Inputs".Sensors["cInBG3427"];
        #TRO317.stInVario.stSenFinger := "DB_Inputs".Sensors["cInBG3423"];
        #TRO317.stInVario.stSenJam := "DB_Inputs".Sensors["cInBG3421"];

        #TRO317(nInMainTroNo := "cMainTro317",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea317".stJam317_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea317".stJam317_1.stData,
                arInOutJamFinger := "DB_JamArea317".stJam317_2.arCarrier,  // TODO Topologie
                xOutStopper => "MB3424",
                xOutVarioMotor => "MA0145",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro317"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO317);
    END_REGION

    REGION TRO318 (Vario) — CV-M2109 / Block 2.1.4
        #TRO318.stInSeparator1.Settings.nSeparatorNo := "cSep318.1";
        #TRO318.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO318.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBG3432"];
        #TRO318.stInVario.stSenCarrInPos := "DB_Inputs".Sensors["cInBG3441"];
        #TRO318.stInVario.stSenFinger := "DB_Inputs".Sensors["cInBG3442"];
        #TRO318.stInVario.stSenJam := "DB_Inputs".Sensors["cInBG3435"];

        #TRO318(nInMainTroNo := "cMainTro318",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea318".stJam318_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea318".stJam318_1.stData,
                arInOutJamFinger := "DB_JamArea318".stJam318_2.arCarrier,  // TODO Topologie
                xOutStopper => "MB3432",
                xOutVarioMotor => "MA0070",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro318"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO318);
    END_REGION

    REGION TRO319 (1Sep) — KR-M2110
        #TRO319.stInSeparator1.Settings.nSeparatorNo := "cSep319.1";
        #TRO319.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO319.stInSeparator1.Settings.tTrailingTime := T#500ms;      // TODO Timing
        #TRO319.stInSeparator1.Settings.tHandlingTime := T#200ms;      // TODO Timing
        #TRO319.stInSeparator1.Settings.tJam := "TimeForSepJam";
        #TRO319.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBG4500"];
        #TRO319.stInSenJam2 := "DB_Inputs".Sensors["cInBG4504"];

        #TRO319.stInPriorityManager.xReleaseOk := TRUE;                // TODO Priority

        #TRO319(nInMainTroNo := "cMainTro319",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInCarouselRun := TRUE,                                // TODO Conveyor
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea319".stJam319_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea319".stJam319_1.stData,
                arInOutJamExit2 := "DB_JamArea319".stJam319_2.arCarrier,   // TODO Topologie
                stInOutJamExit2 := "DB_JamArea319".stJam319_2.stData,
                xOutStopper1 => "MB4500",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro319"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO319);
    END_REGION

    REGION TRO320 (Vario) — CV-M2111
        #TRO320.stInSeparator1.Settings.nSeparatorNo := "cSep320.1";
        #TRO320.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO320.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBG4450"];
        #TRO320.stInVario.stSenCarrInPos := "DB_Inputs".Sensors["cInBG4452"];
        #TRO320.stInVario.stSenFinger := "DB_Inputs".Sensors["cInBG4451"];
        #TRO320.stInVario.stSenJam := "DB_Inputs".Sensors["cInBGxxxx"];

        #TRO320(nInMainTroNo := "cMainTro320",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea320".stJam320_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea320".stJam320_1.stData,
                arInOutJamFinger := "DB_JamArea320".stJam320_2.arCarrier,  // TODO Topologie
                xOutStopper => "MB4450",
                xOutVarioMotor => "MA0073",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro320"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO320);
    END_REGION

    REGION fbConveyor2112 — KR-M2112
        #fbConveyor2112.Settings.tEnergySafeTime := "cTimeEnergySafe";
        #fbConveyor2112.Settings.xGridActive := FALSE;                         // TODO Grid
        #fbConveyor2112.Settings.sMotorProtectName := 'FC0072';

        #fbConveyor2112(xInEnabled := TRUE,                                    // TODO Enable
                xInMotorProtection := "FC0072",
                xInPowerContactor := "MA0072",
                stInOutHMI := "DB_Interface_HMI".stConveyors.fbConveyor2112);
    END_REGION

    REGION TRO322 (PinStore_Auto) — KR-M2201 / Block 2.2.1
        #TRO322.stInSeparator1.Settings.nSeparatorNo := "cSep322.1";
        #TRO322.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO322.stInSeparator1.Settings.tTrailingTime := T#500ms;      // TODO Timing
        #TRO322.stInSeparator1.Settings.tHandlingTime := T#200ms;      // TODO Timing
        #TRO322.stInSeparator1.Settings.tJam := "TimeForSepJam";
        #TRO322.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBGxxxx"];
        #TRO322.stInSenJam2 := "DB_Inputs".Sensors["cInBG3483"];

        #TRO322.stInPriorityManager.xReleaseOk := TRUE;                // TODO Priority

        #TRO322(nInMainTroNo := "cMainTro322",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInCarouselRun := TRUE,                                // TODO Conveyor
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea322".stJam322_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea322".stJam322_1.stData,
                arInOutJamExit2 := "DB_JamArea322".stJam322_2.arCarrier,   // TODO Topologie
                stInOutJamExit2 := "DB_JamArea322".stJam322_2.stData,
                xOutStopper1 => "MBxxxx",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro322"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO322);
    END_REGION

    REGION TRO323 (PinStore_Auto) — KR-M2202 / Block 2.2.3
        #TRO323.stInSeparator1.Settings.nSeparatorNo := "cSep323.1";
        #TRO323.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO323.stInSeparator1.Settings.tTrailingTime := T#500ms;      // TODO Timing
        #TRO323.stInSeparator1.Settings.tHandlingTime := T#200ms;      // TODO Timing
        #TRO323.stInSeparator1.Settings.tJam := "TimeForSepJam";
        #TRO323.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBGxxxx"];
        #TRO323.stInSenJam2 := "DB_Inputs".Sensors["cInBG3603"];

        #TRO323.stInPriorityManager.xReleaseOk := TRUE;                // TODO Priority

        #TRO323(nInMainTroNo := "cMainTro323",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInCarouselRun := TRUE,                                // TODO Conveyor
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea323".stJam323_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea323".stJam323_1.stData,
                arInOutJamExit2 := "DB_JamArea323".stJam323_2.arCarrier,   // TODO Topologie
                stInOutJamExit2 := "DB_JamArea323".stJam323_2.stData,
                xOutStopper1 => "MBxxxx",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro323"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO323);
    END_REGION

    REGION TRO324 (1Sep) — KR-M2203
        #TRO324.stInSeparator1.Settings.nSeparatorNo := "cSep324.1";
        #TRO324.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO324.stInSeparator1.Settings.tTrailingTime := T#500ms;      // TODO Timing
        #TRO324.stInSeparator1.Settings.tHandlingTime := T#200ms;      // TODO Timing
        #TRO324.stInSeparator1.Settings.tJam := "TimeForSepJam";
        #TRO324.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBG3725"];
        #TRO324.stInSenJam2 := "DB_Inputs".Sensors["cInBG3722"];

        #TRO324.stInPriorityManager.xReleaseOk := TRUE;                // TODO Priority

        #TRO324(nInMainTroNo := "cMainTro324",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInCarouselRun := TRUE,                                // TODO Conveyor
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea324".stJam324_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea324".stJam324_1.stData,
                arInOutJamExit2 := "DB_JamArea324".stJam324_2.arCarrier,   // TODO Topologie
                stInOutJamExit2 := "DB_JamArea324".stJam324_2.stData,
                xOutStopper1 => "MB3725",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro324"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO324);
    END_REGION

    REGION TRO325 (1Sep) — KR-M2204
        #TRO325.stInSeparator1.Settings.nSeparatorNo := "cSep325.1";
        #TRO325.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO325.stInSeparator1.Settings.tTrailingTime := T#500ms;      // TODO Timing
        #TRO325.stInSeparator1.Settings.tHandlingTime := T#200ms;      // TODO Timing
        #TRO325.stInSeparator1.Settings.tJam := "TimeForSepJam";
        #TRO325.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBG3900"];
        #TRO325.stInSenJam2 := "DB_Inputs".Sensors["cInBG3842"];

        #TRO325.stInPriorityManager.xReleaseOk := TRUE;                // TODO Priority

        #TRO325(nInMainTroNo := "cMainTro325",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInCarouselRun := TRUE,                                // TODO Conveyor
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea325".stJam325_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea325".stJam325_1.stData,
                arInOutJamExit2 := "DB_JamArea325".stJam325_2.arCarrier,   // TODO Topologie
                stInOutJamExit2 := "DB_JamArea325".stJam325_2.stData,
                xOutStopper1 => "MB3900",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro325"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO325);
    END_REGION

    REGION TRO326 (Vario) — CV-M2205 / Block 2.2.1
        #TRO326.stInSeparator1.Settings.nSeparatorNo := "cSep326.1";
        #TRO326.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO326.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBG3724"];
        #TRO326.stInVario.stSenCarrInPos := "DB_Inputs".Sensors["cInBG3727"];
        #TRO326.stInVario.stSenFinger := "DB_Inputs".Sensors["cInBGxxxx"];
        #TRO326.stInVario.stSenJam := "DB_Inputs".Sensors["cInBG3721"];

        #TRO326(nInMainTroNo := "cMainTro326",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea326".stJam326_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea326".stJam326_1.stData,
                arInOutJamFinger := "DB_JamArea326".stJam326_2.arCarrier,  // TODO Topologie
                xOutStopper => "MB3724",
                xOutVarioMotor => "MA0064",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro326"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO326);
    END_REGION

    REGION TRO327 (Vario) — CV-M2206 / Block 2.2.2
        #TRO327.stInSeparator1.Settings.nSeparatorNo := "cSep327.1";
        #TRO327.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO327.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBG3784"];
        #TRO327.stInVario.stSenCarrInPos := "DB_Inputs".Sensors["cInBG3787"];
        #TRO327.stInVario.stSenFinger := "DB_Inputs".Sensors["cInBG3783"];
        #TRO327.stInVario.stSenJam := "DB_Inputs".Sensors["cInBG3781"];

        #TRO327(nInMainTroNo := "cMainTro327",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea327".stJam327_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea327".stJam327_1.stData,
                arInOutJamFinger := "DB_JamArea327".stJam327_2.arCarrier,  // TODO Topologie
                xOutStopper => "MB3784",
                xOutVarioMotor => "MA0065",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro327"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO327);
    END_REGION

    REGION TRO328 (Vario) — CV-M2207 / Block 2.2.3
        #TRO328.stInSeparator1.Settings.nSeparatorNo := "cSep328.1";
        #TRO328.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO328.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBG3844"];
        #TRO328.stInVario.stSenCarrInPos := "DB_Inputs".Sensors["cInBG3847"];
        #TRO328.stInVario.stSenFinger := "DB_Inputs".Sensors["cInBG3843"];
        #TRO328.stInVario.stSenJam := "DB_Inputs".Sensors["cInBG3841"];

        #TRO328(nInMainTroNo := "cMainTro328",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea328".stJam328_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea328".stJam328_1.stData,
                arInOutJamFinger := "DB_JamArea328".stJam328_2.arCarrier,  // TODO Topologie
                xOutStopper => "MB3844",
                xOutVarioMotor => "MA0066",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro328"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO328);
    END_REGION

    REGION TRO329 (Vario) — CV-M2208
        #TRO329.stInSeparator1.Settings.nSeparatorNo := "cSep329.1";
        #TRO329.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO329.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBG3904"];
        #TRO329.stInVario.stSenCarrInPos := "DB_Inputs".Sensors["cInBG3907"];
        #TRO329.stInVario.stSenFinger := "DB_Inputs".Sensors["cInBG3903"];
        #TRO329.stInVario.stSenJam := "DB_Inputs".Sensors["cInBG3901"];

        #TRO329(nInMainTroNo := "cMainTro329",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea329".stJam329_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea329".stJam329_1.stData,
                arInOutJamFinger := "DB_JamArea329".stJam329_2.arCarrier,  // TODO Topologie
                xOutStopper => "MB3904",
                xOutVarioMotor => "MA0067",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro329"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO329);
    END_REGION

    REGION TRO330 (Vario) — CV-M2209 / Block 2.1.4
        #TRO330.stInSeparator1.Settings.nSeparatorNo := "cSep330.1";
        #TRO330.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO330.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBG3912"];
        #TRO330.stInVario.stSenCarrInPos := "DB_Inputs".Sensors["cInBG3921"];
        #TRO330.stInVario.stSenFinger := "DB_Inputs".Sensors["cInBG3922"];
        #TRO330.stInVario.stSenJam := "DB_Inputs".Sensors["cInBG3915"];

        #TRO330(nInMainTroNo := "cMainTro330",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea330".stJam330_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea330".stJam330_1.stData,
                arInOutJamFinger := "DB_JamArea330".stJam330_2.arCarrier,  // TODO Topologie
                xOutStopper => "MB3912",
                xOutVarioMotor => "MA0205",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro330"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO330);
    END_REGION

    REGION TRO331 (1Sep) — KR-M2301
        #TRO331.stInSeparator1.Settings.nSeparatorNo := "cSep331.1";
        #TRO331.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO331.stInSeparator1.Settings.tTrailingTime := T#500ms;      // TODO Timing
        #TRO331.stInSeparator1.Settings.tHandlingTime := T#200ms;      // TODO Timing
        #TRO331.stInSeparator1.Settings.tJam := "TimeForSepJam";
        #TRO331.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBG3965"];
        #TRO331.stInSenJam2 := "DB_Inputs".Sensors["cInBG3962"];

        #TRO331.stInPriorityManager.xReleaseOk := TRUE;                // TODO Priority

        #TRO331(nInMainTroNo := "cMainTro331",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInCarouselRun := TRUE,                                // TODO Conveyor
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea331".stJam331_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea331".stJam331_1.stData,
                arInOutJamExit2 := "DB_JamArea331".stJam331_2.arCarrier,   // TODO Topologie
                stInOutJamExit2 := "DB_JamArea331".stJam331_2.stData,
                xOutStopper1 => "MB3965",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro331"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO331);
    END_REGION

    REGION fbConveyor2302 — KR-M2302 / Block 2.3.4
        #fbConveyor2302.Settings.tEnergySafeTime := "cTimeEnergySafe";
        #fbConveyor2302.Settings.xGridActive := FALSE;                         // TODO Grid
        #fbConveyor2302.Settings.sMotorProtectName := 'FC0203';

        #fbConveyor2302(xInEnabled := TRUE,                                    // TODO Enable
                xInMotorProtection := "FC0203",
                xInPowerContactor := "MA0203",
                stInOutHMI := "DB_Interface_HMI".stConveyors.fbConveyor2302);
    END_REGION

    REGION TRO333 (PinStore_Auto) — KR-M2303 / Block 2.3.1
        #TRO333.stInSeparator1.Settings.nSeparatorNo := "cSep333.1";
        #TRO333.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO333.stInSeparator1.Settings.tTrailingTime := T#500ms;      // TODO Timing
        #TRO333.stInSeparator1.Settings.tHandlingTime := T#200ms;      // TODO Timing
        #TRO333.stInSeparator1.Settings.tJam := "TimeForSepJam";
        #TRO333.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBGxxxx"];
        #TRO333.stInSenJam2 := "DB_Inputs".Sensors["cInBG4203"];

        #TRO333.stInPriorityManager.xReleaseOk := TRUE;                // TODO Priority

        #TRO333(nInMainTroNo := "cMainTro333",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInCarouselRun := TRUE,                                // TODO Conveyor
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea333".stJam333_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea333".stJam333_1.stData,
                arInOutJamExit2 := "DB_JamArea333".stJam333_2.arCarrier,   // TODO Topologie
                stInOutJamExit2 := "DB_JamArea333".stJam333_2.stData,
                xOutStopper1 => "MBxxxx",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro333"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO333);
    END_REGION

    REGION TRO334 (PinStore_Auto) — KR-M2304 / Block 2.3.3
        #TRO334.stInSeparator1.Settings.nSeparatorNo := "cSep334.1";
        #TRO334.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO334.stInSeparator1.Settings.tTrailingTime := T#500ms;      // TODO Timing
        #TRO334.stInSeparator1.Settings.tHandlingTime := T#200ms;      // TODO Timing
        #TRO334.stInSeparator1.Settings.tJam := "TimeForSepJam";
        #TRO334.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBGxxxx"];
        #TRO334.stInSenJam2 := "DB_Inputs".Sensors["cInBG4323"];

        #TRO334.stInPriorityManager.xReleaseOk := TRUE;                // TODO Priority

        #TRO334(nInMainTroNo := "cMainTro334",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInCarouselRun := TRUE,                                // TODO Conveyor
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea334".stJam334_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea334".stJam334_1.stData,
                arInOutJamExit2 := "DB_JamArea334".stJam334_2.arCarrier,   // TODO Topologie
                stInOutJamExit2 := "DB_JamArea334".stJam334_2.stData,
                xOutStopper1 => "MBxxxx",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro334"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO334);
    END_REGION

    REGION TRO335 (Vario) — CV-M2305 / Block 2.3.1
        #TRO335.stInSeparator1.Settings.nSeparatorNo := "cSep335.1";
        #TRO335.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO335.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBG3964"];
        #TRO335.stInVario.stSenCarrInPos := "DB_Inputs".Sensors["cInBG3967"];
        #TRO335.stInVario.stSenFinger := "DB_Inputs".Sensors["cInBG3963"];
        #TRO335.stInVario.stSenJam := "DB_Inputs".Sensors["cInBG3961"];

        #TRO335(nInMainTroNo := "cMainTro335",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea335".stJam335_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea335".stJam335_1.stData,
                arInOutJamFinger := "DB_JamArea335".stJam335_2.arCarrier,  // TODO Topologie
                xOutStopper => "MB3964",
                xOutVarioMotor => "MA0262",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro335"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO335);
    END_REGION

    REGION fbConveyor2306 — CV-M2306
        #fbConveyor2306.Settings.tEnergySafeTime := "cTimeEnergySafe";
        #fbConveyor2306.Settings.xGridActive := FALSE;                         // TODO Grid
        #fbConveyor2306.Settings.sMotorProtectName := 'FC0263';

        #fbConveyor2306(xInEnabled := TRUE,                                    // TODO Enable
                xInMotorProtection := "FC0263",
                xInPowerContactor := "MA0263",
                stInOutHMI := "DB_Interface_HMI".stConveyors.fbConveyor2306);
    END_REGION

    REGION fbConveyor2307 — CV-M2307
        #fbConveyor2307.Settings.tEnergySafeTime := "cTimeEnergySafe";
        #fbConveyor2307.Settings.xGridActive := FALSE;                         // TODO Grid
        #fbConveyor2307.Settings.sMotorProtectName := 'FC0264';

        #fbConveyor2307(xInEnabled := TRUE,                                    // TODO Enable
                xInMotorProtection := "FC0264",
                xInPowerContactor := "MAxxxx",
                stInOutHMI := "DB_Interface_HMI".stConveyors.fbConveyor2307);
    END_REGION

    REGION TRO338 (Vario) — CV-M2308 / Block 2.3.3
        #TRO338.stInSeparator1.Settings.nSeparatorNo := "cSep338.1";
        #TRO338.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO338.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBG4084"];
        #TRO338.stInVario.stSenCarrInPos := "DB_Inputs".Sensors["cInBG4147"];
        #TRO338.stInVario.stSenFinger := "DB_Inputs".Sensors["cInBG4143"];
        #TRO338.stInVario.stSenJam := "DB_Inputs".Sensors["cInBG4081"];

        #TRO338(nInMainTroNo := "cMainTro338",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea338".stJam338_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea338".stJam338_1.stData,
                arInOutJamFinger := "DB_JamArea338".stJam338_2.arCarrier,  // TODO Topologie
                xOutStopper => "MB4084",
                xOutVarioMotor => "MA0265",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro338"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO338);
    END_REGION

    REGION TRO339 (Vario) — CV-M2309
        #TRO339.stInSeparator1.Settings.nSeparatorNo := "cSep339.1";
        #TRO339.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO339.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBG4095"];
        #TRO339.stInVario.stSenCarrInPos := "DB_Inputs".Sensors["cInBG4096"];
        #TRO339.stInVario.stSenFinger := "DB_Inputs".Sensors["cInBG4097"];
        #TRO339.stInVario.stSenJam := "DB_Inputs".Sensors["cInBGxxxx"];

        #TRO339(nInMainTroNo := "cMainTro339",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea339".stJam339_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea339".stJam339_1.stData,
                arInOutJamFinger := "DB_JamArea339".stJam339_2.arCarrier,  // TODO Topologie
                xOutStopper => "MB4095",
                xOutVarioMotor => "MA0204",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro339"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO339);
    END_REGION

    REGION TRO340 (Vario) — CV-M4101
        #TRO340.stInSeparator1.Settings.nSeparatorNo := "cSep340.1";
        #TRO340.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO340.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBG4562"];
        #TRO340.stInVario.stSenCarrInPos := "DB_Inputs".Sensors["cInBG4570"];
        #TRO340.stInVario.stSenFinger := "DB_Inputs".Sensors["cInBG4567"];
        #TRO340.stInVario.stSenJam := "DB_Inputs".Sensors["cInBG4564"];

        #TRO340(nInMainTroNo := "cMainTro340",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea340".stJam340_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea340".stJam340_1.stData,
                arInOutJamFinger := "DB_JamArea340".stJam340_2.arCarrier,  // TODO Topologie
                xOutStopper => "MB4562",
                xOutVarioMotor => "MA0074",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro340"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO340);
    END_REGION

    REGION TRO341 (Vario) — CV-M4102
        #TRO341.stInSeparator1.Settings.nSeparatorNo := "cSep341.1";
        #TRO341.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO341.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBG4624"];
        #TRO341.stInVario.stSenCarrInPos := "DB_Inputs".Sensors["cInBG4625"];
        #TRO341.stInVario.stSenFinger := "DB_Inputs".Sensors["cInBG4623"];
        #TRO341.stInVario.stSenJam := "DB_Inputs".Sensors["cInBG4621"];

        #TRO341(nInMainTroNo := "cMainTro341",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea341".stJam341_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea341".stJam341_1.stData,
                arInOutJamFinger := "DB_JamArea341".stJam341_2.arCarrier,  // TODO Topologie
                xOutStopper => "MB4624",
                xOutVarioMotor => "MA0090",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro341"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO341);
    END_REGION

    REGION TRO342 (Vario) — CV-M4201
        #TRO342.stInSeparator1.Settings.nSeparatorNo := "cSep342.1";
        #TRO342.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO342.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBG4572"];
        #TRO342.stInVario.stSenCarrInPos := "DB_Inputs".Sensors["cInBG4571"];
        #TRO342.stInVario.stSenFinger := "DB_Inputs".Sensors["cInBG4573"];
        #TRO342.stInVario.stSenJam := "DB_Inputs".Sensors["cInBG4563"];

        #TRO342(nInMainTroNo := "cMainTro342",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea342".stJam342_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea342".stJam342_1.stData,
                arInOutJamFinger := "DB_JamArea342".stJam342_2.arCarrier,  // TODO Topologie
                xOutStopper => "MB4572",
                xOutVarioMotor => "MA0075",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro342"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO342);
    END_REGION

    REGION TRO343 (Vario) — CV-M4202
        #TRO343.stInSeparator1.Settings.nSeparatorNo := "cSep343.1";
        #TRO343.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO343.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBG4633"];
        #TRO343.stInVario.stSenCarrInPos := "DB_Inputs".Sensors["cInBG4635"];
        #TRO343.stInVario.stSenFinger := "DB_Inputs".Sensors["cInBG4634"];
        #TRO343.stInVario.stSenJam := "DB_Inputs".Sensors["cInBG4631"];

        #TRO343(nInMainTroNo := "cMainTro343",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea343".stJam343_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea343".stJam343_1.stData,
                arInOutJamFinger := "DB_JamArea343".stJam343_2.arCarrier,  // TODO Topologie
                xOutStopper => "MB4633",
                xOutVarioMotor => "MA0091",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro343"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO343);
    END_REGION

    REGION TRO344 (Vario) — CV-M4301
        #TRO344.stInSeparator1.Settings.nSeparatorNo := "cSep344.1";
        #TRO344.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO344.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBG4640"];
        #TRO344.stInVario.stSenCarrInPos := "DB_Inputs".Sensors["cInBG4641"];
        #TRO344.stInVario.stSenFinger := "DB_Inputs".Sensors["cInBG4642"];
        #TRO344.stInVario.stSenJam := "DB_Inputs".Sensors["cInBG4643"];

        #TRO344(nInMainTroNo := "cMainTro344",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea344".stJam344_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea344".stJam344_1.stData,
                arInOutJamFinger := "DB_JamArea344".stJam344_2.arCarrier,  // TODO Topologie
                xOutStopper => "MB4640",
                xOutVarioMotor => "MA0092",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro344"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO344);
    END_REGION

    REGION TRO345 (Vario) — CV-M4401
        #TRO345.stInSeparator1.Settings.nSeparatorNo := "cSep345.1";
        #TRO345.stInSeparator1.Settings.tDelayToNextItem := "TimeForSepWaiting_Short";
        #TRO345.stInSeparator1.stSenInSep := "DB_Inputs".Sensors["cInBG4650"];
        #TRO345.stInVario.stSenCarrInPos := "DB_Inputs".Sensors["cInBG4651"];
        #TRO345.stInVario.stSenFinger := "DB_Inputs".Sensors["cInBG4652"];
        #TRO345.stInVario.stSenJam := "DB_Inputs".Sensors["cInBG4653"];

        #TRO345(nInMainTroNo := "cMainTro345",
                xInSftyOk := TRUE,                                     // TODO Safety
                xInAllRdyToStart := TRUE,
                xInRelease := TRUE,                                    // TODO Release
                stInOutMachineState := #stInOutControlUnit,            // TODO ControlUnit
                arInOutJamEntr1 := "DB_JamArea345".stJam345_1.arCarrier,   // TODO Topologie
                stInOutJamEntr1 := "DB_JamArea345".stJam345_1.stData,
                arInOutJamFinger := "DB_JamArea345".stJam345_2.arCarrier,  // TODO Topologie
                xOutStopper => "MB4650",
                xOutVarioMotor => "MA0093",
                nOutStateLast => "DB_GLOB_TroState".arTroState["cMainTro345"],
                stInOutHMI := "DB_Interface_HMI".stTRO.TRO345);
    END_REGION

END_FUNCTION_BLOCK
