FUNCTION_BLOCK "FB_Visu_Jams"
{ S7_Optimized_Access := 'TRUE' }
VERSION : 0.1
   VAR 
      fbJam4000_1 { S7_SetPoint := 'False'} : "FB_Visu_Jam";
      fbJam4000_2 { S7_SetPoint := 'False'} : "FB_Visu_Jam";
      fbJam4001_1 : "FB_Visu_Jam";
      fbJam4001_2 : "FB_Visu_Jam";
      fbJam4002_1 : "FB_Visu_Jam";
      fbJam4002_2 : "FB_Visu_Jam";
      fbJam4003_1 : "FB_Visu_Jam";
      fbJam4003_2 : "FB_Visu_Jam";
      fbJam4003_3 : "FB_Visu_Jam";
      fbJam4003_4 : "FB_Visu_Jam";
      fbJam4003_5 : "FB_Visu_Jam";
      fbJam4003_6 : "FB_Visu_Jam";
      fbJam4003_7 : "FB_Visu_Jam";
      fbJam4003_8 : "FB_Visu_Jam";
      fbJam4004_1 : "FB_Visu_Jam";
      fbJam4004_2 : "FB_Visu_Jam";
      fbJam4005_1 : "FB_Visu_Jam";
      fbJam4006_1 : "FB_Visu_Jam";
      fbJam4006_2 : "FB_Visu_Jam";
      fbJam4007_1 : "FB_Visu_Jam";
      fbJam4008_1 : "FB_Visu_Jam";
      fbJam4008_2 : "FB_Visu_Jam";
      fbJam4009_1 : "FB_Visu_Jam";
      fbJam4010_1 : "FB_Visu_Jam";
      fbJam4010_2 : "FB_Visu_Jam";
      fbJam4011_1 : "FB_Visu_Jam";
      fbJam4011_2 : "FB_Visu_Jam";
      fbJam4404_1 : "FB_Visu_Jam";
   END_VAR

   VAR_TEMP 
      idx : USInt;
   END_VAR


