FUNCTION_BLOCK "Fb_StockRemovalManagementLvl1"
{ S7_Optimized_Access := 'TRUE' }
VERSION : 0.1
   VAR_INPUT 
      udt_IN_MES : "UDT_Payload_CReqM";
      x_InQuit : Bool;
      n_JamCountAMR : UInt;
      n_JamCapacityAMRCriticalAmount : UInt;
      n_JamCountF2H : UInt;
      n_JamCapacityF2HCriticalAmount : UInt;
      n_JamCapacityEmpty : UInt;
      n_JamCapacityEmptyCriticalAmount : UInt;
      t_IN_RemovalWaitTime : Time;
   END_VAR
   VAR_INPUT RETAIN
      stStorage111BlockData : "UDT_StorageBlockData";   // Blockdaten
   END_VAR
   VAR_INPUT 
      stStorage112BlockData : "UDT_StorageBlockData";
      stStorage113BlockData : "UDT_StorageBlockData";
      stStorage114BlockData : "UDT_StorageBlockData";
   END_VAR
   VAR_INPUT RETAIN
      stStorage121BlockData : "UDT_StorageBlockData";   // Blockdaten
   END_VAR
   VAR_INPUT 
      stStorage122BlockData : "UDT_StorageBlockData";
      stStorage123BlockData : "UDT_StorageBlockData";
      stStorage124BlockData : "UDT_StorageBlockData";
   END_VAR
   VAR_INPUT RETAIN
      stStorage131BlockData : "UDT_StorageBlockData";   // Blockdaten
   END_VAR
   VAR_INPUT 
      stStorage132BlockData : "UDT_StorageBlockData";
      stStorage133BlockData : "UDT_StorageBlockData";
      stStorage134BlockData : "UDT_StorageBlockData";
   END_VAR

   VAR_IN_OUT 
      arrudt_InOut_MESPart : Array[0..100] of "UDT_Payload_CReqM";
      arLineBlk111 : Array[1.."cNoLines"] of "stStorageLine";   // Daten pro Linie
      arLineBlk112 : Array[1.."cNoLines"] of "stStorageLine";
      arLineBlk113 : Array[1.."cNoLines"] of "stStorageLine";
      arLineBlk114 : Array[1.."cNoLines"] of "stStorageLine";
      arLineBlk121 : Array[1.."cNoLines"] of "stStorageLine";
      arLineBlk122 : Array[1.."cNoLines"] of "stStorageLine";
      arLineBlk123 : Array[1.."cNoLines"] of "stStorageLine";
      arLineBlk124 : Array[1.."cNoLines"] of "stStorageLine";
      arLineBlk131 : Array[1.."cNoLines"] of "stStorageLine";
      arLineBlk132 : Array[1.."cNoLines"] of "stStorageLine";
      arLineBlk133 : Array[1.."cNoLines"] of "stStorageLine";
      arLineBlk134 : Array[1.."cNoLines"] of "stStorageLine";
      udt_InOut_HandshakeDataMES : "udt_HandshakeMessageFromMES";
      arrudt_InOutMFRTRO : Array[1..12] of "UDT_MFR_StoreTRO";
      arrstr_InOut_FillingChart : Array[1..12] of Struct
         n_BLK : Int;
         udt_LineLvlBlk : "udt_LineLvl";
      END_STRUCT;
      arrstr_InOut_EmptyChart : Array[1..12] of Struct
         n_BLK : Int;
         udt_LineLvlBlk : "udt_LineLvl";
      END_STRUCT;
      arrudt_HMILines : Array[1..12] of "udt_LinienSortierungHMI";
      udt_InOutMessageToMesBlk111 : "udt_HandshakeMessageToMES";
      udt_InOutMessageToMesBlk112 : "udt_HandshakeMessageToMES";
      udt_InOutMessageToMesBlk113 : "udt_HandshakeMessageToMES";
      udt_InOutMessageToMesBlk114 : "udt_HandshakeMessageToMES";
      udt_InOutMessageToMesBlk121 : "udt_HandshakeMessageToMES";
      udt_InOutMessageToMesBlk122 : "udt_HandshakeMessageToMES";
      udt_InOutMessageToMesBlk123 : "udt_HandshakeMessageToMES";
      udt_InOutMessageToMesBlk124 : "udt_HandshakeMessageToMES";
      udt_InOutMessageToMesBlk131 : "udt_HandshakeMessageToMES";
      udt_InOutMessageToMesBlk132 : "udt_HandshakeMessageToMES";
      udt_InOutMessageToMesBlk133 : "udt_HandshakeMessageToMES";
      udt_InOutMessageToMesBlk134 : "udt_HandshakeMessageToMES";
      stIn_JamCarrierBlock1 : Struct
         stIn_JamCarrier1101 : Struct
            udt_JamCarrier1101_1 : Struct
               arCarrier : Array[1.."cJam1101_1"] of "stCarrier";
            END_STRUCT;
            udt_JamCarrier1101_2 : Struct
               arCarrier : Array[1.."cJam1101_2"] of "stCarrier";
            END_STRUCT;
         END_STRUCT;
         stIn_JamCarrier1102 : Struct
            udt_JamCarrier1102_1 : Struct
               arCarrier : Array[1.."cJam1102_1"] of "stCarrier";
            END_STRUCT;
            udt_JamCarrier1102_2 : Struct
               arCarrier : Array[1.."cJam1102_2"] of "stCarrier";
            END_STRUCT;
            udt_JamCarrier1102_3 : Struct
               arCarrier : Array[1.."cJam1102_3"] of "stCarrier";
            END_STRUCT;
         END_STRUCT;
         stIn_JamCarrier1103 : Struct
            udt_JamCarrier1103_1 : Struct
               arCarrier : Array[1.."cJam1103_1"] of "stCarrier";
            END_STRUCT;
            udt_JamCarrier1103_2 : Struct
               arCarrier : Array[1.."cJam1103_2"] of "stCarrier";
            END_STRUCT;
         END_STRUCT;
         stIn_JamCarrier1104 : Struct
            udt_JamCarrier1104_1 : Struct
               arCarrier : Array[1.."cJam1104_1"] of "stCarrier";
            END_STRUCT;
            udt_JamCarrier1104_2 : Struct
               arCarrier : Array[1.."cJam1104_2"] of "stCarrier";
            END_STRUCT;
            udt_JamCarrier1104_3 : Struct
               arCarrier : Array[1.."cJam1104_3"] of "stCarrier";
            END_STRUCT;
         END_STRUCT;
         stIn_JamCarrier1105 : Struct
            udt_JamCarrier1105_1 : Struct
               arCarrier : Array[1.."cJam1105_1"] of "stCarrier";
            END_STRUCT;
            udt_JamCarrier1105_2 : Struct
               arCarrier : Array[1.."cJam1105_2"] of "stCarrier";
            END_STRUCT;
         END_STRUCT;
         stIn_JamCarrier1106 : Struct
            udt_JamCarrier1106_1 : Struct
               arCarrier : Array[1.."cJam1106_1"] of "stCarrier";
            END_STRUCT;
            udt_JamCarrier1106_2 : Struct
               arCarrier : Array[1.."cJam1106_2"] of "stCarrier";
            END_STRUCT;
         END_STRUCT;
         stIn_JamCarrier1107 : Struct
            udt_JamCarrier1107_1 : Struct
               arCarrier : Array[1.."cJam1107_1"] of "stCarrier";
            END_STRUCT;
            udt_JamCarrier1107_2 : Struct
               arCarrier : Array[1.."cJam1107_2"] of "stCarrier";
            END_STRUCT;
         END_STRUCT;
         stIn_JamCarrier1108 : Struct
            udt_JamCarrier1108_1 : Struct
               arCarrier : Array[1.."cJam1108_1"] of "stCarrier";
            END_STRUCT;
            udt_JamCarrier1108_2 : Struct
               arCarrier : Array[1.."cJam1108_2"] of "stCarrier";
            END_STRUCT;
         END_STRUCT;
         stIn_JamCarrier1109 : Struct
            udt_JamCarrier1109_1 : Struct
               arCarrier : Array[1.."cJam1109_1"] of "stCarrier";
            END_STRUCT;
            udt_JamCarrier1109_2 : Struct
               arCarrier : Array[1.."cJam1109_2"] of "stCarrier";
            END_STRUCT;
         END_STRUCT;
      END_STRUCT;
      stIn_JamCarrierBlock2 : Struct
         stIn_JamCarrier1201 : Struct
            udt_JamCarrier1201_1 : Struct
               arCarrier : Array[1.."cJam1201_1"] of "stCarrier";
            END_STRUCT;
            udt_JamCarrier1201_2 : Struct
               arCarrier : Array[1.."cJam1201_2"] of "stCarrier";
            END_STRUCT;
         END_STRUCT;
         stIn_JamCarrier1202 : Struct
            udt_JamCarrier1202_1 : Struct
               arCarrier : Array[1.."cJam1202_1"] of "stCarrier";
            END_STRUCT;
            udt_JamCarrier1202_2 : Struct
               arCarrier : Array[1.."cJam1202_2"] of "stCarrier";
            END_STRUCT;
            udt_JamCarrier1202_3 : Struct
               arCarrier : Array[1.."cJam1202_3"] of "stCarrier";
            END_STRUCT;
         END_STRUCT;
         stIn_JamCarrier1203 : Struct
            udt_JamCarrier1203_1 : Struct
               arCarrier : Array[1.."cJam1203_1"] of "stCarrier";
            END_STRUCT;
            udt_JamCarrier1203_2 : Struct
               arCarrier : Array[1.."cJam1203_2"] of "stCarrier";
            END_STRUCT;
         END_STRUCT;
         stIn_JamCarrier1204 : Struct
            udt_JamCarrier1204_1 : Struct
               arCarrier : Array[1.."cJam1204_1"] of "stCarrier";
            END_STRUCT;
            udt_JamCarrier1204_2 : Struct
               arCarrier : Array[1.."cJam1204_2"] of "stCarrier";
            END_STRUCT;
            udt_JamCarrier1204_3 : Struct
               arCarrier : Array[1.."cJam1204_3"] of "stCarrier";
            END_STRUCT;
         END_STRUCT;
         stIn_JamCarrier1205 : Struct
            udt_JamCarrier1205_1 : Struct
               arCarrier : Array[1.."cJam1205_1"] of "stCarrier";
            END_STRUCT;
            udt_JamCarrier1205_2 : Struct
               arCarrier : Array[1.."cJam1205_2"] of "stCarrier";
            END_STRUCT;
         END_STRUCT;
         stIn_JamCarrier1206 : Struct
            udt_JamCarrier1206_1 : Struct
               arCarrier : Array[1.."cJam1206_1"] of "stCarrier";
            END_STRUCT;
            udt_JamCarrier1206_2 : Struct
               arCarrier : Array[1.."cJam1206_2"] of "stCarrier";
            END_STRUCT;
         END_STRUCT;
         stIn_JamCarrier1207 : Struct
            udt_JamCarrier1207_1 : Struct
               arCarrier : Array[1.."cJam1207_1"] of "stCarrier";
            END_STRUCT;
            udt_JamCarrier1207_2 : Struct
               arCarrier : Array[1.."cJam1207_2"] of "stCarrier";
            END_STRUCT;
         END_STRUCT;
         stIn_JamCarrier1208 : Struct
            udt_JamCarrier1208_1 : Struct
               arCarrier : Array[1.."cJam1208_1"] of "stCarrier";
            END_STRUCT;
            udt_JamCarrier1208_2 : Struct
               arCarrier : Array[1.."cJam1208_2"] of "stCarrier";
            END_STRUCT;
         END_STRUCT;
         stIn_JamCarrier1209 : Struct
            udt_JamCarrier1209_1 : Struct
               arCarrier : Array[1.."cJam1209_1"] of "stCarrier";
            END_STRUCT;
            udt_JamCarrier1209_2 : Struct
               arCarrier : Array[1.."cJam1209_2"] of "stCarrier";
            END_STRUCT;
         END_STRUCT;
      END_STRUCT;
      stIn_JamCarrierBlock3 : Struct
         stIn_JamCarrier1301 : Struct
            udt_JamCarrier1301_1 : Struct
               arCarrier : Array[1.."cJam1301_1"] of "stCarrier";
            END_STRUCT;
            udt_JamCarrier1301_2 : Struct
               arCarrier : Array[1.."cJam1301_2"] of "stCarrier";
            END_STRUCT;
         END_STRUCT;
         stIn_JamCarrier1302 : Struct
            udt_JamCarrier1302_1 : Struct
               arCarrier : Array[1.."cJam1302_1"] of "stCarrier";
            END_STRUCT;
            udt_JamCarrier1302_2 : Struct
               arCarrier : Array[1.."cJam1302_2"] of "stCarrier";
            END_STRUCT;
            udt_JamCarrier1302_3 : Struct
               arCarrier : Array[1.."cJam1302_3"] of "stCarrier";
            END_STRUCT;
         END_STRUCT;
         stIn_JamCarrier1303 : Struct
            udt_JamCarrier1303_1 : Struct
               arCarrier : Array[1.."cJam1303_1"] of "stCarrier";
            END_STRUCT;
            udt_JamCarrier1303_2 : Struct
               arCarrier : Array[1.."cJam1303_2"] of "stCarrier";
            END_STRUCT;
         END_STRUCT;
         stIn_JamCarrier1304 : Struct
            udt_JamCarrier1304_1 : Struct
               arCarrier : Array[1.."cJam1304_1"] of "stCarrier";
            END_STRUCT;
            udt_JamCarrier1304_2 : Struct
               arCarrier : Array[1.."cJam1304_2"] of "stCarrier";
            END_STRUCT;
            udt_JamCarrier1304_3 : Struct
               arCarrier : Array[1.."cJam1304_3"] of "stCarrier";
            END_STRUCT;
         END_STRUCT;
         stIn_JamCarrier1305 : Struct
            udt_JamCarrier1305_1 : Struct
               arCarrier : Array[1.."cJam1305_1"] of "stCarrier";
            END_STRUCT;
            udt_JamCarrier1305_2 : Struct
               arCarrier : Array[1.."cJam1305_2"] of "stCarrier";
            END_STRUCT;
         END_STRUCT;
         stIn_JamCarrier1306 : Struct
            udt_JamCarrier1306_1 : Struct
               arCarrier : Array[1.."cJam1306_1"] of "stCarrier";
            END_STRUCT;
            udt_JamCarrier1306_2 : Struct
               arCarrier : Array[1.."cJam1306_2"] of "stCarrier";
            END_STRUCT;
         END_STRUCT;
         stIn_JamCarrier1307 : Struct
            udt_JamCarrier1307_1 : Struct
               arCarrier : Array[1.."cJam1307_1"] of "stCarrier";
            END_STRUCT;
            udt_JamCarrier1307_2 : Struct
               arCarrier : Array[1.."cJam1307_2"] of "stCarrier";
            END_STRUCT;
         END_STRUCT;
         stIn_JamCarrier1308 : Struct
            udt_JamCarrier1308_1 : Struct
               arCarrier : Array[1.."cJam1308_1"] of "stCarrier";
            END_STRUCT;
            udt_JamCarrier1308_2 : Struct
               arCarrier : Array[1.."cJam1308_2"] of "stCarrier";
            END_STRUCT;
         END_STRUCT;
         stIn_JamCarrier1309 : Struct
            udt_JamCarrier1309_1 : Struct
               arCarrier : Array[1.."cJam1309_1"] of "stCarrier";
            END_STRUCT;
            udt_JamCarrier1309_2 : Struct
               arCarrier : Array[1.."cJam1309_2"] of "stCarrier";
            END_STRUCT;
         END_STRUCT;
      END_STRUCT;
      udt_InOutStorageBlockSequencerData : "udt_StorageSite";
   END_VAR

   VAR 
      n_StepBufferMES : Int;
      n_StepTransferMESToBLk : Int;
      n_EmptyElementIDX : Int;
      n_EmptyElementIDXSave : Int;
      n_TransferElementIDX : Int;
      n_TransferElementIDXSave : Int;
      n_RearrangelSequence : Int;
      n_BlockManegementSequence : Int;
      x_ResetTimer : Bool;
      tonr_StartRemoval {InstructionName := 'TONR_TIME'; LibVersion := '1.0'; S7_SetPoint := 'False'} : TONR_TIME;
      arrudt_MESPartDelete { ExternalAccessible := 'False'; ExternalVisible := 'False'; ExternalWritable := 'False'} : Struct
         nBarcode { ExternalAccessible := 'False'; ExternalVisible := 'False'; ExternalWritable := 'False'} : DInt;
         nDestination { ExternalAccessible := 'False'; ExternalVisible := 'False'; ExternalWritable := 'False'} : Int;
         nStored { ExternalAccessible := 'False'; ExternalVisible := 'False'; ExternalWritable := 'False'} : Int;
         nPriority { ExternalAccessible := 'False'; ExternalVisible := 'False'; ExternalWritable := 'False'} : Int;
      END_STRUCT;
      udt_MESSave { S7_SetPoint := 'False'} : "UDT_Payload_CReqM";
      nSearchStorageDATAIdx : Int;
      Lfb_Blk111LineAnalyze { S7_SetPoint := 'False'} : "FB_LineLvlAnalyze";
      udt_LineLvlBlk111 : "udt_LineLvl";
      Lfb_Blk112LineAnalyze { S7_SetPoint := 'False'} : "FB_LineLvlAnalyze";
      udt_LineLvlBlk112 : "udt_LineLvl";
      Lfb_Blk113LineAnalyze { S7_SetPoint := 'False'} : "FB_LineLvlAnalyze";
      udt_LineLvlBlk113 : "udt_LineLvl";
      Lfb_Blk114LineAnalyze { S7_SetPoint := 'False'} : "FB_LineLvlAnalyze";
      udt_LineLvlBlk114 : "udt_LineLvl";
      Lfb_Blk121LineAnalyze { S7_SetPoint := 'False'} : "FB_LineLvlAnalyze";
      udt_LineLvlBlk121 : "udt_LineLvl";
      Lfb_Blk122LineAnalyze { S7_SetPoint := 'False'} : "FB_LineLvlAnalyze";
      udt_LineLvlBlk122 : "udt_LineLvl";
      Lfb_Blk123LineAnalyze { S7_SetPoint := 'False'} : "FB_LineLvlAnalyze";
      udt_LineLvlBlk123 : "udt_LineLvl";
      Lfb_Blk124LineAnalyze { S7_SetPoint := 'False'} : "FB_LineLvlAnalyze";
      udt_LineLvlBlk124 : "udt_LineLvl";
      Lfb_Blk131LineAnalyze { S7_SetPoint := 'False'} : "FB_LineLvlAnalyze";
      udt_LineLvlBlk131 : "udt_LineLvl";
      Lfb_Blk132LineAnalyze { S7_SetPoint := 'False'} : "FB_LineLvlAnalyze";
      udt_LineLvlBlk132 : "udt_LineLvl";
      Lfb_Blk133LineAnalyze { S7_SetPoint := 'False'} : "FB_LineLvlAnalyze";
      udt_LineLvlBlk133 : "udt_LineLvl";
      Lfb_Blk134LineAnalyze { S7_SetPoint := 'False'} : "FB_LineLvlAnalyze";
      udt_LineLvlBlk134 : "udt_LineLvl";
      nMaxFilledBLK { S7_SetPoint := 'True'} : USInt;
      nMaxFilledBLKSAve : USInt;
      nMaxFilledSecBLKSAve : USInt;
      nMaxFilledLine : USInt;
      nMaxFilledLineSAve : USInt;
      n_filledLineCounter : USInt;
      n_rearrangeLineCounter : USInt;
      udt_BlkBlocked { S7_SetPoint := 'False'} : "udt_Blkblocked";
      xStartStockRemovalProcess { S7_SetPoint := 'True'} : Bool;
      rtrig_StartStockRemoval {InstructionName := 'R_TRIG'; LibVersion := '1.0'; S7_SetPoint := 'False'} : R_TRIG;
      udt_MFRTRO { ExternalAccessible := 'False'; ExternalVisible := 'False'; ExternalWritable := 'False'; S7_SetPoint := 'False'} : "UDT_MFR_StoreTRO";
      Lfb_StockRemovalBlk111 { S7_SetPoint := 'False'} : "FB_StockRemovalBLKModul_New";
      Lfb_StockRemovalBlk112 { S7_SetPoint := 'False'} : "FB_StockRemovalBLKModul_New";
      Lfb_StockRemovalBlk113 : "FB_StockRemovalBLKModul_New";
      Lfb_StockRemovalBlk114 : "FB_StockRemovalBLKModul_New";
      Lfb_StockRemovalBlk121 : "FB_StockRemovalBLKModul_New";
      Lfb_StockRemovalBlk122 : "FB_StockRemovalBLKModul_New";
      Lfb_StockRemovalBlk123 : "FB_StockRemovalBLKModul_New";
      Lfb_StockRemovalBlk124 : "FB_StockRemovalBLKModul_New";
      Lfb_StockRemovalBlk131 : "FB_StockRemovalBLKModul_New";
      Lfb_StockRemovalBlk132 : "FB_StockRemovalBLKModul_New";
      Lfb_StockRemovalBlk133 : "FB_StockRemovalBLKModul_New";
      Lfb_StockRemovalBlk134 : "FB_StockRemovalBLKModul_New";
      arrudt_InOutHandshake : Array[1..12] of "udt_StockRemovalBlkHandshake";
      arrudt_InOutHandshakeEmpty : Array[1..12] of "udt_StockRemovalBlkHandshake";
      Lfb_Blk111LineEmptyAnalyze { S7_SetPoint := 'False'} : "FB_LineEmptyAnalyze";
      udt_LineEmptyLvlBlk111 : "udt_LineLvl";
      Lfb_Blk112LineEmptyAnalyze { S7_SetPoint := 'False'} : "FB_LineEmptyAnalyze";
      udt_LineEmptyLvlBlk112 : "udt_LineLvl";
      Lfb_Blk113LineEmptyAnalyze { S7_SetPoint := 'False'} : "FB_LineEmptyAnalyze";
      udt_LineEmptyLvlBlk113 : "udt_LineLvl";
      Lfb_Blk114LineEmptyAnalyze { S7_SetPoint := 'False'} : "FB_LineEmptyAnalyze";
      udt_LineEmptyLvlBlk114 : "udt_LineLvl";
      Lfb_Blk121LineEmptyAnalyze { S7_SetPoint := 'False'} : "FB_LineEmptyAnalyze";
      udt_LineEmptyLvlBlk121 : "udt_LineLvl";
      Lfb_Blk122LineEmptyAnalyze { S7_SetPoint := 'False'} : "FB_LineEmptyAnalyze";
      udt_LineEmptyLvlBlk122 : "udt_LineLvl";
      Lfb_Blk123LineEmptyAnalyze { S7_SetPoint := 'False'} : "FB_LineEmptyAnalyze";
      udt_LineEmptyLvlBlk123 : "udt_LineLvl";
      Lfb_Blk124LineEmptyAnalyze { S7_SetPoint := 'False'} : "FB_LineEmptyAnalyze";
      udt_LineEmptyLvlBlk124 : "udt_LineLvl";
      Lfb_Blk131LineEmptyAnalyze { S7_SetPoint := 'False'} : "FB_LineEmptyAnalyze";
      udt_LineEmptyLvlBlk131 : "udt_LineLvl";
      Lfb_Blk132LineEmptyAnalyze { S7_SetPoint := 'False'} : "FB_LineEmptyAnalyze";
      udt_LineEmptyLvlBlk132 : "udt_LineLvl";
      Lfb_Blk133LineEmptyAnalyze { S7_SetPoint := 'False'} : "FB_LineEmptyAnalyze";
      udt_LineEmptyLvlBlk133 : "udt_LineLvl";
      Lfb_Blk134LineEmptyAnalyze { S7_SetPoint := 'False'} : "FB_LineEmptyAnalyze";
      udt_LineEmptyLvlBlk134 : "udt_LineLvl";
      str_StartBLKTimer : Struct
         xStartBLK111 : Bool;
         xStartBLK112 : Bool;
         xStartBLK113 : Bool;
         xStartBLK114 : Bool;
         xStartBLK121 : Bool;
         xStartBLK122 : Bool;
         xStartBLK123 : Bool;
         xStartBLK124 : Bool;
         xStartBLK131 : Bool;
         xStartBLK132 : Bool;
         xStartBLK133 : Bool;
         xStartBLK134 : Bool;
      END_STRUCT;
      nMaxEmptyBLK { S7_SetPoint := 'True'} : Int;
      nMaxEmptyBLKSave : Int;
      nMaxEmptyLine : Int;
      Lfb_BlkGrp1RearrangeSeq { S7_SetPoint := 'False'} : "FB_RearrangeSequencer";
      Lfb_BlkGrp2RearrangeSeq : "FB_RearrangeSequencer";
      Lfb_BlkGrp3RearrangeSeq : "FB_RearrangeSequencer";
      Lfb_StockRemoveSequencer : "FB_StockRemovalSequencerUDT";
      Lfb_RearrangeStartCoordinator : "FB_RearrangeStartCoordination";
      x_Reset_Muss_Noch_Aufgelgt_Werden { S7_SetPoint := 'True'} : Bool;
      nCandLager : Int;
      nCandLine : Int;
   END_VAR

   VAR_TEMP 
      n_TempNextLine : USInt;
      n_StartResetIDX : USInt;
   END_VAR

   VAR CONSTANT 
      c0_Reset : Int := 0;
      cLinieOK : Byte := 16#FE;
      "~~~~~~~~~~StepsBufferMES~~~~~~~~~~~~~~" : Bool;
      c000_Wait : Int := 0;
      c010_NewData : Int := 10;
      c020_SearchEmptyElement : Int := 20;
      c030_Finish : Int := 30;
      c040_Reset : Int := 40;
      "~~~~~~~~~~StepsTransferBufferToBLK~~~~~~~~~~~~~~" : Int;
      c010_JumpPointData : Int;
      c020_SearchData : Int := 20;
      "~~~~~~~~~~StoreIDsSection111~~~~~~~~~~~~~~" : Int;
      cSection111Line01 : Int := 11101;
      cSection111Line02 : Int := 11102;
      cSection111Line03 : Int := 11103;
      cSection111Line04 : Int := 11104;
      cSection111Line05 : Int := 11105;
      cSection111Line06 : Int := 11106;
      cSection111Line07 : Int := 11107;
      cSection111Line08 : Int := 11108;
      cSection111Line09 : Int := 11109;
      cSection111Line10 : Int := 11110;
      cSection111Line11 : Int := 11111;
      cSection111Line12 : Int := 11112;
      cSection111Line13 : Int := 11113;
      cSection111Line14 : Int := 11114;
      cSection111Line15 : Int := 11115;
      cSection111Line16 : Int := 11116;
      cSection111Line17 : Int := 11117;
      cSection111Line18 : Int := 11118;
      cSection111Line19 : Int := 11119;
      cSection111Line20 : Int := 11120;
      cSection111Line21 : Int := 11121;
      "~~~~~~~~~~StoreIDsSection112~~~~~~~~~~~~~~" : Int;
      cSection112Line01 : Int := 11201;
      cSection112Line02 : Int := 11202;
      cSection112Line03 : Int := 11203;
      cSection112Line04 : Int := 11204;
      cSection112Line05 : Int := 11205;
      cSection112Line06 : Int := 11206;
      cSection112Line07 : Int := 11207;
      cSection112Line08 : Int := 11208;
      cSection112Line09 : Int := 11209;
      cSection112Line10 : Int := 11210;
      cSection112Line11 : Int := 11211;
      cSection112Line12 : Int := 11212;
      cSection112Line13 : Int := 11213;
      cSection112Line14 : Int := 11214;
      cSection112Line15 : Int := 11215;
      cSection112Line16 : Int := 11216;
      cSection112Line17 : Int := 11217;
      cSection112Line18 : Int := 11218;
      cSection112Line19 : Int := 11219;
      cSection112Line20 : Int := 11220;
      cSection112Line21 : Int := 11221;
      "~~~~~~~~~~StoreIDsSection113~~~~~~~~~~~~~~" : Int;
      cSection113Line01 : Int := 11301;
      cSection113Line02 : Int := 11302;
      cSection113Line03 : Int := 11303;
      cSection113Line04 : Int := 11304;
      cSection113Line05 : Int := 11305;
      cSection113Line06 : Int := 11306;
      cSection113Line07 : Int := 11307;
      cSection113Line08 : Int := 11308;
      cSection113Line09 : Int := 11309;
      cSection113Line10 : Int := 11310;
      cSection113Line11 : Int := 11311;
      cSection113Line12 : Int := 11312;
      cSection113Line13 : Int := 11313;
      cSection113Line14 : Int := 11314;
      cSection113Line15 : Int := 11315;
      cSection113Line16 : Int := 11316;
      cSection113Line17 : Int := 11317;
      cSection113Line18 : Int := 11318;
      cSection113Line19 : Int := 11319;
      cSection113Line20 : Int := 11320;
      cSection113Line21 : Int := 11321;
      "~~~~~~~~~~StoreIDsSection214~~~~~~~~~~~~~~" : Int;
      cSection114Line01 : Int := 11401;
      cSection114Line02 : Int := 11402;
      cSection114Line03 : Int := 11403;
      cSection114Line04 : Int := 11404;
      cSection114Line05 : Int := 11405;
      cSection114Line06 : Int := 11406;
      cSection114Line07 : Int := 11407;
      cSection114Line08 : Int := 11408;
      cSection114Line09 : Int := 11409;
      cSection114Line10 : Int := 11410;
      cSection114Line11 : Int := 11411;
      cSection114Line12 : Int := 11412;
      cSection114Line13 : Int := 11413;
      "~~~~~~~~~~StoreIDsSection121~~~~~~~~~~~~~~" : Int;
      cSection121Line01 : Int := 12101;
      cSection121Line02 : Int := 12102;
      cSection121Line03 : Int := 12103;
      cSection121Line04 : Int := 12104;
      cSection121Line05 : Int := 12105;
      cSection121Line06 : Int := 12106;
      cSection121Line07 : Int := 12107;
      cSection121Line08 : Int := 12108;
      cSection121Line09 : Int := 12109;
      cSection121Line10 : Int := 12110;
      cSection121Line11 : Int := 12111;
      cSection121Line12 : Int := 12112;
      cSection121Line13 : Int := 12113;
      cSection121Line14 : Int := 12114;
      cSection121Line15 : Int := 12115;
      cSection121Line16 : Int := 12116;
      cSection121Line17 : Int := 12117;
      cSection121Line18 : Int := 12118;
      cSection121Line19 : Int := 12119;
      "~~~~~~~~~~StoreIDsSection122~~~~~~~~~~~~~~" : Int;
      cSection122Line01 : Int := 12201;
      cSection122Line02 : Int := 12202;
      cSection122Line03 : Int := 12203;
      cSection122Line04 : Int := 12204;
      cSection122Line05 : Int := 12205;
      cSection122Line06 : Int := 12206;
      cSection122Line07 : Int := 12207;
      cSection122Line08 : Int := 12208;
      cSection122Line09 : Int := 12209;
      cSection122Line10 : Int := 12210;
      cSection122Line11 : Int := 12211;
      cSection122Line12 : Int := 12212;
      cSection122Line13 : Int := 12213;
      cSection122Line14 : Int := 12214;
      cSection122Line15 : Int := 12215;
      cSection122Line16 : Int := 12216;
      cSection122Line17 : Int := 12217;
      cSection122Line18 : Int := 12218;
      cSection122Line19 : Int := 12219;
      "~~~~~~~~~~StoreIDsSection123~~~~~~~~~~~~~~" : Int;
      cSection123Line01 : Int := 12301;
      cSection123Line02 : Int := 12302;
      cSection123Line03 : Int := 12303;
      cSection123Line04 : Int := 12304;
      cSection123Line05 : Int := 12305;
      cSection123Line06 : Int := 12306;
      cSection123Line07 : Int := 12307;
      cSection123Line08 : Int := 12308;
      cSection123Line09 : Int := 12309;
      cSection123Line10 : Int := 12310;
      cSection123Line11 : Int := 12311;
      cSection123Line12 : Int := 12312;
      cSection123Line13 : Int := 12313;
      cSection123Line14 : Int := 12314;
      cSection123Line15 : Int := 12315;
      cSection123Line16 : Int := 12316;
      cSection123Line17 : Int := 12317;
      cSection123Line18 : Int := 12318;
      cSection123Line19 : Int := 12319;
      cSection123Line20 : Int := 12320;
      cSection123Line21 : Int := 12321;
      "~~~~~~~~~~StoreIDsSection124~~~~~~~~~~~~~~" : Int;
      cSection124Line01 : Int := 12401;
      cSection124Line02 : Int := 12402;
      cSection124Line03 : Int := 12403;
      cSection124Line04 : Int := 12404;
      cSection124Line05 : Int := 12405;
      cSection124Line06 : Int := 12406;
      cSection124Line07 : Int := 12407;
      cSection124Line08 : Int := 12408;
      cSection124Line09 : Int := 12409;
      cSection124Line10 : Int := 12410;
      cSection124Line11 : Int := 12411;
      cSection124Line12 : Int := 12412;
      cSection124Line13 : Int := 12413;
      "~~~~~~~~~~StoreIDsSection131~~~~~~~~~~~~~~" : Int;
      cSection131Line01 : Int := 13101;
      cSection131Line02 : Int := 13102;
      cSection131Line03 : Int := 13103;
      cSection131Line04 : Int := 13104;
      cSection131Line05 : Int := 13105;
      cSection131Line06 : Int := 13106;
      cSection131Line07 : Int := 13107;
      cSection131Line08 : Int := 13108;
      cSection131Line09 : Int := 13109;
      cSection131Line10 : Int := 13110;
      cSection131Line11 : Int := 13111;
      cSection131Line12 : Int := 13112;
      cSection131Line13 : Int := 13113;
      cSection131Line14 : Int := 13114;
      cSection131Line15 : Int := 13115;
      cSection131Line16 : Int := 13116;
      cSection131Line17 : Int := 13117;
      cSection131Line18 : Int := 13118;
      cSection131Line19 : Int := 13119;
      "~~~~~~~~~~StoreIDsSection132~~~~~~~~~~~~~~" : Int;
      cSection132Line01 : Int := 13201;
      cSection132Line02 : Int := 13202;
      cSection132Line03 : Int := 13203;
      cSection132Line04 : Int := 13204;
      cSection132Line05 : Int := 13205;
      cSection132Line06 : Int := 13206;
      cSection132Line07 : Int := 13207;
      cSection132Line08 : Int := 13208;
      cSection132Line09 : Int := 13209;
      cSection132Line10 : Int := 13210;
      cSection132Line11 : Int := 13211;
      cSection132Line12 : Int := 13212;
      cSection132Line13 : Int := 13213;
      cSection132Line14 : Int := 13214;
      cSection132Line15 : Int := 13215;
      cSection132Line16 : Int := 13216;
      cSection132Line17 : Int := 13217;
      cSection132Line18 : Int := 13218;
      cSection132Line19 : Int := 13219;
      "~~~~~~~~~~StoreIDsSection133~~~~~~~~~~~~~~" : Int;
      cSection133Line01 : Int := 13301;
      cSection133Line02 : Int := 13302;
      cSection133Line03 : Int := 13303;
      cSection133Line04 : Int := 13304;
      cSection133Line05 : Int := 13305;
      cSection133Line06 : Int := 13306;
      cSection133Line07 : Int := 13307;
      cSection133Line08 : Int := 13308;
      cSection133Line09 : Int := 13309;
      cSection133Line10 : Int := 13310;
      cSection133Line11 : Int := 13311;
      cSection133Line12 : Int := 13312;
      cSection133Line13 : Int := 13313;
      cSection133Line14 : Int := 13314;
      cSection133Line15 : Int := 13315;
      cSection133Line16 : Int := 13316;
      cSection133Line17 : Int := 13317;
      cSection133Line18 : Int := 13318;
      cSection133Line19 : Int := 13319;
      cSection133Line20 : Int := 13320;
      cSection133Line21 : Int := 13321;
      "~~~~~~~~~~StoreIDsSection134~~~~~~~~~~~~~~" : Int;
      cSection134Line01 : Int := 13401;
      cSection134Line02 : Int := 13402;
      cSection134Line03 : Int := 13403;
      cSection134Line04 : Int := 13404;
      cSection134Line05 : Int := 13405;
      cSection134Line06 : Int := 13406;
      cSection134Line07 : Int := 13407;
      cSection134Line08 : Int := 13408;
      cSection134Line09 : Int := 13409;
      cSection134Line10 : Int := 13410;
      cSection134Line11 : Int := 13411;
      cSection134Line12 : Int := 13412;
      cSection134Line13 : Int := 13413;
      cSection134Line14 : Int := 13414;
      cSection134Line15 : Int := 13415;
      cBlock111 : Int := 111;
      cBlock112 : Int := 112;
      cBlock113 : Int := 113;
      cBlock114 : Int := 114;
      cBlock121 : Int := 121;
      cBlock122 : Int := 122;
      cBlock123 : Int := 123;
      cBlock124 : Int := 124;
      cBlock131 : Int := 131;
      cBlock132 : Int := 132;
      cBlock133 : Int := 133;
      cBlock134 : Int := 134;
      "~~~~~~~~ArrayElemente~~~~~~~~~~~~" : Int;
      c111 : USInt := 1;
      c112 : USInt := 2;
      c113 : USInt := 3;
      c114 : USInt := 4;
      c121 : USInt := 5;
      c122 : USInt := 6;
      c123 : USInt := 7;
      c124 : USInt := 8;
      c131 : USInt := 9;
      c132 : USInt := 10;
      c133 : USInt := 11;
      c134 : USInt := 12;
      "~~~~~RearrangeSequence~~~~~" : Int;
      c0000_Wait : Int := 0;
      c0010_SearchLine : Int := 10;
      c0030_StartRearrange : Int := 30;
      c0020_CalculateAmount : Int := 20;
      c0040_CheckCarrier : Int := 40;
      c0050_ResetTRO : Int := 50;
      c0060_CheckMoreLines : Int := 60;
      c0900_Error : Int := 900;
      "~~~~~StockRemovalSequence~~~~~" : Int;
      c0010_CheckSituation : Int := 10;
      c0015_StartEmptyCarrierRemoval : Int := 15;
      c0020_StartCarrierRemoval : Int := 20;
      c0030_WaitForJobDone : Int := 30;
      c0040_Reset : Int := 40;
      "~~~~~ErrorID~~~~~" : Int;
      c0010_NoLineFound : Int := 10;
      "~~~~~Destinations~~~~~" : Int;
      c01_AMR : Int := 1;
      c02_F2H : Int := 2;
      "~~~~~StockRemovalBlkStatus~~~~~~" : Int;
      c0BereitZumEinlagern : Int := 0;
      c1Umlagern : Int := 1;
      c2Auslagern : Int := 2;
   END_VAR