BEGIN
	REGION Visu Jam Aufrufe
	    
	    REGION Jam 4000
	        #fbJam4000_1(arInOutJam := "DB_JamArea4000".stJam4000_1.arCarrier,
	                     stInOutHMIJam := "DB_Interface_HMI".stJamsAndStorage.stJamLists.stJam.stJam4000_1,
	                     stInOutHMIData:= "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4000.stJam4000_1);
	    END_REGION
	    
	    REGION Jam 4001
	        #fbJam4001_1(arInOutJam := "DB_JamArea4001".stJam4001_1.arCarrier,
	                     stInOutHMIJam := "DB_Interface_HMI".stJamsAndStorage.stJamLists.stJam.stJam4001_1,
	                     stInOutHMIData:= "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4001.stJam4001_1);
	        
	        #fbJam4001_2(arInOutJam := "DB_JamArea4001".stJam4001_2.arCarrier,
	                     stInOutHMIJam := "DB_Interface_HMI".stJamsAndStorage.stJamLists.stJam.stJam4001_2,
	                     stInOutHMIData:= "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4001.stJam4001_2);
	    END_REGION
	    
	    REGION Jam 4002
	        #fbJam4002_1(arInOutJam := "DB_JamArea4002".stJam4002_1.arCarrier,
	                     stInOutHMIJam := "DB_Interface_HMI".stJamsAndStorage.stJamLists.stJam.stJam4002_1,
	                     stInOutHMIData:= "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4002.stJam4002_1);
	        
	        #fbJam4002_2(arInOutJam := "DB_JamArea4002".stJam4002_2.arCarrier,
	                     stInOutHMIJam := "DB_Interface_HMI".stJamsAndStorage.stJamLists.stJam.stJam4002_2,
	                     stInOutHMIData:= "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4002.stJam4002_2);
	    END_REGION
	    
	    REGION Jam 4003
	        #fbJam4003_1(arInOutJam := "DB_JamArea4003".stJam4003_1.arCarrier,
	                     stInOutHMIJam := "DB_Interface_HMI".stJamsAndStorage.stJamLists.stJam.stJam4003_1,
	                     stInOutHMIData := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_1);
	        
	        #fbJam4003_2(
	                     arInOutJam := "DB_JamArea4003".stJam4003_2.arCarrier,
	                     stInOutHMIJam := "DB_Interface_HMI".stJamsAndStorage.stJamLists.stJam.stJam4003_2,
	                     stInOutHMIData := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_2);
	        
	        #fbJam4003_3(
	                     arInOutJam := "DB_JamArea4003".stJam4003_3.arCarrier,
	                     stInOutHMIJam := "DB_Interface_HMI".stJamsAndStorage.stJamLists.stJam.stJam4003_3,
	                     stInOutHMIData := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_3);
	        
	        #fbJam4003_4(
	                     arInOutJam := "DB_JamArea4003".stJam4003_4.arCarrier,
	                     stInOutHMIJam := "DB_Interface_HMI".stJamsAndStorage.stJamLists.stJam.stJam4003_4,
	                     stInOutHMIData := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_4);
	        
	        #fbJam4003_5(
	                     arInOutJam := "DB_JamArea4003".stJam4003_5.arCarrier,
	                     stInOutHMIJam := "DB_Interface_HMI".stJamsAndStorage.stJamLists.stJam.stJam4003_5,
	                     stInOutHMIData := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_5);
	        
	        #fbJam4003_6(arInOutJam := "DB_JamArea4003".stJam4003_6.arCarrier,
	                     stInOutHMIJam := "DB_Interface_HMI".stJamsAndStorage.stJamLists.stJam.stJam4003_6,
	                     stInOutHMIData := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_6);
	        
	        #fbJam4003_7(arInOutJam := "DB_JamArea4003".stJam4003_7.arCarrier,
	                     stInOutHMIJam := "DB_Interface_HMI".stJamsAndStorage.stJamLists.stJam.stJam4003_7,
	                     stInOutHMIData := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_7);
	        
	        #fbJam4003_8(arInOutJam := "DB_JamArea4003".stJam4003_8.arCarrier,
	                     stInOutHMIJam := "DB_Interface_HMI".stJamsAndStorage.stJamLists.stJam.stJam4003_8,
	                     stInOutHMIData := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_8);
	    END_REGION
	    
	    REGION Jam 4004
	        #fbJam4004_1(
	                     arInOutJam := "DB_JamArea4004".stJam4004_1.arCarrier,
	                     stInOutHMIJam := "DB_Interface_HMI".stJamsAndStorage.stJamLists.stJam.stJam4004_1,
	                     stInOutHMIData := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4004.stJam4004_1);
	        
	        #fbJam4004_2(
	                     arInOutJam := "DB_JamArea4004".stJam4004_2.arCarrier,
	                     stInOutHMIJam := "DB_Interface_HMI".stJamsAndStorage.stJamLists.stJam.stJam4004_2,
	                     stInOutHMIData := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4004.stJam4004_2);
	    END_REGION
	    
	    REGION Jam 4005
	        #fbJam4005_1(
	                     arInOutJam := "DB_JamArea4005".stJam4005_1.arCarrier,
	                     stInOutHMIJam := "DB_Interface_HMI".stJamsAndStorage.stJamLists.stJam.stJam4005_1,
	                     stInOutHMIData := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4005.stJam4005_1);
	        
	    END_REGION
	    
	    REGION Jam 4006
	        #"fbJam4006_1"(
	                       arInOutJam := "DB_JamArea4006".stJam4006_1.arCarrier,
	                       stInOutHMIJam := "DB_Interface_HMI".stJamsAndStorage.stJamLists.stJam.stJam4006_1,
	                       stInOutHMIData := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4006.stJam4006_1);
	        
	        #"fbJam4006_2"(
	                       arInOutJam := "DB_JamArea4006".stJam4006_2.arCarrier,
	                       stInOutHMIJam := "DB_Interface_HMI".stJamsAndStorage.stJamLists.stJam.stJam4006_2,
	                       stInOutHMIData := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4006.stJam4006_2);
	    END_REGION
	    
	    REGION Jam 4007
	        #"fbJam4007_1"(
	                       arInOutJam := "DB_JamArea4007".stJam4007_1.arCarrier,
	                       stInOutHMIJam := "DB_Interface_HMI".stJamsAndStorage.stJamLists.stJam.stJam4007_1,
	                       stInOutHMIData := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4007.stJam4007_1);
	    END_REGION
	    
	    REGION Jam 4008
	        #"fbJam4008_1"(
	                       arInOutJam := "DB_JamArea4008".stJam4008_1.arCarrier,
	                       stInOutHMIJam := "DB_Interface_HMI".stJamsAndStorage.stJamLists.stJam.stJam4008_1,
	                       stInOutHMIData := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4008.stJam4008_1);
	        
	        #"fbJam4008_2"(
	                       arInOutJam := "DB_JamArea4008".stJam4008_2.arCarrier,
	                       stInOutHMIJam := "DB_Interface_HMI".stJamsAndStorage.stJamLists.stJam.stJam4008_2,
	                       stInOutHMIData := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4008.stJam4008_2);
	    END_REGION
	    
	    REGION Jam 4009
	        #"fbJam4009_1"(
	                       arInOutJam := "DB_JamArea4009".stJam4009_1.arCarrier,
	                       stInOutHMIJam := "DB_Interface_HMI".stJamsAndStorage.stJamLists.stJam.stJam4009_1,
	                       stInOutHMIData := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4009.stJam4009_1);
	    END_REGION
	    
	    REGION Jam 4010
	        #"fbJam4010_1"(
	                       arInOutJam := "DB_JamArea4010".stJam4010_1.arCarrier,
	                       stInOutHMIJam := "DB_Interface_HMI".stJamsAndStorage.stJamLists.stJam.stJam4010_1,
	                       stInOutHMIData := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4010.stJam4010_1);
	        
	        #"fbJam4010_2"(
	                       arInOutJam := "DB_JamArea4010".stJam4010_2.arCarrier,
	                       stInOutHMIJam := "DB_Interface_HMI".stJamsAndStorage.stJamLists.stJam.stJam4010_2,
	                       stInOutHMIData := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4010.stJam4010_2);
	    END_REGION
	    
	    REGION Jam 4011
	        
	        #"fbJam4011_1"(
	                       arInOutJam := "DB_JamArea4011".stJam4011_1.arCarrier,
	                       stInOutHMIJam := "DB_Interface_HMI".stJamsAndStorage.stJamLists.stJam.stJam4011_1,
	                       stInOutHMIData := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4011.stJam4011_1);
	        
	   END_REGION
	    
	   
	   (* REGION Jam 4404
	        
	        #"fbJam4404_1"(
	                       arInOutJam := "DB_JamArea4404".stJam4404_1.arCarrier,
	                       nInJamCount := "DB_JamArea4404".stJam4404_1.stData.Status.nCount);
	        
	    END_REGION *)
	END_REGION
	
	REGION Jams
	    REGION Status
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4000.stJam4000_1.stStatus := "DB_JamArea4000"."stJam4000_1".stData.Status;
	       
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4001.stJam4001_1.stStatus := "DB_JamArea4001"."stJam4001_1".stData.Status;
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4001.stJam4001_2.stStatus := "DB_JamArea4001"."stJam4001_2".stData.Status;
	        
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4002.stJam4002_1.stStatus := "DB_JamArea4002"."stJam4002_1".stData.Status;
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4002.stJam4002_2.stStatus := "DB_JamArea4002"."stJam4002_2".stData.Status;
	        
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_1.stStatus := "DB_JamArea4003"."stJam4003_1".stData.Status;
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_2.stStatus := "DB_JamArea4003"."stJam4003_2".stData.Status;
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_3.stStatus := "DB_JamArea4003".stJam4003_3.stData.Status;
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_4.stStatus := "DB_JamArea4003".stJam4003_4.stData.Status;
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_5.stStatus := "DB_JamArea4003".stJam4003_5.stData.Status;
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_6.stStatus := "DB_JamArea4003"."stJam4003_6".stData.Status;
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_7.stStatus := "DB_JamArea4003"."stJam4003_7".stData.Status;
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_8.stStatus := "DB_JamArea4003"."stJam4003_8".stData.Status;
	        
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4004.stJam4004_1.stStatus := "DB_JamArea4004"."stJam4004_1".stData.Status;
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4004.stJam4004_2.stStatus := "DB_JamArea4004"."stJam4004_2".stData.Status;
	        
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4005.stJam4005_1.stStatus := "DB_JamArea4005"."stJam4005_1".stData.Status;
	        
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4006.stJam4006_1.stStatus := "DB_JamArea4006"."stJam4006_1".stData.Status;
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4006.stJam4006_2.stStatus := "DB_JamArea4006"."stJam4006_2".stData.Status;
	        
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4007.stJam4007_1.stStatus := "DB_JamArea4007"."stJam4007_1".stData.Status;
	        
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4008.stJam4008_1.stStatus := "DB_JamArea4008"."stJam4008_1".stData.Status;
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4008.stJam4008_2.stStatus := "DB_JamArea4008"."stJam4008_2".stData.Status;
	        
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4009.stJam4009_1.stStatus := "DB_JamArea4009"."stJam4009_1".stData.Status;
	        
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4010.stJam4010_1.stStatus := "DB_JamArea4010"."stJam4010_1".stData.Status;
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4010.stJam4010_2.stStatus := "DB_JamArea4010"."stJam4010_2".stData.Status;
	        
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4011.stJam4011_1.stStatus := "DB_JamArea4011"."stJam4011_1".stData.Status;
	        
	    END_REGION
	    
	    REGION Capacity
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4000.stJam4000_1.stJamConfig.nCapacityPLC := "DB_JamArea4000".stJam4000_1.stData.Config.nCapacitySet;
	        
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4001.stJam4001_1.stJamConfig.nCapacityPLC := "DB_JamArea4001".stJam4001_1.stData.Config.nCapacitySet;
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4001.stJam4001_2.stJamConfig.nCapacityPLC := "DB_JamArea4001".stJam4001_2.stData.Config.nCapacitySet;
	        
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4002.stJam4002_1.stJamConfig.nCapacityPLC := "DB_JamArea4002".stJam4002_1.stData.Config.nCapacitySet;
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4002.stJam4002_2.stJamConfig.nCapacityPLC := "DB_JamArea4002".stJam4002_2.stData.Config.nCapacitySet;
	        
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_1.stJamConfig.nCapacityPLC := "DB_JamArea4003".stJam4003_1.stData.Config.nCapacitySet;
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_2.stJamConfig.nCapacityPLC := "DB_JamArea4003".stJam4003_2.stData.Config.nCapacitySet;
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_3.stJamConfig.nCapacityPLC := "DB_JamArea4003".stJam4003_3.stData.Config.nCapacitySet;
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_4.stJamConfig.nCapacityPLC := "DB_JamArea4003".stJam4003_4.stData.Config.nCapacitySet;
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_5.stJamConfig.nCapacityPLC := "DB_JamArea4003".stJam4003_5.stData.Config.nCapacitySet;
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_6.stJamConfig.nCapacityPLC := "DB_JamArea4003".stJam4003_6.stData.Config.nCapacitySet;
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_7.stJamConfig.nCapacityPLC := "DB_JamArea4003".stJam4003_7.stData.Config.nCapacitySet;
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_8.stJamConfig.nCapacityPLC := "DB_JamArea4003".stJam4003_8.stData.Config.nCapacitySet;
	        
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4004.stJam4004_1.stJamConfig.nCapacityPLC := "DB_JamArea4004".stJam4004_1.stData.Config.nCapacitySet;
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4004.stJam4004_2.stJamConfig.nCapacityPLC := "DB_JamArea4004".stJam4004_2.stData.Config.nCapacitySet;
	        
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4005.stJam4005_1.stJamConfig.nCapacityPLC := "DB_JamArea4005".stJam4005_1.stData.Config.nCapacitySet;
	        
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4006.stJam4006_1.stJamConfig.nCapacityPLC := "DB_JamArea4006".stJam4006_1.stData.Config.nCapacitySet;
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4006.stJam4006_2.stJamConfig.nCapacityPLC := "DB_JamArea4006".stJam4006_2.stData.Config.nCapacitySet;
	        
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4007.stJam4007_1.stJamConfig.nCapacityPLC := "DB_JamArea4007".stJam4007_1.stData.Config.nCapacitySet;
	        
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4008.stJam4008_1.stJamConfig.nCapacityPLC := "DB_JamArea4008".stJam4008_1.stData.Config.nCapacitySet;
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4008.stJam4008_2.stJamConfig.nCapacityPLC := "DB_JamArea4008".stJam4008_2.stData.Config.nCapacitySet;
	        
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4009.stJam4009_1.stJamConfig.nCapacityPLC := "DB_JamArea4009".stJam4009_1.stData.Config.nCapacitySet;
	        
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4010.stJam4010_1.stJamConfig.nCapacityPLC := "DB_JamArea4010".stJam4010_1.stData.Config.nCapacitySet;
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4010.stJam4010_2.stJamConfig.nCapacityPLC := "DB_JamArea4010".stJam4010_2.stData.Config.nCapacitySet;
	        
	        "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4011.stJam4011_1.stJamConfig.nCapacityPLC := "DB_JamArea4011".stJam4011_1.stData.Config.nCapacitySet;
	    END_REGION
	
	    
	    REGION Einfahr/Ausfahrt sperren, Manuelle Destination
	        "DB_JamArea4000".stJam4000_1.stData.Status.bByte.%X2 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4000.stJam4000_1.stJamConfig.xLockEntry;
	        "DB_JamArea4000".stJam4000_1.stData.Status.bByte.%X3 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4000.stJam4000_1.stJamConfig.xLockExit;
	        "DB_JamArea4000".stJam4000_1.stData.Status.bByte.%X7 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4000.stJam4000_1.stJamConfig.xActivateManualDest;
	
	        "DB_JamArea4001".stJam4001_1.stData.Status.bByte.%X2 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4001.stJam4001_1.stJamConfig.xLockEntry;
	        "DB_JamArea4001".stJam4001_1.stData.Status.bByte.%X3 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4001.stJam4001_1.stJamConfig.xLockExit;
	        "DB_JamArea4001".stJam4001_1.stData.Status.bByte.%X7 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4001.stJam4001_1.stJamConfig.xActivateManualDest;
	        
	        "DB_JamArea4001".stJam4001_2.stData.Status.bByte.%X2 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4001.stJam4001_2.stJamConfig.xLockEntry;
	        "DB_JamArea4001".stJam4001_2.stData.Status.bByte.%X3 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4001.stJam4001_2.stJamConfig.xLockExit;
	        "DB_JamArea4001".stJam4001_2.stData.Status.bByte.%X7 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4001.stJam4001_2.stJamConfig.xActivateManualDest;
	        
	        "DB_JamArea4002".stJam4002_1.stData.Status.bByte.%X2 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4002.stJam4002_1.stJamConfig.xLockEntry;
	        "DB_JamArea4002".stJam4002_1.stData.Status.bByte.%X3 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4002.stJam4002_1.stJamConfig.xLockExit;
	        "DB_JamArea4002".stJam4002_1.stData.Status.bByte.%X7 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4002.stJam4002_1.stJamConfig.xActivateManualDest;
	        
	        "DB_JamArea4002".stJam4002_2.stData.Status.bByte.%X2 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4002.stJam4002_2.stJamConfig.xLockEntry;
	        "DB_JamArea4002".stJam4002_2.stData.Status.bByte.%X3 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4002.stJam4002_2.stJamConfig.xLockExit;
	        "DB_JamArea4002".stJam4002_2.stData.Status.bByte.%X7 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4002.stJam4002_2.stJamConfig.xActivateManualDest;
	        
	        "DB_JamArea4003".stJam4003_1.stData.Status.bByte.%X2 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_1.stJamConfig.xLockEntry;
	        "DB_JamArea4003".stJam4003_1.stData.Status.bByte.%X3 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_1.stJamConfig.xLockExit;
	        "DB_JamArea4003".stJam4003_1.stData.Status.bByte.%X7 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_1.stJamConfig.xActivateManualDest;
	        
	        "DB_JamArea4003".stJam4003_2.stData.Status.bByte.%X2 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_2.stJamConfig.xLockEntry;
	        "DB_JamArea4003".stJam4003_2.stData.Status.bByte.%X3 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_2.stJamConfig.xLockExit;
	        "DB_JamArea4003".stJam4003_2.stData.Status.bByte.%X7 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_2.stJamConfig.xActivateManualDest;
	        
	        "DB_JamArea4003".stJam4003_3.stData.Status.bByte.%X2 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_3.stJamConfig.xLockEntry;
	        "DB_JamArea4003".stJam4003_3.stData.Status.bByte.%X3 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_3.stJamConfig.xLockExit;
	        "DB_JamArea4003".stJam4003_3.stData.Status.bByte.%X7 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_3.stJamConfig.xActivateManualDest;
	        
	        "DB_JamArea4003".stJam4003_4.stData.Status.bByte.%X2 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_4.stJamConfig.xLockEntry;
	        "DB_JamArea4003".stJam4003_4.stData.Status.bByte.%X3 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_4.stJamConfig.xLockExit;
	        "DB_JamArea4003".stJam4003_4.stData.Status.bByte.%X7 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_4.stJamConfig.xActivateManualDest;
	        
	        "DB_JamArea4003".stJam4003_5.stData.Status.bByte.%X2 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_5.stJamConfig.xLockEntry;
	        "DB_JamArea4003".stJam4003_5.stData.Status.bByte.%X3 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_5.stJamConfig.xLockExit;
	        "DB_JamArea4003".stJam4003_5.stData.Status.bByte.%X7 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_5.stJamConfig.xActivateManualDest;
	        
	        "DB_JamArea4003".stJam4003_6.stData.Status.bByte.%X2 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_6.stJamConfig.xLockEntry;
	        "DB_JamArea4003".stJam4003_6.stData.Status.bByte.%X3 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_6.stJamConfig.xLockExit;
	        "DB_JamArea4003".stJam4003_6.stData.Status.bByte.%X7 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_6.stJamConfig.xActivateManualDest;
	        
	        "DB_JamArea4003".stJam4003_7.stData.Status.bByte.%X2 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_7.stJamConfig.xLockEntry;
	        "DB_JamArea4003".stJam4003_7.stData.Status.bByte.%X3 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_7.stJamConfig.xLockExit;
	        "DB_JamArea4003".stJam4003_7.stData.Status.bByte.%X7 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_7.stJamConfig.xActivateManualDest;
	        
	        "DB_JamArea4003".stJam4003_8.stData.Status.bByte.%X2 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_8.stJamConfig.xLockEntry;
	        "DB_JamArea4003".stJam4003_8.stData.Status.bByte.%X3 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_8.stJamConfig.xLockExit;
	        "DB_JamArea4003".stJam4003_8.stData.Status.bByte.%X7 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4003.stJam4003_8.stJamConfig.xActivateManualDest;
	
	        "DB_JamArea4004".stJam4004_1.stData.Status.bByte.%X2 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4004.stJam4004_1.stJamConfig.xLockEntry;
	        "DB_JamArea4004".stJam4004_1.stData.Status.bByte.%X3 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4004.stJam4004_1.stJamConfig.xLockExit;
	        "DB_JamArea4004".stJam4004_1.stData.Status.bByte.%X7 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4004.stJam4004_1.stJamConfig.xActivateManualDest;
	        
	        "DB_JamArea4005".stJam4005_1.stData.Status.bByte.%X2 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4005.stJam4005_1.stJamConfig.xLockEntry;
	        "DB_JamArea4005".stJam4005_1.stData.Status.bByte.%X3 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4005.stJam4005_1.stJamConfig.xLockExit;
	        "DB_JamArea4005".stJam4005_1.stData.Status.bByte.%X7 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4005.stJam4005_1.stJamConfig.xActivateManualDest;
	        
	        "DB_JamArea4006".stJam4006_1.stData.Status.bByte.%X2 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4006.stJam4006_1.stJamConfig.xLockEntry;
	        "DB_JamArea4006".stJam4006_1.stData.Status.bByte.%X3 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4006.stJam4006_1.stJamConfig.xLockExit;
	        "DB_JamArea4006".stJam4006_1.stData.Status.bByte.%X7 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4006.stJam4006_1.stJamConfig.xActivateManualDest;
	
	        "DB_JamArea4007".stJam4007_1.stData.Status.bByte.%X2 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4007.stJam4007_1.stJamConfig.xLockEntry;
	        "DB_JamArea4007".stJam4007_1.stData.Status.bByte.%X3 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4007.stJam4007_1.stJamConfig.xLockExit;
	        "DB_JamArea4007".stJam4007_1.stData.Status.bByte.%X7 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4007.stJam4007_1.stJamConfig.xActivateManualDest;
	        
	        "DB_JamArea4008".stJam4008_1.stData.Status.bByte.%X2 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4008.stJam4008_1.stJamConfig.xLockEntry;
	        "DB_JamArea4008".stJam4008_1.stData.Status.bByte.%X3 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4008.stJam4008_1.stJamConfig.xLockExit;
	        "DB_JamArea4008".stJam4008_1.stData.Status.bByte.%X7 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4008.stJam4008_1.stJamConfig.xActivateManualDest;
	        
	        "DB_JamArea4009".stJam4009_1.stData.Status.bByte.%X2 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4009.stJam4009_1.stJamConfig.xLockEntry;
	        "DB_JamArea4009".stJam4009_1.stData.Status.bByte.%X3 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4009.stJam4009_1.stJamConfig.xLockExit;
	        "DB_JamArea4009".stJam4009_1.stData.Status.bByte.%X7 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4009.stJam4009_1.stJamConfig.xActivateManualDest;
	        
	        "DB_JamArea4010".stJam4010_1.stData.Status.bByte.%X3 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4010.stJam4010_1.stJamConfig.xLockExit;
	        "DB_JamArea4010".stJam4010_1.stData.Status.bByte.%X3 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4010.stJam4010_1.stJamConfig.xLockExit;
	        "DB_JamArea4010".stJam4010_1.stData.Status.bByte.%X7 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4010.stJam4010_1.stJamConfig.xActivateManualDest;
	        
	        "DB_JamArea4011".stJam4011_1.stData.Status.bByte.%X2 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4011.stJam4011_1.stJamConfig.xLockEntry;
	        "DB_JamArea4011".stJam4011_1.stData.Status.bByte.%X3 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4011.stJam4011_1.stJamConfig.xLockExit;
	        "DB_JamArea4011".stJam4011_1.stData.Status.bByte.%X7 := "DB_Interface_HMI".stJamsAndStorage.stJams.stJamArea4011.stJam4011_1.stJamConfig.xActivateManualDest;
	    END_REGION
	END_REGION 
END_FUNCTION_BLOCK