BEGIN
	
	REGION Info
	(* Company: Schönenberger Systeme GmbH / (C) Copyright (2022). All rights reserved.
	-----------------------------------------------------------------------------------------
	Title: FB_StockRemovalManagementLvl1
	Comment/Function: manages stock removal out of the individual storage areas
	Library/Family: -
	Author: department: "Automatisierung" ; person in charge / contact: C.Nottelmann (Automated Intelligence)
	Target System: CPU 1518F-4 PN/DP
	Engineering: TIA Portal V20
	Restrictions: -
	Requirements: -
	-----------------------------------------------------------------------------------------
	Change log table:
	Version     | Date       | Signature (Safety) | Expert in charge | Changes applied
	------------|------------|--------------------|------------------|-----------------------
	001.000.000 | 2025-08-26 | -                  |                  | Header added on 26.08.2025
	                                                                   
	*)
	END_REGION
	
	REGION Times & Trigger
	    
	    #tonr_StartRemoval(IN := #n_RearrangelSequence = #c0000_Wait,
	                       R := #x_ResetTimer,
	                       PT := #t_IN_RemovalWaitTime);
	    
	    
	    
	    
	    
	END_REGION
	
	REGION Buffer MES Message
	    
	    CASE #n_StepBufferMES OF
	        #c000_Wait:
	            ;
	            //Action
	            
	            
	            //Transition
	            IF #udt_InOut_HandshakeDataMES.str_Ctrl.xNewDataAvaible
	            THEN
	                #n_StepBufferMES := #c010_NewData;
	            END_IF;
	            
	        #c010_NewData:
	            
	            //Action
	            #udt_MESSave := #udt_IN_MES;
	            #udt_InOut_HandshakeDataMES.str_Status.xReadingNewData := True;
	            //Transition
	            IF #udt_MESSave.nBarcode > 0
	            THEN
	                #n_StepBufferMES := #c020_SearchEmptyElement;
	                //Else Error
	            END_IF;
	            
	        #c020_SearchEmptyElement:
	            
	            //Action
	            FOR #n_EmptyElementIDX := 0 TO 100 DO
	                IF #arrudt_InOut_MESPart[#n_EmptyElementIDX].nBarcode = 0
	                THEN
	                    #n_EmptyElementIDXSave := #n_EmptyElementIDX;
	                    #arrudt_InOut_MESPart[#n_EmptyElementIDX] := #udt_IN_MES;
	                    #udt_InOut_HandshakeDataMES.str_Status.xNewDataSaved := True;
	                    #udt_InOut_HandshakeDataMES.str_Status.xReadingNewData := False;
	                    EXIT;
	                END_IF;
	                
	            END_FOR;
	            
	            
	            //Transition
	            IF #arrudt_InOut_MESPart[#n_EmptyElementIDXSave].nBarcode > 0
	            THEN
	                #n_StepBufferMES := #c030_Finish;
	            END_IF;
	            
	        #c030_Finish:
	            // Action
	            
	            //Transition
	            IF NOT #udt_InOut_HandshakeDataMES.str_Ctrl.xNewDataAvaible
	            THEN
	                #n_StepBufferMES := #c040_Reset;
	            END_IF;
	            
	        #c040_Reset:
	            //Action
	            #udt_InOut_HandshakeDataMES.str_Status.xReadingNewData := False;
	            #udt_InOut_HandshakeDataMES.str_Status.xNewDataSaved := False;
	            #udt_InOut_HandshakeDataMES.str_Status.xDataIncorrect := False;
	            #n_EmptyElementIDXSave := 0;
	            
	            //Transition
	            #n_StepBufferMES := #c000_Wait;
	            
	    END_CASE;
	    
	    
	END_REGION
	
	REGION Transfer from MES Message to Blk 
	    
	    
	    CASE #n_StepTransferMESToBLk OF
	            
	        #c000_Wait:
	            //Action
	            //
	            
	            //Transfer
	            ;
	            
	        #c020_SearchData:
	            REGION Search Data
	                FOR #n_TransferElementIDX := 0 TO 100 DO
	                    IF #arrudt_InOut_MESPart[#n_TransferElementIDX].nBarcode > 0
	                    THEN
	                        CASE #arrudt_InOut_MESPart[#n_TransferElementIDX].nLocation OF
	                                
	                            #cSection111Line01:
	                                REGION cSection111Line01
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk111[1].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK111 := True;
	                                            #arLineBlk111[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk111[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk111[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        //Setzen der Flag in den entsprechenden Carrier Daten
	                                        //
	                                    END_FOR;
	                                END_REGION
	                            #cSection111Line02:
	                                REGION cSection111Line02
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk111[2].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK111 := True;
	                                            #arLineBlk111[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk111[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk111[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                            #cSection111Line03:
	                                REGION cSection111Line03
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk111[3].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK111 := True;
	                                            #arLineBlk111[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk111[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk111[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection111Line04:
	                                REGION cSection111Line04
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk111[4].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK111 := True;
	                                            #arLineBlk111[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk111[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk111[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                            #cSection111Line05:
	                                REGION cSection111Line05
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk111[5].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK111 := True;
	                                            #arLineBlk111[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk111[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk111[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                            #cSection111Line06:
	                                REGION cSection111Line06
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk111[6].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK111 := True;
	                                            #arLineBlk111[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk111[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk111[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                            #cSection111Line07:
	                                REGION cSection111Line07
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk111[7].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK111 := True;
	                                            #arLineBlk111[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk111[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk111[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                            #cSection111Line08:
	                                REGION cSection111Line08
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk111[8].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK111 := True;
	                                            #arLineBlk111[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk111[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk111[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection111Line09:
	                                REGION cSection111Line09
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk111[9].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK111 := True;
	                                            #arLineBlk111[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk111[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk111[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                            #cSection111Line10:
	                                REGION cSection111Line10
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk111[10].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK111 := True;
	                                            #arLineBlk111[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk111[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk111[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                            #cSection111Line11:
	                                REGION cSection111Line11
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk111[11].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK111 := True;
	                                            #arLineBlk111[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk111[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk111[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                            #cSection111Line12:
	                                REGION cSection111Line12
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk111[12].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK111 := True;
	                                            #arLineBlk111[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk111[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk111[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection111Line13:
	                                REGION cSection111Line13
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk111[13].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK111 := True;
	                                            #arLineBlk111[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk111[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk111[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection111Line14:
	                                REGION cSection111Line14
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk111[14].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK111 := True;
	                                            #arLineBlk111[14].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk111[14].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk111[14].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection111Line15:
	                                REGION cSection111Line15
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk111[15].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK111 := True;
	                                            #arLineBlk111[15].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk111[15].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk111[15].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection111Line16:
	                                REGION cSection111Line16
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk111[16].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK111 := True;
	                                            #arLineBlk111[16].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk111[16].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk111[16].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection111Line17:
	                                REGION cSection111Line17
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk111[17].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK111 := True;
	                                            #arLineBlk111[17].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk111[17].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk111[17].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection111Line18:
	                                REGION cSection111Line18
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk111[18].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK111 := True;
	                                            #arLineBlk111[18].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk111[18].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk111[18].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection111Line19:
	                                REGION cSection111Line19
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk111[19].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK111 := True;
	                                            #arLineBlk111[19].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk111[19].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk111[19].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                                
	                            #cSection112Line01:
	                                REGION cSection112Line01
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk112[1].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK112 := True;
	                                            #arLineBlk112[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk112[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk112[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection112Line02:
	                                REGION cSection112Line02
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk112[2].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK112 := True;
	                                            #arLineBlk112[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk112[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk112[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection112Line03:
	                                REGION cSection112Line03
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk112[3].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK112 := True;
	                                            #arLineBlk112[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk112[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk112[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection112Line04:
	                                REGION cSection112Line04
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk112[4].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK112 := True;
	                                            #arLineBlk112[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk112[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk112[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection112Line05:
	                                REGION cSection112Line05
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk112[5].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK112 := True;
	                                            #arLineBlk112[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk112[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk112[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection112Line06:
	                                REGION cSection112Line06
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk112[6].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK112 := True;
	                                            #arLineBlk112[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk112[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk112[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection112Line07:
	                                REGION cSection112Line07
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk112[7].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK112 := True;
	                                            #arLineBlk112[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk112[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk112[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection112Line08:
	                                REGION cSection112Line08
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk112[8].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK112 := True;
	                                            #arLineBlk112[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk112[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk112[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection112Line09:
	                                REGION cSection112Line09
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk112[9].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK112 := True;
	                                            #arLineBlk112[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk112[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk112[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection112Line10:
	                                REGION cSection212Line10
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk112[10].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK112 := True;
	                                            #arLineBlk112[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk112[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk112[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection112Line11:
	                                REGION cSection212Line11
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk112[11].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK112 := True;
	                                            #arLineBlk112[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk112[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk112[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection112Line12:
	                                REGION cSection112Line12
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk112[12].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK112 := True;
	                                            #arLineBlk112[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk112[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk112[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection112Line13:
	                                REGION cSection112Line13
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk112[13].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK112 := True;
	                                            #arLineBlk112[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk112[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk112[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection112Line14:
	                                REGION cSection112Line14
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk112[14].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK112 := True;
	                                            #arLineBlk112[14].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk112[14].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk112[14].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection112Line15:
	                                REGION cSection112Line15
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk112[15].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK112 := True;
	                                            #arLineBlk112[15].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk112[15].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk112[15].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection112Line16:
	                                REGION cSection112Line16
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk112[16].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK112 := True;
	                                            #arLineBlk112[16].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk112[16].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk112[16].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection112Line17:
	                                REGION cSection112Line17
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk112[17].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK112 := True;
	                                            #arLineBlk112[17].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk112[17].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk112[17].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                                
	                            #cSection113Line01:
	                                REGION cSection113Line01
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk113[1].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK113 := True;
	                                            #arLineBlk113[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk113[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk113[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection113Line02:
	                                REGION cSection113Line02
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk113[2].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK113 := True;
	                                            #arLineBlk113[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk113[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk113[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection113Line03:
	                                REGION cSection113Line03
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk113[3].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK113 := True;
	                                            #arLineBlk113[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk113[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk113[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection113Line04:
	                                REGION cSection113Line04
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk113[4].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK113 := True;
	                                            #arLineBlk113[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk113[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk113[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection113Line05:
	                                REGION cSection113Line05
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk113[5].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK113 := True;
	                                            #arLineBlk113[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk113[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk113[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection113Line06:
	                                REGION cSection113Line06
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk113[6].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK113 := True;
	                                            #arLineBlk113[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk113[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk113[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection113Line07:
	                                REGION cSection113Line07
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk113[7].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK113 := True;
	                                            #arLineBlk113[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk113[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk113[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection113Line08:
	                                REGION cSection113Line08
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk113[8].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK113 := True;
	                                            #arLineBlk113[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk113[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk113[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection113Line09:
	                                REGION cSection113Line09
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk113[9].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK113 := True;
	                                            #arLineBlk113[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk113[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk113[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection113Line10:
	                                REGION cSection113Line10
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk113[10].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK113 := True;
	                                            #arLineBlk113[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk113[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk113[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection113Line11:
	                                REGION cSection113Line11
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk113[11].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK113 := True;
	                                            #arLineBlk113[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk113[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk113[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection113Line12:
	                                REGION cSection113Line12
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk113[12].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK113 := True;
	                                            #arLineBlk113[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk113[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk113[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection113Line13:
	                                REGION cSection113Line13
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk113[13].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK113 := True;
	                                            #arLineBlk113[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk113[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk113[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection113Line14:
	                                REGION cSection113Line14
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk113[14].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK113 := True;
	                                            #arLineBlk113[14].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk113[14].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk113[14].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection113Line15:
	                                REGION cSection113Line15
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk113[15].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK113 := True;
	                                            #arLineBlk113[15].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk113[15].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk113[15].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection113Line16:
	                                REGION cSection113Line16
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk113[16].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK113 := True;
	                                            #arLineBlk113[16].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk113[16].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk113[16].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection113Line17:
	                                REGION cSection113Line17
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk113[17].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK113 := True;
	                                            #arLineBlk113[17].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk113[17].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk113[17].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection113Line18:
	                                REGION cSection113Line18
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk113[18].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK113 := True;
	                                            #arLineBlk113[18].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk113[18].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk113[18].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection113Line19:
	                                REGION cSection113Line19
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk113[19].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK113 := True;
	                                            #arLineBlk113[19].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk113[19].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk113[19].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection113Line20:
	                                REGION cSection113Line20
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk113[20].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK113 := True;
	                                            #arLineBlk113[20].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk113[20].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk113[20].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection113Line21:
	                                REGION cSection113Line21
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk113[21].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK113 := True;
	                                            #arLineBlk113[21].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk113[21].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk113[21].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection114Line01:
	                                REGION cSection114Line01
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk114[1].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK114 := True;
	                                            #arLineBlk114[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk114[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk114[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection114Line02:
	                                REGION cSection114Line02
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk114[2].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK114 := True;
	                                            #arLineBlk114[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk114[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk114[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection114Line03:
	                                REGION cSection114Line03
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk114[3].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK114 := True;
	                                            #arLineBlk114[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk114[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk114[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection114Line04:
	                                REGION cSection114Line04
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk114[4].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK114 := True;
	                                            #arLineBlk114[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk114[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk114[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection114Line05:
	                                REGION cSection114Line05
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk114[5].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK114 := True;
	                                            #arLineBlk114[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk114[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk114[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection114Line06:
	                                REGION cSection114Line06
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk114[6].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK114 := True;
	                                            #arLineBlk114[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk114[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk114[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection114Line07:
	                                REGION cSection114Line07
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk114[7].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK114 := True;
	                                            #arLineBlk114[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk114[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk114[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection114Line08:
	                                REGION cSection114Line08
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk114[8].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK114 := True;
	                                            #arLineBlk114[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk114[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk114[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection114Line09:
	                                REGION cSection114Line09
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk114[9].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK114 := True;
	                                            #arLineBlk114[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk114[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk114[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection114Line10:
	                                REGION cSection114Line10
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk114[10].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK114 := True;
	                                            #arLineBlk114[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk114[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk114[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection114Line11:
	                                REGION cSection114Line11
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk114[11].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK114 := True;
	                                            #arLineBlk114[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk114[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk114[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection114Line12:
	                                REGION cSection114Line12
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk114[12].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK114 := True;
	                                            #arLineBlk114[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk114[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk114[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection114Line13:
	                                REGION cSection114Line13
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk114[13].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK114 := True;
	                                            #arLineBlk114[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk114[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk114[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection121Line01:
	                                REGION cSection121Line01
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk121[1].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK121 := True;
	                                            #arLineBlk121[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk121[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk121[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection121Line02:
	                                REGION Section121Line02
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk121[2].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK121 := True;
	                                            #arLineBlk121[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk121[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk121[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection121Line03:
	                                REGION cSection121Line03
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk121[3].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK121 := True;
	                                            #arLineBlk121[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk121[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk121[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection121Line04:
	                                REGION cSection121Line04
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk121[4].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK121 := True;
	                                            #arLineBlk121[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk121[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk121[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection121Line05:
	                                REGION cSection121Line05
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk121[5].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK121 := True;
	                                            #arLineBlk121[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk121[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk121[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection121Line06:
	                                REGION cSection121Line06
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk121[6].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK121 := True;
	                                            #arLineBlk121[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk121[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk121[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection121Line07:
	                                REGION cSection121Line07
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk121[7].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK121 := True;
	                                            #arLineBlk121[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk121[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk121[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection121Line08:
	                                REGION cSection121Line08
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk121[8].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK121 := True;
	                                            #arLineBlk121[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk121[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk121[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection121Line09:
	                                REGION cSection121Line09
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk121[9].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK121 := True;
	                                            #arLineBlk121[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk121[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk121[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection121Line10:
	                                REGION cSection121Line10
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk121[10].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK121 := True;
	                                            #arLineBlk121[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk121[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk121[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection121Line11:
	                                REGION cSection121Line11
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk121[11].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK121 := True;
	                                            #arLineBlk121[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk121[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk121[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection121Line12:
	                                REGION cSection121Line12
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk121[12].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK121 := True;
	                                            #arLineBlk121[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk121[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk121[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection121Line13:
	                                REGION cSection121Line13
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk121[13].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK121 := True;
	                                            #arLineBlk121[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk121[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk121[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection121Line14:
	                                REGION cSection121Line14
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk121[14].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK121 := True;
	                                            #arLineBlk121[14].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk121[14].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk121[14].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection121Line15:
	                                REGION cSection121Line15
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk121[15].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK121 := True;
	                                            #arLineBlk121[15].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk121[15].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk121[15].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection121Line16:
	                                REGION cSection121Line16
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk121[16].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK121 := True;
	                                            #arLineBlk121[16].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk121[16].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk121[16].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection121Line17:
	                                REGION cSection121Line17
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk121[17].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK121 := True;
	                                            #arLineBlk121[17].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk121[17].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk121[17].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection121Line18:
	                                REGION cSection121Line18
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk121[18].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK121 := True;
	                                            #arLineBlk121[18].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk121[18].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk121[18].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection121Line19:
	                                REGION cSection121Line19
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk121[19].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK121 := True;
	                                            #arLineBlk121[19].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk121[19].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk121[19].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection122Line01:
	                                REGION cSection122Line01
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk122[1].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK122 := True;
	                                            #arLineBlk122[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk122[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk122[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection122Line02:
	                                REGION cSection122Line02
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk122[2].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK122 := True;
	                                            #arLineBlk122[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk122[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk122[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection122Line03:
	                                REGION cSection122Line03
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk122[3].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK122 := True;
	                                            #arLineBlk122[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk122[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk122[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection122Line04:
	                                REGION cSection122Line04
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk122[4].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK122 := True;
	                                            #arLineBlk122[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk122[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk122[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection122Line05:
	                                REGION cSection122Line05
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk122[5].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK122 := True;
	                                            #arLineBlk122[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk122[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk122[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection122Line06:
	                                REGION cSection122Line06
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk122[6].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK122 := True;
	                                            #arLineBlk122[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk122[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk122[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection122Line07:
	                                REGION cSection122Line07
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk122[7].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK122 := True;
	                                            #arLineBlk122[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk122[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk122[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection122Line08:
	                                REGION cSection122Line08
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk122[8].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK122 := True;
	                                            #arLineBlk122[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk122[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk122[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection122Line09:
	                                REGION cSection122Line09
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk122[9].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK122 := True;
	                                            #arLineBlk122[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk122[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk122[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection122Line10:
	                                REGION cSection122Line10
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk122[10].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK122 := True;
	                                            #arLineBlk122[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk122[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk122[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                            
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection122Line11:
	                                REGION cSection122Line11
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk122[11].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK122 := True;
	                                            #arLineBlk122[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk122[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk122[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection122Line12:
	                                REGION cSection122Line12
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk122[12].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK122 := True;
	                                            #arLineBlk122[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk122[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk122[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection122Line13:
	                                REGION cSection122Line13
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk122[13].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK122 := True;
	                                            #arLineBlk122[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk122[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk122[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection122Line14:
	                                REGION cSection122Line14
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk122[14].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK122 := True;
	                                            #arLineBlk122[14].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk122[14].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk122[14].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection122Line15:
	                                REGION cSection122Line15
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk122[15].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK122 := True;
	                                            #arLineBlk122[15].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk122[15].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk122[15].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection122Line16:
	                                REGION cSection122Line16
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk122[16].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK122 := True;
	                                            #arLineBlk122[16].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk122[16].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk122[16].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection122Line17:
	                                REGION cSection122Line17
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk122[17].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK122 := True;
	                                            #arLineBlk122[17].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk122[17].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk122[17].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                                
	                            #cSection123Line01:
	                                REGION cSection123Line01
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk123[1].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK123 := True;
	                                            #arLineBlk123[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk123[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk123[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection123Line02:
	                                REGION cSection123Line02
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk123[2].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK123 := True;
	                                            #arLineBlk123[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk123[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk123[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection123Line03:
	                                REGION cSection123Line03
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk123[3].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK123 := True;
	                                            #arLineBlk123[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk123[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk123[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection123Line04:
	                                REGION cSection123Line04
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk123[4].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK123 := True;
	                                            #arLineBlk123[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk123[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk123[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection123Line05:
	                                REGION cSection123Line05
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk123[5].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK123 := True;
	                                            #arLineBlk123[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk123[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk123[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection123Line06:
	                                REGION cSection123Line06
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk123[6].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK123 := True;
	                                            #arLineBlk123[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk123[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk123[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection123Line07:
	                                REGION cSection123Line07
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk123[7].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK123 := True;
	                                            #arLineBlk123[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk123[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk123[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection123Line08:
	                                REGION cSection123Line08
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk123[8].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK123 := True;
	                                            #arLineBlk123[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk123[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk123[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection123Line09:
	                                REGION cSection123Line09
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk123[9].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK123 := True;
	                                            #arLineBlk123[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk123[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk123[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection123Line10:
	                                REGION cSection123Line10
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk123[10].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK123 := True;
	                                            #arLineBlk123[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk123[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk123[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection123Line11:
	                                REGION cSection123Line11
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk123[11].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK123 := True;
	                                            #arLineBlk123[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk123[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk123[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection123Line12:
	                                REGION cSection123Line12
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk123[12].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK123 := True;
	                                            #arLineBlk123[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk123[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk123[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection123Line13:
	                                REGION cSection123Line13
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk123[13].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK123 := True;
	                                            #arLineBlk123[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk123[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk123[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection123Line14:
	                                REGION cSection123Line14
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk123[14].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK123 := True;
	                                            #arLineBlk123[14].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk123[14].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk123[14].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection123Line15:
	                                REGION cSection123Line15
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk123[15].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK123 := True;
	                                            #arLineBlk123[15].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk123[15].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk123[15].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection123Line16:
	                                REGION cSection123Line16
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk123[16].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK123 := True;
	                                            #arLineBlk123[16].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk123[16].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk123[16].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection123Line17:
	                                REGION cSection123Line17
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk123[17].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK123 := True;
	                                            #arLineBlk123[17].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk123[17].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk123[17].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection123Line18:
	                                REGION cSection123Line18
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk123[18].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK123 := True;
	                                            #arLineBlk123[18].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk123[18].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk123[18].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection123Line19:
	                                REGION cSection123Line19
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk123[19].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK123 := True;
	                                            #arLineBlk123[19].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk123[19].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk123[19].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection123Line20:
	                                REGION cSection123Line20
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk123[20].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK123 := True;
	                                            #arLineBlk123[20].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk123[20].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk123[20].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection123Line21:
	                                REGION cSection123Line21
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk123[21].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK123 := True;
	                                            #arLineBlk123[21].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk123[21].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk123[21].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection124Line01:
	                                REGION cSection124Line01
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk124[1].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK124 := True;
	                                            #arLineBlk124[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk124[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk124[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection124Line02:
	                                REGION cSection124Line02
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk124[2].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK124 := True;
	                                            #arLineBlk124[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk124[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk124[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection124Line03:
	                                REGION cSection124Line03
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk124[3].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK124 := True;
	                                            #arLineBlk124[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk124[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk124[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection124Line04:
	                                REGION cSection124Line04
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk124[4].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK124 := True;
	                                            #arLineBlk124[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk124[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk124[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection124Line05:
	                                REGION cSection124Line05
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk124[5].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK124 := True;
	                                            #arLineBlk124[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk124[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk124[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection124Line06:
	                                REGION cSection124Line06
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk124[6].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK124 := True;
	                                            #arLineBlk124[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk124[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk124[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection124Line07:
	                                REGION cSection124Line07
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk124[7].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK124 := True;
	                                            #arLineBlk124[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk124[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk124[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection124Line08:
	                                REGION cSection124Line08
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk124[8].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK124 := True;
	                                            #arLineBlk124[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk124[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk124[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection124Line09:
	                                REGION cSection124Line09
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk124[9].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK124 := True;
	                                            #arLineBlk124[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk124[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk124[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection124Line10:
	                                REGION cSection124Line10
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk124[10].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK124 := True;
	                                            #arLineBlk124[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk124[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk124[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection124Line11:
	                                REGION cSection124Line11
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk124[11].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK124 := True;
	                                            #arLineBlk124[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk124[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk124[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection124Line12:
	                                REGION cSection124Line12
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk124[12].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK124 := True;
	                                            #arLineBlk124[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk124[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk124[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection124Line13:
	                                REGION cSection124Line13
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk124[13].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK124 := True;
	                                            #arLineBlk124[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk124[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk124[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection131Line01:
	                                REGION cSection131Line01
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk131[1].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK131 := True;
	                                            #arLineBlk131[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk131[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk131[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection131Line02:
	                                REGION cSection131Line02
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk131[2].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK131 := True;
	                                            #arLineBlk131[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk131[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk131[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection131Line03:
	                                REGION cSection131Line03
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk131[3].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK131 := True;
	                                            #arLineBlk131[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk131[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk131[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection131Line04:
	                                REGION cSection131Line04
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk131[4].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK131 := True;
	                                            #arLineBlk131[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk131[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk131[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection131Line05:
	                                REGION cSection131Line05
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk131[5].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK131 := True;
	                                            #arLineBlk131[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk131[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk131[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection131Line06:
	                                REGION cSection131Line06
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk131[6].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK131 := True;
	                                            #arLineBlk131[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk131[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk131[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection131Line07:
	                                REGION cSection131Line07
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk131[7].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK131 := True;
	                                            #arLineBlk131[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk131[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk131[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection131Line08:
	                                REGION cSection131Line08
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk131[8].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK131 := True;
	                                            #arLineBlk131[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk131[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk131[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection131Line09:
	                                REGION cSection131Line09
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk131[9].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK131 := True;
	                                            #arLineBlk131[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk131[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk131[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection131Line10:
	                                REGION cSection131Line10
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk131[10].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK131 := True;
	                                            #arLineBlk131[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk131[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk131[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection131Line11:
	                                REGION cSection131Line11
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk131[11].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK131 := True;
	                                            #arLineBlk131[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk131[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk131[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection131Line12:
	                                REGION cSection131Line12
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk131[12].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK131 := True;
	                                            #arLineBlk131[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk131[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk131[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection131Line13:
	                                REGION cSection131Line13
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk131[13].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK131 := True;
	                                            #arLineBlk131[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk131[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk131[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection131Line14:
	                                REGION cSection131Line14
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk131[14].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK131 := True;
	                                            #arLineBlk131[14].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk131[14].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk131[14].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection131Line15:
	                                REGION cSection131Line15
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk131[15].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK131 := True;
	                                            #arLineBlk131[15].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk131[15].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk131[15].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection131Line16:
	                                REGION cSection131Line16
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk131[16].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK131 := True;
	                                            #arLineBlk131[16].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk131[16].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk131[16].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection131Line17:
	                                REGION cSection131Line17
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk131[17].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK131 := True;
	                                            #arLineBlk131[17].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk131[17].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk131[17].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection131Line18:
	                                REGION cSection131Line18
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk131[18].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK131 := True;
	                                            #arLineBlk131[18].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk131[18].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk131[18].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection131Line19:
	                                REGION cSection131Line19
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk131[19].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK131 := True;
	                                            #arLineBlk131[19].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk131[19].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk131[19].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection132Line01:
	                                REGION cSection132Line01
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk132[1].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK132 := True;
	                                            #arLineBlk132[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk132[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk132[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection132Line02:
	                                REGION cSection132Line02
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk132[2].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK132 := True;
	                                            #arLineBlk132[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk132[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk132[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection132Line03:
	                                REGION cSection132Line03
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk132[3].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK132 := True;
	                                            #arLineBlk132[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk132[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk132[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection132Line04:
	                                REGION cSection132Line04
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk132[4].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK132 := True;
	                                            #arLineBlk132[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk132[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk132[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection132Line05:
	                                REGION cSection132Line05
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk132[5].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK132 := True;
	                                            #arLineBlk132[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk132[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk132[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection132Line06:
	                                REGION cSection132Line06
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk132[6].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK132 := True;
	                                            #arLineBlk132[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk132[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk132[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection132Line07:
	                                REGION cSection132Line07
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk132[7].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK132 := True;
	                                            #arLineBlk132[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk132[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk132[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection132Line08:
	                                REGION cSection132Line08
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk132[8].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK132 := True;
	                                            #arLineBlk132[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk132[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk132[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection132Line09:
	                                REGION cSection132Line09
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk132[9].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK132 := True;
	                                            #arLineBlk132[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk132[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk132[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection132Line10:
	                                REGION cSection132Line10
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk132[10].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK132 := True;
	                                            #arLineBlk132[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk132[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk132[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection132Line11:
	                                REGION cSection132Line11
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk132[11].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK132 := True;
	                                            #arLineBlk132[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk132[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk132[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection132Line12:
	                                REGION cSection132Line12
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk132[12].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK132 := True;
	                                            #arLineBlk132[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk132[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk132[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection132Line13:
	                                REGION cSection132Line13
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk132[13].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK132 := True;
	                                            #arLineBlk132[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk132[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk132[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection132Line14:
	                                REGION cSection132Line14
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk132[14].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK132 := True;
	                                            #arLineBlk132[14].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk132[14].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk132[14].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection132Line15:
	                                REGION cSection132Line15
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk132[15].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK132 := True;
	                                            #arLineBlk132[15].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk132[15].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk132[15].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection132Line16:
	                                REGION cSection132Line16
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk132[16].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK132 := True;
	                                            #arLineBlk132[16].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk132[16].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk132[16].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection132Line17:
	                                REGION cSection132Line17
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk132[17].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK132 := True;
	                                            #arLineBlk132[17].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk132[17].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk132[17].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection133Line01:
	                                REGION cSection133Line01
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk133[1].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK133 := True;
	                                            #arLineBlk133[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk133[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk133[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection133Line02:
	                                REGION cSection133Line02
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk133[2].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK133 := True;
	                                            #arLineBlk133[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk133[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk133[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection133Line03:
	                                REGION cSection133Line03
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk133[3].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK133 := True;
	                                            #arLineBlk133[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk133[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk133[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection133Line04:
	                                REGION cSection133Line04
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk133[4].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK133 := True;
	                                            #arLineBlk133[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk133[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk133[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection133Line05:
	                                REGION cSection133Line05
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk133[5].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK133 := True;
	                                            #arLineBlk133[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk133[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk133[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection133Line06:
	                                REGION cSection133Line06
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk133[6].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK133 := True;
	                                            #arLineBlk133[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk133[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk133[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection133Line07:
	                                REGION cSection133Line07
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk133[7].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK133 := True;
	                                            #arLineBlk133[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk133[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk133[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection133Line08:
	                                REGION cSection133Line08
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk133[8].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK133 := True;
	                                            #arLineBlk133[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk133[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk133[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection133Line09:
	                                REGION cSection133Line09
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk133[9].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK133 := True;
	                                            #arLineBlk133[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk133[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk133[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection133Line10:
	                                REGION cSection133Line10
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk133[10].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK133 := True;
	                                            #arLineBlk133[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk133[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk133[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection133Line11:
	                                REGION cSection133Line11
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk133[11].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK133 := True;
	                                            #arLineBlk133[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk133[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk133[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection133Line12:
	                                REGION cSection133Line12
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk133[12].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK133 := True;
	                                            #arLineBlk133[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk133[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk133[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection133Line13:
	                                REGION cSection133Line13
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk133[13].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK133 := True;
	                                            #arLineBlk133[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk133[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk133[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection133Line14:
	                                REGION cSection133Line14
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk133[14].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK133 := True;
	                                            #arLineBlk133[14].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk133[14].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk133[14].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection133Line15:
	                                REGION cSection133Line15
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk133[15].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK133 := True;
	                                            #arLineBlk133[15].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk133[15].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk133[15].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection133Line16:
	                                REGION cSection133Line16
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk133[16].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK133 := True;
	                                            #arLineBlk133[16].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk133[16].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk133[16].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection133Line17:
	                                REGION cSection133Line17
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk133[17].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK133 := True;
	                                            #arLineBlk133[17].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk133[17].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk133[17].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection133Line18:
	                                REGION cSection133Line18
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk133[18].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK133 := True;
	                                            #arLineBlk133[18].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk133[18].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk133[18].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection133Line19:
	                                REGION cSection133Line19
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk133[19].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK133 := True;
	                                            #arLineBlk133[19].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk133[19].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk133[19].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection133Line20:
	                                REGION cSection133Line20
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk133[20].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK133 := True;
	                                            #arLineBlk133[20].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk133[20].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk133[20].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection133Line21:
	                                REGION cSection133Line21
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk133[21].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK133 := True;
	                                            #arLineBlk133[21].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk133[21].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk133[21].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection134Line01:
	                                REGION cSection134Line01
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk134[1].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK134 := True;
	                                            #arLineBlk134[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk134[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk134[1].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection134Line02:
	                                REGION cSection134Line02
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk134[2].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK134 := True;
	                                            #arLineBlk134[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk134[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk134[2].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection134Line03:
	                                REGION cSection134Line03
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk134[3].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK134 := True;
	                                            #arLineBlk134[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk134[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk134[3].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection134Line04:
	                                REGION cSection134Line04
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk134[4].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK134 := True;
	                                            #arLineBlk134[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk134[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk134[4].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection134Line05:
	                                REGION cSection134Line05
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk134[5].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK134 := True;
	                                            #arLineBlk134[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk134[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk134[5].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection134Line06:
	                                REGION cSection134Line06
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk134[6].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK134 := True;
	                                            #arLineBlk134[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk134[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk134[6].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection134Line07:
	                                REGION cSection134Line07
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk134[7].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK134 := True;
	                                            #arLineBlk134[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk134[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk134[7].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                                
	                            #cSection134Line08:
	                                REGION cSection134Line08
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk134[8].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK134 := True;
	                                            #arLineBlk134[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk134[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk134[8].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection134Line09:
	                                REGION cSection134Line09
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk134[9].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK134 := True;
	                                            #arLineBlk134[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk134[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk134[9].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection134Line10:
	                                REGION cSection134Line10
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk134[10].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK134 := True;
	                                            #arLineBlk134[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk134[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk134[10].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection134Line11:
	                                REGION cSection134Line11
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk134[11].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK134 := True;
	                                            #arLineBlk134[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk134[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk134[11].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection134Line12:
	                                REGION cSection134Line12
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk134[12].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK134 := True;
	                                            #arLineBlk134[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk134[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk134[12].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection134Line13:
	                                REGION cSection134Line13
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk134[13].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK134 := True;
	                                            #arLineBlk134[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk134[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk134[13].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection134Line14:
	                                REGION cSection134Line14
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk134[14].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK134 := True;
	                                            #arLineBlk134[14].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk134[14].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk134[14].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                                
	                            #cSection134Line15:
	                                REGION cSection134Line15
	                                    FOR #nSearchStorageDATAIdx := 1 TO "cNoPositions" DO
	                                        IF #arLineBlk134[15].arCarrier[#nSearchStorageDATAIdx].nBarcode = #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nBarcode
	                                        THEN
	                                            #str_StartBLKTimer.xStartBLK134 := True;
	                                            #arLineBlk134[15].arCarrier[#nSearchStorageDATAIdx].bStatus.%X5 := True;
	                                            IF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c01_AMR
	                                                
	                                            THEN
	                                                ;
	                                                #arLineBlk134[15].arCarrier[#nSearchStorageDATAIdx].bStatus.%X8 := True;
	                                            ELSIF #arrudt_InOut_MESPart[#n_StepTransferMESToBLk].nDestination = #c02_F2H
	                                            THEN
	                                                ;
	                                                #arLineBlk134[15].arCarrier[#nSearchStorageDATAIdx].bStatus.%X9 := True;
	                                            END_IF;
	                                        END_IF;
	                                        EXIT;
	                                        
	                                    END_FOR;
	                                END_REGION
	                        END_CASE;
	                        
	                        
	                        
	                    END_IF;
	                END_FOR;
	            END_REGION
	            
	            
	    END_CASE;
	    
	    
	    
	    
	END_REGION
	
	REGION Analyse Lines
	    REGION Block 11
	        //Nur Ausführen wenn Prozess nicht aktiv!!!!!!
	        
	        REGION Blk111
	            
	            #Lfb_Blk111LineAnalyze(arLineBlk:=#arLineBlk111,
	                                   str_OutState => #arrstr_InOut_FillingChart[#c111].udt_LineLvlBlk);
	            
	            
	            
	        END_REGION
	        
	        REGION Blk112
	            
	            #Lfb_Blk112LineAnalyze(arLineBlk:=#arLineBlk112,
	                                   str_OutState => #arrstr_InOut_FillingChart[#c112].udt_LineLvlBlk);
	            
	            
	        END_REGION
	        
	        REGION Blk113
	            
	            #Lfb_Blk113LineAnalyze(arLineBlk:=#arLineBlk113,
	                                   str_OutState => #arrstr_InOut_FillingChart[#c113].udt_LineLvlBlk);
	            
	            
	        END_REGION
	        
	        REGION Blk114
	            
	            #Lfb_Blk114LineAnalyze(arLineBlk:=#arLineBlk114,
	                                   str_OutState => #arrstr_InOut_FillingChart[#c114].udt_LineLvlBlk);
	            
	            
	        END_REGION
	    END_REGION
	    
	    REGION Block 12
	        REGION Blk121
	            
	            #Lfb_Blk121LineAnalyze(arLineBlk:=#arLineBlk121,
	                                   str_OutState => #arrstr_InOut_FillingChart[#c121].udt_LineLvlBlk);
	            
	            
	        END_REGION
	        
	        REGION Blk122
	            
	            #Lfb_Blk122LineAnalyze(arLineBlk:=#arLineBlk122,
	                                   str_OutState => #arrstr_InOut_FillingChart[#c122].udt_LineLvlBlk);
	            
	            
	        END_REGION
	        
	        REGION Blk123
	            
	            #Lfb_Blk123LineAnalyze(arLineBlk:=#arLineBlk123,
	                                   str_OutState => #arrstr_InOut_FillingChart[#c123].udt_LineLvlBlk);
	            
	            
	        END_REGION
	        
	        REGION Blk124
	            
	            #Lfb_Blk124LineAnalyze(arLineBlk:=#arLineBlk124,
	                                   str_OutState => #arrstr_InOut_FillingChart[#c124].udt_LineLvlBlk);
	            
	            
	        END_REGION
	    END_REGION
	    
	    REGION Block 13
	        REGION Blk131
	            
	            #Lfb_Blk131LineAnalyze(arLineBlk:=#arLineBlk131,
	                                   str_OutState => #arrstr_InOut_FillingChart[#c131].udt_LineLvlBlk);
	            
	            
	        END_REGION
	        
	        REGION Blk132
	            
	            #Lfb_Blk132LineAnalyze(arLineBlk:=#arLineBlk132,
	                                   str_OutState => #arrstr_InOut_FillingChart[#c132].udt_LineLvlBlk);
	            
	            
	        END_REGION
	        
	        REGION Blk133
	            
	            #Lfb_Blk133LineAnalyze(arLineBlk:=#arLineBlk133,
	                                   str_OutState => #arrstr_InOut_FillingChart[#c133].udt_LineLvlBlk);
	            
	            
	        END_REGION
	        
	        REGION Blk134
	            
	            #Lfb_Blk134LineAnalyze(arLineBlk:=#arLineBlk134,
	                                   str_OutState => #arrstr_InOut_FillingChart[#c134].udt_LineLvlBlk);
	            
	            
	        END_REGION
	        
	    END_REGION
	    
	END_REGION
	
	REGION Storage Block
	    // Prüfen welcher Block am meisten eingelagert hat und als nächstes auslagern muss
	    
	    #nMaxFilledBLK := #c111;
	    #nMaxFilledLine := #arrstr_InOut_FillingChart[#c111].udt_LineLvlBlk.arr_OrderLines[1];
	    
	    
	    IF #arrstr_InOut_FillingChart[#c112].udt_LineLvlBlk.arr_OrderLines[1] > #nMaxFilledBLK
	        AND ((#arLineBlk112[#arrstr_InOut_FillingChart[#c112].udt_LineLvlBlk.n_LineMAX].stData.Status.bByte AND #cLinieOK) = 0)
	    THEN
	        #nMaxFilledBLK := #c112;
	        #nMaxFilledLine := #arrstr_InOut_FillingChart[#c112].udt_LineLvlBlk.arr_OrderLines[1];
	        ;
	    END_IF;
	    
	    IF #arrstr_InOut_FillingChart[#c113].udt_LineLvlBlk.arr_OrderLines[1] > #nMaxFilledBLK
	        AND ((#arLineBlk113[#arrstr_InOut_FillingChart[#c113].udt_LineLvlBlk.n_LineMAX].stData.Status.bByte AND #cLinieOK) = 0)
	    THEN
	        #nMaxFilledBLK := #c113;
	        #nMaxFilledLine := #arrstr_InOut_FillingChart[#c113].udt_LineLvlBlk.arr_OrderLines[1];
	    END_IF;
	    
	    IF #arrstr_InOut_FillingChart[#c114].udt_LineLvlBlk.arr_OrderLines[1] > #nMaxFilledBLK
	        AND ((#arLineBlk114[#arrstr_InOut_FillingChart[#c114].udt_LineLvlBlk.n_LineMAX].stData.Status.bByte AND #cLinieOK) = 0)
	    THEN
	        #nMaxFilledBLK := #c114;
	        #nMaxFilledLine := #arrstr_InOut_FillingChart[#c114].udt_LineLvlBlk.arr_OrderLines[1];
	    END_IF;
	    
	    IF #arrstr_InOut_FillingChart[#c121].udt_LineLvlBlk.arr_OrderLines[1] > #nMaxFilledBLK
	        AND ((#arLineBlk121[#arrstr_InOut_FillingChart[#c121].udt_LineLvlBlk.n_LineMAX].stData.Status.bByte AND #cLinieOK) = 0)
	    THEN
	        #nMaxFilledBLK := #c121;
	        #nMaxFilledLine := #arrstr_InOut_FillingChart[#c121].udt_LineLvlBlk.arr_OrderLines[1];
	    END_IF;
	    
	    IF #arrstr_InOut_FillingChart[#c122].udt_LineLvlBlk.arr_OrderLines[1] > #nMaxFilledBLK
	        AND ((#arLineBlk122[#arrstr_InOut_FillingChart[#c122].udt_LineLvlBlk.n_LineMAX].stData.Status.bByte AND #cLinieOK) = 0)
	    THEN
	        #nMaxFilledBLK := #c122;
	        #nMaxFilledLine := #arrstr_InOut_FillingChart[#c122].udt_LineLvlBlk.arr_OrderLines[1];
	    END_IF;
	    
	    IF #arrstr_InOut_FillingChart[#c123].udt_LineLvlBlk.arr_OrderLines[1] > #nMaxFilledBLK
	        AND ((#arLineBlk123[#arrstr_InOut_FillingChart[#c123].udt_LineLvlBlk.n_LineMAX].stData.Status.bByte AND #cLinieOK) = 0)
	    THEN
	        #nMaxFilledBLK := #c123;
	        #nMaxFilledLine := #arrstr_InOut_FillingChart[#c123].udt_LineLvlBlk.arr_OrderLines[1];
	    END_IF;
	    
	    IF #arrstr_InOut_FillingChart[#c124].udt_LineLvlBlk.arr_OrderLines[1] > #nMaxFilledBLK
	        AND ((#arLineBlk124[#arrstr_InOut_FillingChart[#c124].udt_LineLvlBlk.n_LineMAX].stData.Status.bByte AND #cLinieOK) = 0)
	    THEN
	        #nMaxFilledBLK := #c124;
	        #nMaxFilledLine := #arrstr_InOut_FillingChart[#c124].udt_LineLvlBlk.arr_OrderLines[1];
	    END_IF;
	    
	    IF #arrstr_InOut_FillingChart[#c131].udt_LineLvlBlk.arr_OrderLines[1] > #nMaxFilledBLK
	        AND ((#arLineBlk131[#arrstr_InOut_FillingChart[#c131].udt_LineLvlBlk.n_LineMAX].stData.Status.bByte AND #cLinieOK) = 0)
	    THEN
	        #nMaxFilledBLK := #c131;
	        #nMaxFilledLine := #arrstr_InOut_FillingChart[#c131].udt_LineLvlBlk.arr_OrderLines[1];
	    END_IF;
	    
	    IF #arrstr_InOut_FillingChart[#c132].udt_LineLvlBlk.arr_OrderLines[1] > #nMaxFilledBLK
	        AND ((#arLineBlk132[#arrstr_InOut_FillingChart[#c132].udt_LineLvlBlk.n_LineMAX].stData.Status.bByte AND #cLinieOK) = 0)
	    THEN
	        #nMaxFilledBLK := #c132;
	        #nMaxFilledLine := #arrstr_InOut_FillingChart[#c132].udt_LineLvlBlk.arr_OrderLines[1];
	    END_IF;
	    
	    IF #arrstr_InOut_FillingChart[#c133].udt_LineLvlBlk.arr_OrderLines[1] > #nMaxFilledBLK
	        AND ((#arLineBlk133[#arrstr_InOut_FillingChart[#c133].udt_LineLvlBlk.n_LineMAX].stData.Status.bByte AND #cLinieOK) = 0)
	    THEN
	        #nMaxFilledBLK := #c133;
	        #nMaxFilledLine := #arrstr_InOut_FillingChart[#c133].udt_LineLvlBlk.arr_OrderLines[1];
	    END_IF;
	    
	    IF #arrstr_InOut_FillingChart[#c134].udt_LineLvlBlk.arr_OrderLines[1] > #nMaxFilledBLK
	        AND ((#arLineBlk134[#arrstr_InOut_FillingChart[#c134].udt_LineLvlBlk.n_LineMAX].stData.Status.bByte AND #cLinieOK) = 0)
	    THEN
	        #nMaxFilledBLK := #c134;
	        #nMaxFilledLine := #arrstr_InOut_FillingChart[#c134].udt_LineLvlBlk.arr_OrderLines[1];
	    END_IF;
	    
	END_REGION
	
	
	REGION Enable Block
	    
	    REGION Storage Block 
	        #udt_InOutStorageBlockSequencerData.arrudt_Storage[1].udt_RearrangeStorageCtrl.xEnableReaarrange :=
	        #udt_InOutStorageBlockSequencerData.arrudt_Storage[1].udt_RearrangeStorageCtrl.xEnableRemove :=
	        NOT #stStorage111BlockData.xError;
	        
	        #udt_InOutStorageBlockSequencerData.arrudt_Storage[2].udt_RearrangeStorageCtrl.xEnableReaarrange :=
	        #udt_InOutStorageBlockSequencerData.arrudt_Storage[2].udt_RearrangeStorageCtrl.xEnableRemove :=
	        NOT #stStorage112BlockData.xError;
	        
	        #udt_InOutStorageBlockSequencerData.arrudt_Storage[3].udt_RearrangeStorageCtrl.xEnableReaarrange :=
	        #udt_InOutStorageBlockSequencerData.arrudt_Storage[3].udt_RearrangeStorageCtrl.xEnableRemove :=
	        NOT #stStorage113BlockData.xError;
	        
	        #udt_InOutStorageBlockSequencerData.arrudt_Storage[4].udt_RearrangeStorageCtrl.xEnableReaarrange :=
	        #udt_InOutStorageBlockSequencerData.arrudt_Storage[4].udt_RearrangeStorageCtrl.xEnableRemove :=
	        NOT #stStorage114BlockData.xError;
	        
	        #udt_InOutStorageBlockSequencerData.arrudt_Storage[5].udt_RearrangeStorageCtrl.xEnableReaarrange :=
	        #udt_InOutStorageBlockSequencerData.arrudt_Storage[5].udt_RearrangeStorageCtrl.xEnableRemove :=
	        NOT #stStorage121BlockData.xError;
	        
	        #udt_InOutStorageBlockSequencerData.arrudt_Storage[6].udt_RearrangeStorageCtrl.xEnableReaarrange :=
	        #udt_InOutStorageBlockSequencerData.arrudt_Storage[6].udt_RearrangeStorageCtrl.xEnableRemove :=
	        NOT #stStorage122BlockData.xError;
	        
	        #udt_InOutStorageBlockSequencerData.arrudt_Storage[7].udt_RearrangeStorageCtrl.xEnableReaarrange :=
	        #udt_InOutStorageBlockSequencerData.arrudt_Storage[7].udt_RearrangeStorageCtrl.xEnableRemove :=
	        NOT #stStorage123BlockData.xError;
	        
	        #udt_InOutStorageBlockSequencerData.arrudt_Storage[8].udt_RearrangeStorageCtrl.xEnableReaarrange :=
	        #udt_InOutStorageBlockSequencerData.arrudt_Storage[8].udt_RearrangeStorageCtrl.xEnableRemove :=
	        NOT #stStorage124BlockData.xError;
	        
	        #udt_InOutStorageBlockSequencerData.arrudt_Storage[9].udt_RearrangeStorageCtrl.xEnableReaarrange :=
	        #udt_InOutStorageBlockSequencerData.arrudt_Storage[9].udt_RearrangeStorageCtrl.xEnableRemove :=
	        NOT #stStorage131BlockData.xError;
	        
	        #udt_InOutStorageBlockSequencerData.arrudt_Storage[10].udt_RearrangeStorageCtrl.xEnableReaarrange :=
	        #udt_InOutStorageBlockSequencerData.arrudt_Storage[10].udt_RearrangeStorageCtrl.xEnableRemove :=
	        NOT #stStorage132BlockData.xError;
	        
	        #udt_InOutStorageBlockSequencerData.arrudt_Storage[11].udt_RearrangeStorageCtrl.xEnableReaarrange :=
	        #udt_InOutStorageBlockSequencerData.arrudt_Storage[11].udt_RearrangeStorageCtrl.xEnableRemove :=
	        NOT #stStorage133BlockData.xError;
	        
	        #udt_InOutStorageBlockSequencerData.arrudt_Storage[12].udt_RearrangeStorageCtrl.xEnableReaarrange :=
	        #udt_InOutStorageBlockSequencerData.arrudt_Storage[12].udt_RearrangeStorageCtrl.xEnableRemove :=
	        NOT #stStorage134BlockData.xError;
	        
	    END_REGION
	    REGION Enable Block Group
	        
	        #udt_InOutStorageBlockSequencerData.arrudt_BlockGroup[1].udt_BlockGroupCtrl.xReadyRearrange :=
	        #udt_InOutStorageBlockSequencerData.arrudt_BlockGroup[1].udt_BlockGroupCtrl.xReadyRemove :=
	        NOT #stStorage111BlockData.xError AND NOT #stStorage112BlockData.xError
	        AND NOT #stStorage113BlockData.xError AND NOT #stStorage114BlockData.xError;
	        
	        #udt_InOutStorageBlockSequencerData.arrudt_BlockGroup[2].udt_BlockGroupCtrl.xReadyRearrange :=
	        #udt_InOutStorageBlockSequencerData.arrudt_BlockGroup[2].udt_BlockGroupCtrl.xReadyRemove :=
	        NOT #stStorage121BlockData.xError AND NOT #stStorage122BlockData.xError
	        AND NOT #stStorage123BlockData.xError AND NOT #stStorage124BlockData.xError;
	        
	        #udt_InOutStorageBlockSequencerData.arrudt_BlockGroup[3].udt_BlockGroupCtrl.xReadyRearrange :=
	        #udt_InOutStorageBlockSequencerData.arrudt_BlockGroup[3].udt_BlockGroupCtrl.xReadyRemove :=
	        NOT #stStorage131BlockData.xError AND NOT #stStorage132BlockData.xError
	        AND NOT #stStorage133BlockData.xError AND NOT #stStorage134BlockData.xError;
	        
	    END_REGION
	    
	    
	END_REGION
	
	REGION Rearrange Start Coordinator
	    
	    //Start Telegramm/Timer Mapping
	    //
	    //Zum Testen deaktiviert
	    //
	    // #udt_InOutStorageBlockSequencerData.arrudt_Storage[1].udt_RearrangeStorageCtrl.xMarkPulse := #str_StartBLKTimer.xStartBLK211;
	    // #udt_InOutStorageBlockSequencerData.arrudt_Storage[2].udt_RearrangeStorageCtrl.xMarkPulse := #str_StartBLKTimer.xStartBLK212;
	    // #udt_InOutStorageBlockSequencerData.arrudt_Storage[3].udt_RearrangeStorageCtrl.xMarkPulse := #str_StartBLKTimer.xStartBLK213;
	    // #udt_InOutStorageBlockSequencerData.arrudt_Storage[4].udt_RearrangeStorageCtrl.xMarkPulse := #str_StartBLKTimer.xStartBLK214;
	    // #udt_InOutStorageBlockSequencerData.arrudt_Storage[5].udt_RearrangeStorageCtrl.xMarkPulse := #str_StartBLKTimer.xStartBLK221;
	    // #udt_InOutStorageBlockSequencerData.arrudt_Storage[6].udt_RearrangeStorageCtrl.xMarkPulse := #str_StartBLKTimer.xStartBLK222;
	    // #udt_InOutStorageBlockSequencerData.arrudt_Storage[7].udt_RearrangeStorageCtrl.xMarkPulse := #str_StartBLKTimer.xStartBLK223;
	    // #udt_InOutStorageBlockSequencerData.arrudt_Storage[8].udt_RearrangeStorageCtrl.xMarkPulse := #str_StartBLKTimer.xStartBLK224;
	    // #udt_InOutStorageBlockSequencerData.arrudt_Storage[9].udt_RearrangeStorageCtrl.xMarkPulse := #str_StartBLKTimer.xStartBLK231;
	    // #udt_InOutStorageBlockSequencerData.arrudt_Storage[10].udt_RearrangeStorageCtrl.xMarkPulse := #str_StartBLKTimer.xStartBLK232;
	    // #udt_InOutStorageBlockSequencerData.arrudt_Storage[11].udt_RearrangeStorageCtrl.xMarkPulse := #str_StartBLKTimer.xStartBLK233;
	    // #udt_InOutStorageBlockSequencerData.arrudt_Storage[12].udt_RearrangeStorageCtrl.xMarkPulse := #str_StartBLKTimer.xStartBLK234;
	    
	    #Lfb_RearrangeStartCoordinator(xInReset := #x_Reset_Muss_Noch_Aufgelgt_Werden,
	                                   xInRearrangeStartDelay := T#10s,
	                                   udt_InOutStorageSite := #udt_InOutStorageBlockSequencerData);
	    
	    
	    //Reset start Timer
	    #str_StartBLKTimer.xStartBLK111 := false;
	    #str_StartBLKTimer.xStartBLK112 := False;
	    #str_StartBLKTimer.xStartBLK113 := False;
	    #str_StartBLKTimer.xStartBLK114 := False;
	    #str_StartBLKTimer.xStartBLK121 := False;
	    #str_StartBLKTimer.xStartBLK122 := False;
	    #str_StartBLKTimer.xStartBLK123 := False;
	    #str_StartBLKTimer.xStartBLK124 := False;
	    #str_StartBLKTimer.xStartBLK131 := False;
	    #str_StartBLKTimer.xStartBLK132 := False;
	    #str_StartBLKTimer.xStartBLK133 := False;
	    #str_StartBLKTimer.xStartBLK134 := False;
	    
	END_REGION
	
	REGION Rearrange Sequencer
	    
	    #Lfb_BlkGrp1RearrangeSeq(x_In_Reset := #x_Reset_Muss_Noch_Aufgelgt_Werden,
	                             udt_InOutStorageSite := #udt_InOutStorageBlockSequencerData,
	                             n_In_BlockID := 1);
	    
	    #Lfb_BlkGrp2RearrangeSeq(x_In_Reset := #x_Reset_Muss_Noch_Aufgelgt_Werden,
	                             udt_InOutStorageSite := #udt_InOutStorageBlockSequencerData,
	                             n_In_BlockID := 2);
	    
	    #Lfb_BlkGrp3RearrangeSeq(x_In_Reset := #x_Reset_Muss_Noch_Aufgelgt_Werden,
	                             udt_InOutStorageSite := #udt_InOutStorageBlockSequencerData,
	                             n_In_BlockID := 3);
	END_REGION
	
	REGION Remove Sequencer
	    
	    #Lfb_StockRemoveSequencer(xReset := #x_Reset_Muss_Noch_Aufgelgt_Werden,
	                              nMaxEmptyBLK := #nMaxEmptyBLK,
	                              nMaxEmptyLine := #nMaxEmptyLine,
	                              udt_In_CarrierNeeded := "DB_HandshakeStorage".Str_StorageRemoval.udt_CarrierNeeded,
	                              udt_InOutStorageSite := #udt_InOutStorageBlockSequencerData);
	    
	    
	END_REGION
	
	
	
	REGION Call Block Modules
	    
	    REGION Storage 111
	        // Storage 111
	        #Lfb_StockRemovalBlk111(n_InBlkID := 111,
	                                x_InStartBlk := #str_StartBLKTimer.xStartBLK111,
	                                x_InQuit := #x_InQuit,
	                                n_JamCountAMR:=#n_JamCountAMR,
	                                n_JamCapacityAMRCriticalAmount := #n_JamCapacityAMRCriticalAmount,
	                                n_JamCountF2H:=#n_JamCountF2H,
	                                n_JamCapacityF2HCriticalAmount := #n_JamCapacityF2HCriticalAmount,
	                                n_JamCapacityEmpty := #n_JamCapacityEmpty,
	                                n_JamCapacityEmptyCriticalAmount := #n_JamCapacityEmptyCriticalAmount,
	                                sIn_ObjectName := 'Blk 111',
	                                n_In_LagerIndex:=1,
	                                udt_CarrierNeeded:="DB_HandshakeStorage".Str_StorageRemoval.udt_CarrierNeeded,
	                                arLineBlk:=#arLineBlk111,
	                                arrJamCarrier:=#stIn_JamCarrierBlock1.stIn_JamCarrier1103.udt_JamCarrier1103_1.arCarrier,
	                                str_InOut_FillingChart := #arrstr_InOut_FillingChart[#c111],
	                                str_InOut_EmptyChart := #arrstr_InOut_EmptyChart[#c111],
	                                udt_InOutMFRTRO := #arrudt_InOutMFRTRO[#c111],
	                                udt_HMI := #arrudt_HMILines[#c111],
	                                udt_InOutHandshakeMessageToMes := #udt_InOutMessageToMesBlk111,
	                                udt_InOutStorageSite:=#udt_InOutStorageBlockSequencerData);
	        
	        
	    END_REGION
	    
	    REGION Storage 112
	        // Storage 112
	        #Lfb_StockRemovalBlk112(n_InBlkID := 112,
	                                x_InStartBlk := #str_StartBLKTimer.xStartBLK112,
	                                x_InQuit := #x_InQuit,
	                                n_JamCountAMR:=#n_JamCountAMR,
	                                n_JamCapacityAMRCriticalAmount := #n_JamCapacityAMRCriticalAmount,
	                                n_JamCountF2H:=#n_JamCountF2H,
	                                n_JamCapacityF2HCriticalAmount := #n_JamCapacityF2HCriticalAmount,
	                                n_JamCapacityEmpty := #n_JamCapacityEmpty,
	                                n_JamCapacityEmptyCriticalAmount := #n_JamCapacityEmptyCriticalAmount,
	                                sIn_ObjectName := 'Blk 112',
	                                n_In_LagerIndex:=2,
	                                udt_CarrierNeeded:="DB_HandshakeStorage".Str_StorageRemoval.udt_CarrierNeeded,
	                                arLineBlk:=#arLineBlk112,
	                                arrJamCarrier:=#stIn_JamCarrierBlock1.stIn_JamCarrier1103.udt_JamCarrier1103_2.arCarrier,
	                                str_InOut_FillingChart := #arrstr_InOut_FillingChart[#c112],
	                                str_InOut_EmptyChart := #arrstr_InOut_EmptyChart[#c112],
	                                udt_InOutMFRTRO := #arrudt_InOutMFRTRO[#c112],
	                                udt_HMI := #arrudt_HMILines[#c112],
	                                udt_InOutHandshakeMessageToMes := #udt_InOutMessageToMesBlk112,
	                                udt_InOutStorageSite:=#udt_InOutStorageBlockSequencerData);
	        
	        
	        
	        
	        
	        
	        
	        
	        
	    END_REGION
	    
	    
	    REGION Storage 113
	        // Storage 113
	        #Lfb_StockRemovalBlk113(n_InBlkID := 113,
	                                x_InStartBlk := #str_StartBLKTimer.xStartBLK113,
	                                x_InQuit := #x_InQuit,
	                                n_JamCountAMR:=#n_JamCountAMR,
	                                n_JamCapacityAMRCriticalAmount := #n_JamCapacityAMRCriticalAmount,
	                                n_JamCountF2H:=#n_JamCountF2H,
	                                n_JamCapacityF2HCriticalAmount := #n_JamCapacityF2HCriticalAmount,
	                                n_JamCapacityEmpty := #n_JamCapacityEmpty,
	                                n_JamCapacityEmptyCriticalAmount := #n_JamCapacityEmptyCriticalAmount,
	                                sIn_ObjectName := 'Blk 113',
	                                n_In_LagerIndex:=3,
	                                udt_CarrierNeeded:="DB_HandshakeStorage".Str_StorageRemoval.udt_CarrierNeeded,
	                                arLineBlk:=#arLineBlk113,
	                                arrJamCarrier:=#stIn_JamCarrierBlock1.stIn_JamCarrier1104.udt_JamCarrier1104_2.arCarrier,
	                                str_InOut_FillingChart := #arrstr_InOut_FillingChart[#c113],
	                                str_InOut_EmptyChart := #arrstr_InOut_EmptyChart[#c113],
	                                udt_InOutMFRTRO := #arrudt_InOutMFRTRO[#c113],
	                                udt_HMI := #arrudt_HMILines[#c113],
	                                udt_InOutHandshakeMessageToMes := #udt_InOutMessageToMesBlk113,
	                                udt_InOutStorageSite:=#udt_InOutStorageBlockSequencerData);
	        
	        
	        
	        
	        
	        
	        
	        
	        
	    END_REGION
	    
	    REGION Storage 114
	        // Storage 114
	        #Lfb_StockRemovalBlk114(n_InBlkID := 114,
	                                x_InStartBlk := #str_StartBLKTimer.xStartBLK114,
	                                x_InQuit := #x_InQuit,
	                                n_JamCountAMR:=#n_JamCountAMR,
	                                n_JamCapacityAMRCriticalAmount := #n_JamCapacityAMRCriticalAmount,
	                                n_JamCountF2H:=#n_JamCountF2H,
	                                n_JamCapacityF2HCriticalAmount := #n_JamCapacityF2HCriticalAmount,
	                                n_JamCapacityEmpty := #n_JamCapacityEmpty,
	                                n_JamCapacityEmptyCriticalAmount := #n_JamCapacityEmptyCriticalAmount,
	                                sIn_ObjectName := 'Blk 114',
	                                n_In_LagerIndex:=4,
	                                udt_CarrierNeeded:="DB_HandshakeStorage".Str_StorageRemoval.udt_CarrierNeeded,
	                                arLineBlk:=#arLineBlk114,
	                                arrJamCarrier:=#stIn_JamCarrierBlock1.stIn_JamCarrier1104.udt_JamCarrier1104_1.arCarrier,
	                                str_InOut_FillingChart := #arrstr_InOut_FillingChart[#c114],
	                                str_InOut_EmptyChart := #arrstr_InOut_EmptyChart[#c114],
	                                udt_InOutMFRTRO := #arrudt_InOutMFRTRO[#c114],
	                                udt_HMI := #arrudt_HMILines[#c114],
	                                udt_InOutHandshakeMessageToMes := #udt_InOutMessageToMesBlk114,
	                                udt_InOutStorageSite:=#udt_InOutStorageBlockSequencerData);
	        
	        
	        
	        
	        
	        
	        
	        
	        
	    END_REGION
	    
	    REGION Storage 121
	        // Storage 121
	        #Lfb_StockRemovalBlk121(n_InBlkID := 121,
	                                x_InStartBlk := #str_StartBLKTimer.xStartBLK121,
	                                x_InQuit := #x_InQuit,
	                                n_JamCountAMR:=#n_JamCountAMR,
	                                n_JamCapacityAMRCriticalAmount := #n_JamCapacityAMRCriticalAmount,
	                                n_JamCountF2H:=#n_JamCountF2H,
	                                n_JamCapacityF2HCriticalAmount := #n_JamCapacityF2HCriticalAmount,
	                                n_JamCapacityEmpty := #n_JamCapacityEmpty,
	                                n_JamCapacityEmptyCriticalAmount := #n_JamCapacityEmptyCriticalAmount,
	                                sIn_ObjectName := 'Blk 121',
	                                n_In_LagerIndex:=5,
	                                udt_CarrierNeeded:="DB_HandshakeStorage".Str_StorageRemoval.udt_CarrierNeeded,
	                                arLineBlk:=#arLineBlk121,
	                                arrJamCarrier:=#stIn_JamCarrierBlock2.stIn_JamCarrier1203.udt_JamCarrier1203_1.arCarrier,
	                                str_InOut_FillingChart := #arrstr_InOut_FillingChart[#c121],
	                                str_InOut_EmptyChart := #arrstr_InOut_EmptyChart[#c121],
	                                udt_InOutMFRTRO := #arrudt_InOutMFRTRO[#c121],
	                                udt_HMI := #arrudt_HMILines[#c121],
	                                udt_InOutHandshakeMessageToMes := #udt_InOutMessageToMesBlk121,
	                                udt_InOutStorageSite:=#udt_InOutStorageBlockSequencerData);
	        
	        
	        
	        
	        
	        
	        
	        
	        
	    END_REGION
	    
	    
	    REGION Storage 122
	        // Storage 122
	        #Lfb_StockRemovalBlk122(n_InBlkID := 122,
	                                x_InStartBlk := #str_StartBLKTimer.xStartBLK122,
	                                x_InQuit := #x_InQuit,
	                                n_JamCountAMR:=#n_JamCountAMR,
	                                n_JamCapacityAMRCriticalAmount := #n_JamCapacityAMRCriticalAmount,
	                                n_JamCountF2H:=#n_JamCountF2H,
	                                n_JamCapacityF2HCriticalAmount := #n_JamCapacityF2HCriticalAmount,
	                                n_JamCapacityEmpty := #n_JamCapacityEmpty,
	                                n_JamCapacityEmptyCriticalAmount := #n_JamCapacityEmptyCriticalAmount,
	                                sIn_ObjectName := 'Blk 122',
	                                n_In_LagerIndex:=6,
	                                udt_CarrierNeeded:="DB_HandshakeStorage".Str_StorageRemoval.udt_CarrierNeeded,
	                                arLineBlk:=#arLineBlk122,
	                                arrJamCarrier:=#stIn_JamCarrierBlock2.stIn_JamCarrier1203.udt_JamCarrier1203_2.arCarrier,
	                                str_InOut_FillingChart := #arrstr_InOut_FillingChart[#c122],
	                                str_InOut_EmptyChart := #arrstr_InOut_EmptyChart[#c122],
	                                udt_InOutMFRTRO := #arrudt_InOutMFRTRO[#c122],
	                                udt_HMI := #arrudt_HMILines[#c122],
	                                udt_InOutHandshakeMessageToMes := #udt_InOutMessageToMesBlk122,
	                                udt_InOutStorageSite:=#udt_InOutStorageBlockSequencerData);
	        
	        
	        
	        
	        
	        
	        
	        
	    END_REGION
	    
	    
	    REGION Storage 123
	        // Storage 123
	        #Lfb_StockRemovalBlk123(n_InBlkID := 123,
	                                x_InStartBlk := #str_StartBLKTimer.xStartBLK123,
	                                x_InQuit := #x_InQuit,
	                                n_JamCountAMR:=#n_JamCountAMR,
	                                n_JamCapacityAMRCriticalAmount := #n_JamCapacityAMRCriticalAmount,
	                                n_JamCountF2H:=#n_JamCountF2H,
	                                n_JamCapacityF2HCriticalAmount := #n_JamCapacityF2HCriticalAmount,
	                                n_JamCapacityEmpty := #n_JamCapacityEmpty,
	                                n_JamCapacityEmptyCriticalAmount := #n_JamCapacityEmptyCriticalAmount,
	                                sIn_ObjectName := 'Blk 123',
	                                n_In_LagerIndex:=7,
	                                udt_CarrierNeeded:="DB_HandshakeStorage".Str_StorageRemoval.udt_CarrierNeeded,
	                                arLineBlk:=#arLineBlk123,
	                                arrJamCarrier:=#stIn_JamCarrierBlock2.stIn_JamCarrier1204.udt_JamCarrier1204_2.arCarrier,
	                                str_InOut_FillingChart := #arrstr_InOut_FillingChart[#c123],
	                                str_InOut_EmptyChart := #arrstr_InOut_EmptyChart[#c123],
	                                udt_InOutMFRTRO := #arrudt_InOutMFRTRO[#c123],
	                                udt_HMI := #arrudt_HMILines[#c123],
	                                udt_InOutHandshakeMessageToMes := #udt_InOutMessageToMesBlk123,
	                                udt_InOutStorageSite:=#udt_InOutStorageBlockSequencerData);
	        
	        
	        
	        
	        
	        
	        
	        
	        
	    END_REGION
	    
	    REGION Storage 124
	        // Storage 124
	        #Lfb_StockRemovalBlk124(n_InBlkID := 124,
	                                x_InStartBlk := #str_StartBLKTimer.xStartBLK124,
	                                x_InQuit := #x_InQuit,
	                                n_JamCountAMR:=#n_JamCountAMR,
	                                n_JamCapacityAMRCriticalAmount := #n_JamCapacityAMRCriticalAmount,
	                                n_JamCountF2H:=#n_JamCountF2H,
	                                n_JamCapacityF2HCriticalAmount := #n_JamCapacityF2HCriticalAmount,
	                                n_JamCapacityEmpty := #n_JamCapacityEmpty,
	                                n_JamCapacityEmptyCriticalAmount := #n_JamCapacityEmptyCriticalAmount,
	                                sIn_ObjectName := 'Blk 124',
	                                n_In_LagerIndex:=8,
	                                udt_CarrierNeeded:="DB_HandshakeStorage".Str_StorageRemoval.udt_CarrierNeeded,
	                                arLineBlk:=#arLineBlk124,
	                                arrJamCarrier:=#stIn_JamCarrierBlock2.stIn_JamCarrier1204.udt_JamCarrier1204_1.arCarrier,
	                                str_InOut_FillingChart := #arrstr_InOut_FillingChart[#c124],
	                                str_InOut_EmptyChart := #arrstr_InOut_EmptyChart[#c124],
	                                udt_InOutMFRTRO := #arrudt_InOutMFRTRO[#c124],
	                                udt_HMI := #arrudt_HMILines[#c124],
	                                udt_InOutHandshakeMessageToMes := #udt_InOutMessageToMesBlk124,
	                                udt_InOutStorageSite:=#udt_InOutStorageBlockSequencerData);
	        
	        
	        
	        
	        
	        
	        
	        
	    END_REGION
	    
	    REGION Storage 131
	        // Storage 131
	        #Lfb_StockRemovalBlk131(n_InBlkID := 131,
	                                x_InStartBlk := #str_StartBLKTimer.xStartBLK131,
	                                x_InQuit := #x_InQuit,
	                                n_JamCountAMR:=#n_JamCountAMR,
	                                n_JamCapacityAMRCriticalAmount := #n_JamCapacityAMRCriticalAmount,
	                                n_JamCountF2H:=#n_JamCountF2H,
	                                n_JamCapacityF2HCriticalAmount := #n_JamCapacityF2HCriticalAmount,
	                                n_JamCapacityEmpty := #n_JamCapacityEmpty,
	                                n_JamCapacityEmptyCriticalAmount := #n_JamCapacityEmptyCriticalAmount,
	                                sIn_ObjectName := 'Blk 131',
	                                n_In_LagerIndex:=9,
	                                udt_CarrierNeeded:="DB_HandshakeStorage".Str_StorageRemoval.udt_CarrierNeeded,
	                                arLineBlk:=#arLineBlk131,
	                                arrJamCarrier:=#stIn_JamCarrierBlock3.stIn_JamCarrier1301.udt_JamCarrier1301_1.arCarrier,
	                                str_InOut_FillingChart := #arrstr_InOut_FillingChart[#c131],
	                                str_InOut_EmptyChart := #arrstr_InOut_EmptyChart[#c131],
	                                udt_InOutMFRTRO := #arrudt_InOutMFRTRO[#c131],
	                                udt_HMI := #arrudt_HMILines[#c131],
	                                udt_InOutHandshakeMessageToMes := #udt_InOutMessageToMesBlk131,
	                                udt_InOutStorageSite:=#udt_InOutStorageBlockSequencerData);
	        
	        
	        
	        
	        
	        
	        
	        
	        
	    END_REGION
	    
	    REGION Storage 132
	        // Storage 132
	        #Lfb_StockRemovalBlk132(n_InBlkID := 132,
	                                x_InStartBlk := #str_StartBLKTimer.xStartBLK132,
	                                x_InQuit := #x_InQuit,
	                                n_JamCountAMR:=#n_JamCountAMR,
	                                n_JamCapacityAMRCriticalAmount := #n_JamCapacityAMRCriticalAmount,
	                                n_JamCountF2H:=#n_JamCountF2H,
	                                n_JamCapacityF2HCriticalAmount := #n_JamCapacityF2HCriticalAmount,
	                                n_JamCapacityEmpty := #n_JamCapacityEmpty,
	                                n_JamCapacityEmptyCriticalAmount := #n_JamCapacityEmptyCriticalAmount,
	                                sIn_ObjectName := 'Blk 132',
	                                n_In_LagerIndex:=10,
	                                udt_CarrierNeeded:="DB_HandshakeStorage".Str_StorageRemoval.udt_CarrierNeeded,
	                                arLineBlk:=#arLineBlk132,
	                                arrJamCarrier:=#stIn_JamCarrierBlock3.stIn_JamCarrier1301.udt_JamCarrier1301_2.arCarrier,
	                                str_InOut_FillingChart := #arrstr_InOut_FillingChart[#c132],
	                                str_InOut_EmptyChart := #arrstr_InOut_EmptyChart[#c132],
	                                udt_InOutMFRTRO := #arrudt_InOutMFRTRO[#c132],
	                                udt_HMI := #arrudt_HMILines[#c132],
	                                udt_InOutHandshakeMessageToMes := #udt_InOutMessageToMesBlk132,
	                                udt_InOutStorageSite:=#udt_InOutStorageBlockSequencerData);
	        
	        
	        
	        
	        
	        
	        
	        
	        
	    END_REGION
	    
	    REGION Storage 133
	        // Storage 133
	        #Lfb_StockRemovalBlk133(n_InBlkID := 133,
	                                x_InStartBlk := #str_StartBLKTimer.xStartBLK133,
	                                x_InQuit := #x_InQuit,
	                                n_JamCountAMR:=#n_JamCountAMR,
	                                n_JamCapacityAMRCriticalAmount := #n_JamCapacityAMRCriticalAmount,
	                                n_JamCountF2H:=#n_JamCountF2H,
	                                n_JamCapacityF2HCriticalAmount := #n_JamCapacityF2HCriticalAmount,
	                                n_JamCapacityEmpty := #n_JamCapacityEmpty,
	                                n_JamCapacityEmptyCriticalAmount := #n_JamCapacityEmptyCriticalAmount,
	                                sIn_ObjectName := 'Blk 133',
	                                n_In_LagerIndex:=11,
	                                udt_CarrierNeeded:="DB_HandshakeStorage".Str_StorageRemoval.udt_CarrierNeeded,
	                                arLineBlk:=#arLineBlk133,
	                                arrJamCarrier:=#stIn_JamCarrierBlock3.stIn_JamCarrier1302.udt_JamCarrier1302_2.arCarrier,
	                                str_InOut_FillingChart := #arrstr_InOut_FillingChart[#c133],
	                                str_InOut_EmptyChart := #arrstr_InOut_EmptyChart[#c133],
	                                udt_InOutMFRTRO := #arrudt_InOutMFRTRO[#c133],
	                                udt_HMI := #arrudt_HMILines[#c133],
	                                udt_InOutHandshakeMessageToMes := #udt_InOutMessageToMesBlk133,
	                                udt_InOutStorageSite:=#udt_InOutStorageBlockSequencerData);
	        
	        
	        
	        
	        
	        
	        
	        
	        
	    END_REGION
	    
	    REGION Storage 134
	        // Storage 134
	        #Lfb_StockRemovalBlk134(n_InBlkID := 134,
	                                x_InStartBlk := #str_StartBLKTimer.xStartBLK134,
	                                x_InQuit := #x_InQuit,
	                                n_JamCountAMR:=#n_JamCountAMR,
	                                n_JamCapacityAMRCriticalAmount := #n_JamCapacityAMRCriticalAmount,
	                                n_JamCountF2H:=#n_JamCountF2H,
	                                n_JamCapacityF2HCriticalAmount := #n_JamCapacityF2HCriticalAmount,
	                                n_JamCapacityEmpty := #n_JamCapacityEmpty,
	                                n_JamCapacityEmptyCriticalAmount := #n_JamCapacityEmptyCriticalAmount,
	                                sIn_ObjectName := 'Blk 134',
	                                n_In_LagerIndex:=12,
	                                udt_CarrierNeeded:="DB_HandshakeStorage".Str_StorageRemoval.udt_CarrierNeeded,
	                                arLineBlk:=#arLineBlk134,
	                                arrJamCarrier:=#stIn_JamCarrierBlock3.stIn_JamCarrier1302.udt_JamCarrier1302_1.arCarrier,
	                                str_InOut_FillingChart := #arrstr_InOut_FillingChart[#c134],
	                                str_InOut_EmptyChart := #arrstr_InOut_EmptyChart[#c134],
	                                udt_InOutMFRTRO := #arrudt_InOutMFRTRO[#c134],
	                                udt_HMI := #arrudt_HMILines[#c134],
	                                udt_InOutHandshakeMessageToMes := #udt_InOutMessageToMesBlk134,
	                                udt_InOutStorageSite:=#udt_InOutStorageBlockSequencerData);
	        
	        
	        
	        
	        
	        
	        
	        
	    END_REGION
	    
	END_REGION
	(*
	REGION Storage Block Handling
	    
	    CASE #n_BlockManegementSequence OF
	            
	        #c0000_Wait:
	            //Action
	            #nMaxFilledBLKSAve := #c0_Reset;
	            #nMaxEmptyBLKSave := #c0_Reset;
	            FOR #n_StartResetIDX := 1 TO 12 DO
	                #arrudt_InOutHandshake[#n_StartResetIDX].str_Ctrl.b_Start := FALSE;
	                #arrudt_InOutHandshake[#n_StartResetIDX].str_Ctrl.b_RemoveRelease := False;
	            END_FOR;
	            //Transition
	            IF #tonr_StartRemoval.Q OR #n_JamCountAMR < #n_JamCapacityAMRCriticalAmount
	                OR #n_JamCapacityEmpty < #n_JamCapacityEmptyCriticalAmount
	            THEN
	                #n_BlockManegementSequence := #c0010_CheckSituation;
	            END_IF;
	            
	        #c0010_CheckSituation:
	            //Action
	            
	            #nMaxFilledBLKSAve := #nMaxFilledBLK;
	            
	            //Transition
	            IF #n_JamCapacityEmpty < #n_JamCapacityEmptyCriticalAmount
	                
	            THEN
	                #n_BlockManegementSequence := #c0015_StartEmptyCarrierRemoval;
	            ELSE
	                #n_BlockManegementSequence := #c0020_StartCarrierRemoval;
	            END_IF;
	            
	            
	        #c0015_StartEmptyCarrierRemoval:
	            //Action
	            #nMaxEmptyBLKSave := #nMaxEmptyBLK;
	            #arrudt_InOutHandshake[#nMaxEmptyBLKSave].str_Ctrl.b_Start := True;
	            #arrudt_InOutHandshake[#nMaxEmptyBLKSave].str_Ctrl.b_RemoveRelease := True;
	            //Transition
	            IF #arrudt_InOutHandshake[#nMaxEmptyBLKSave].str_State.b_Busy
	            THEN
	                
	                #n_BlockManegementSequence := #c0030_WaitForJobDone;
	            END_IF;
	            
	        #c0020_StartCarrierRemoval:
	            //Action
	            IF #arrudt_InOutHandshake[#nMaxFilledSecBLKSAve].str_State.usi_Status = #c2Auslagern
	                OR #arrudt_InOutHandshake[#nMaxFilledSecBLKSAve].str_State.usi_Status = #c0BereitZumEinlagern
	            THEN
	                #arrudt_InOutHandshake[#nMaxFilledBLKSAve].str_Ctrl.b_Start := True;
	                #arrudt_InOutHandshake[#nMaxFilledBLKSAve].str_Ctrl.b_RemoveRelease := True;
	            END_IF;
	            //Transition
	            IF #arrudt_InOutHandshake[#nMaxFilledBLKSAve].str_State.b_Busy
	            THEN
	                #n_BlockManegementSequence := #c0030_WaitForJobDone;
	            END_IF;
	            
	        #c0030_WaitForJobDone:
	            //Action
	            IF #arrudt_InOutHandshake[#nMaxFilledSecBLKSAve].str_State.usi_Status = #c2Auslagern
	            THEN
	                ;
	            ELSIF #arrudt_InOutHandshake[#nMaxFilledSecBLKSAve].str_State.usi_Status = #c0BereitZumEinlagern
	            THEN
	                #nMaxFilledSecBLKSAve := #nMaxFilledBLKSAve + 1;
	                IF #arrudt_InOutHandshake[#nMaxFilledBLKSAve].str_State.usi_Status = #c2Auslagern
	                THEN
	                    #arrudt_InOutHandshake[#nMaxFilledSecBLKSAve].str_Ctrl.b_Start := True;
	                END_IF;
	            END_IF;
	            // #arrudt_InOutHandshake[#nMaxFilledBLKSAve].str_Ctrl.b_Start := FALSE;
	            
	            //Transition
	            IF #arrudt_InOutHandshake[#nMaxFilledBLKSAve].str_State.b_Done
	                OR #arrudt_InOutHandshake[#nMaxEmptyBLKSave].str_State.b_Done
	                OR (NOT #arrudt_InOutHandshake[#nMaxFilledBLKSAve].str_Ctrl.b_Start
	                AND NOT #arrudt_InOutHandshake[#nMaxEmptyBLKSave].str_Ctrl.b_Start
	                AND #arrudt_InOutHandshake[#nMaxFilledSecBLKSAve].str_State.b_Done)
	            THEN
	                #n_BlockManegementSequence := #c0040_Reset;
	            END_IF;
	            
	        #c0040_Reset:
	            //Action
	            #arrudt_InOutHandshake[#nMaxFilledBLKSAve].str_Ctrl.b_Start := False;
	            #arrudt_InOutHandshake[#nMaxEmptyBLKSave].str_Ctrl.b_Start := False;
	            #arrudt_InOutHandshake[#nMaxEmptyBLKSave].str_Ctrl.b_RemoveRelease := FALSE;
	            
	            
	            
	            //Transition
	            #n_BlockManegementSequence := #c0000_Wait;
	            
	    END_CASE;
	    
	    
	END_REGION
	
	*)
	REGION Leer Carrier handlen
	    
	    REGION Analyse Lines
	        REGION Block 11
	            
	            
	            REGION Blk111
	                
	                #Lfb_Blk111LineEmptyAnalyze(arLineBlk:=#arLineBlk111,
	                                            str_OutState => #arrstr_InOut_EmptyChart[#c111].udt_LineLvlBlk);
	                
	                
	                
	            END_REGION
	            
	            REGION Blk112
	                
	                #Lfb_Blk112LineEmptyAnalyze(arLineBlk:=#arLineBlk112,
	                                            str_OutState => #arrstr_InOut_EmptyChart[#c112].udt_LineLvlBlk);
	                
	                
	            END_REGION
	            
	            REGION Blk113
	                
	                #Lfb_Blk113LineEmptyAnalyze(arLineBlk:=#arLineBlk113,
	                                            str_OutState => #arrstr_InOut_EmptyChart[#c113].udt_LineLvlBlk);
	                
	                
	            END_REGION
	            
	            REGION Blk114
	                
	                #Lfb_Blk114LineEmptyAnalyze(arLineBlk:=#arLineBlk114,
	                                            str_OutState => #arrstr_InOut_EmptyChart[#c114].udt_LineLvlBlk);
	                
	                
	            END_REGION
	        END_REGION
	        
	        REGION Block 12
	            REGION Blk121
	                
	                #Lfb_Blk121LineEmptyAnalyze(arLineBlk:=#arLineBlk121,
	                                            str_OutState => #arrstr_InOut_EmptyChart[#c121].udt_LineLvlBlk);
	                
	                
	            END_REGION
	            
	            REGION Blk122
	                
	                #Lfb_Blk122LineEmptyAnalyze(arLineBlk:=#arLineBlk122,
	                                            str_OutState => #arrstr_InOut_EmptyChart[#c122].udt_LineLvlBlk);
	                
	                
	            END_REGION
	            
	            REGION Blk123
	                
	                #Lfb_Blk123LineEmptyAnalyze(arLineBlk:=#arLineBlk123,
	                                            str_OutState => #arrstr_InOut_EmptyChart[#c123].udt_LineLvlBlk);
	                
	                
	            END_REGION
	            
	            REGION Blk124
	                
	                #Lfb_Blk124LineEmptyAnalyze(arLineBlk:=#arLineBlk124,
	                                            str_OutState => #arrstr_InOut_EmptyChart[#c124].udt_LineLvlBlk);
	                
	                
	            END_REGION
	        END_REGION
	        
	        REGION Block 13
	            REGION Blk131
	                
	                #Lfb_Blk131LineEmptyAnalyze(arLineBlk:=#arLineBlk131,
	                                            str_OutState => #arrstr_InOut_EmptyChart[#c131].udt_LineLvlBlk);
	                
	                
	            END_REGION
	            
	            REGION Blk132
	                
	                #Lfb_Blk132LineEmptyAnalyze(arLineBlk:=#arLineBlk132,
	                                            str_OutState => #arrstr_InOut_EmptyChart[#c132].udt_LineLvlBlk);
	                
	                
	            END_REGION
	            
	            REGION Blk133
	                
	                #Lfb_Blk133LineEmptyAnalyze(arLineBlk:=#arLineBlk133,
	                                            str_OutState => #arrstr_InOut_EmptyChart[#c133].udt_LineLvlBlk);
	                
	                
	            END_REGION
	            
	            REGION Blk134
	                
	                #Lfb_Blk134LineEmptyAnalyze(arLineBlk:=#arLineBlk134,
	                                            str_OutState => #arrstr_InOut_EmptyChart[#c134].udt_LineLvlBlk);
	                
	                
	            END_REGION
	            
	        END_REGION
	        
	    END_REGION
	    
	    REGION Storage Block
	        // Prüfen welcher Block am meisten eingelagert hat und als nächstes auslagern muss
	        (*
	        #nMaxEmptyBLK := #c111;
	        #nMaxEmptyLine := #arrstr_InOut_EmptyChart[#c111].udt_LineLvlBlk.arr_OrderLines[1];
	        
	        
	        IF #arrstr_InOut_EmptyChart[#c112].udt_LineLvlBlk.arr_OrderLines[1] > #nMaxEmptyBLK
	            AND NOT #udt_BlkBlocked.x_LineLvlBlk112blocked
	        THEN
	            #nMaxEmptyBLK := #c112;
	            #nMaxEmptyLine := #arrstr_InOut_EmptyChart[#c112].udt_LineLvlBlk.arr_OrderLines[1];
	            ;
	        END_IF;
	        
	        IF #arrstr_InOut_EmptyChart[#c113].udt_LineLvlBlk.arr_OrderLines[1] > #nMaxEmptyBLK
	            AND NOT #udt_BlkBlocked.x_LineLvlBlk113blocked
	        THEN
	            #nMaxEmptyBLK := #c113;
	            #nMaxEmptyLine := #arrstr_InOut_EmptyChart[#c113].udt_LineLvlBlk.arr_OrderLines[1];
	        END_IF;
	        
	        IF #arrstr_InOut_EmptyChart[#c114].udt_LineLvlBlk.arr_OrderLines[1] > #nMaxEmptyBLK
	            AND NOT #udt_BlkBlocked.x_LineLvlBlk114blocked
	        THEN
	            #nMaxEmptyBLK := #c114;
	            #nMaxEmptyLine := #arrstr_InOut_EmptyChart[#c114].udt_LineLvlBlk.arr_OrderLines[1];
	        END_IF;
	        
	        IF #arrstr_InOut_EmptyChart[#c121].udt_LineLvlBlk.arr_OrderLines[1] > #nMaxEmptyBLK
	            AND NOT #udt_BlkBlocked.x_LineLvlBlk121blocked
	        THEN
	            #nMaxEmptyBLK := #c121;
	            #nMaxEmptyLine := #arrstr_InOut_EmptyChart[#c121].udt_LineLvlBlk.arr_OrderLines[1];
	        END_IF;
	        
	        IF #arrstr_InOut_EmptyChart[#c122].udt_LineLvlBlk.arr_OrderLines[1] > #nMaxEmptyBLK
	            AND NOT #udt_BlkBlocked.x_LineLvlBlk122blocked
	        THEN
	            #nMaxEmptyBLK := #c122;
	            #nMaxEmptyLine := #arrstr_InOut_EmptyChart[#c122].udt_LineLvlBlk.arr_OrderLines[1];
	        END_IF;
	        
	        IF #arrstr_InOut_EmptyChart[#c123].udt_LineLvlBlk.arr_OrderLines[1] > #nMaxEmptyBLK
	            AND NOT #udt_BlkBlocked.x_LineLvlBlk123blocked
	        THEN
	            #nMaxEmptyBLK := #c123;
	            #nMaxEmptyLine := #arrstr_InOut_EmptyChart[#c123].udt_LineLvlBlk.arr_OrderLines[1];
	        END_IF;
	        
	        IF #arrstr_InOut_EmptyChart[#c124].udt_LineLvlBlk.arr_OrderLines[1] > #nMaxEmptyBLK
	            AND NOT #udt_BlkBlocked.x_LineLvlBlk124blocked
	        THEN
	            #nMaxEmptyBLK := #c124;
	            #nMaxEmptyLine := #arrstr_InOut_EmptyChart[#c124].udt_LineLvlBlk.arr_OrderLines[1];
	        END_IF;
	        
	        IF #arrstr_InOut_EmptyChart[#c131].udt_LineLvlBlk.arr_OrderLines[1] > #nMaxEmptyBLK
	            AND NOT #udt_BlkBlocked.x_LineLvlBlk131blocked
	        THEN
	            #nMaxEmptyBLK := #c131;
	            #nMaxEmptyLine := #arrstr_InOut_EmptyChart[#c131].udt_LineLvlBlk.arr_OrderLines[1];
	        END_IF;
	        
	        IF #arrstr_InOut_EmptyChart[#c132].udt_LineLvlBlk.arr_OrderLines[1] > #nMaxEmptyBLK
	            AND NOT #udt_BlkBlocked.x_LineLvlBlk132blocked
	        THEN
	            #nMaxEmptyBLK := #c132;
	            #nMaxEmptyLine := #arrstr_InOut_EmptyChart[#c132].udt_LineLvlBlk.arr_OrderLines[1];
	        END_IF;
	        
	        IF #arrstr_InOut_EmptyChart[#c133].udt_LineLvlBlk.arr_OrderLines[1] > #nMaxEmptyBLK
	            AND NOT #udt_BlkBlocked.x_LineLvlBlk133blocked
	        THEN
	            #nMaxEmptyBLK := #c133;
	            #nMaxEmptyLine := #arrstr_InOut_EmptyChart[#c133].udt_LineLvlBlk.arr_OrderLines[1];
	        END_IF;
	        
	        IF #arrstr_InOut_EmptyChart[#c134].udt_LineLvlBlk.arr_OrderLines[1] > #nMaxEmptyBLK
	            AND NOT #udt_BlkBlocked.x_LineLvlBlk134blocked
	        THEN
	            #nMaxEmptyBLK := #c134;
	            #nMaxEmptyLine := #arrstr_InOut_EmptyChart[#c134].udt_LineLvlBlk.arr_OrderLines[1];
	        END_IF;
	        *)
	        ;
	    END_REGION
	    
	END_REGION
	
	
	
	
	
	
	
	
	
	
	
	
	
	
END_FUNCTION_BLOCK

