FUNCTION_BLOCK "FB_CallSensors"
{ S7_Optimized_Access := 'TRUE' }
VERSION : 0.1
   VAR_IN_OUT 
      stInOutControlUnitCabinetOF1 : "UDT_MainState";
      stInOutControlUnitCabinetOF2 : "UDT_MainState";
   END_VAR

   VAR 
      fbSensorInput : Array[0.."cNoSensors"] of "FB_SensorInput";
   END_VAR

   VAR_TEMP 
      idx : Int;
      tFlicker : Bool;
      index : Int;
   END_VAR


BEGIN
	
	REGION BG0280
	    #fbSensorInput["cInBG0280"](sInName := 'BG0280',
	                                xInSensor := "BG0280",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG0280"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG0280"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG0282
	    #fbSensorInput["cInBG0282"](sInName := 'BG0282',
	                                xInSensor := "BG0282",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG0282"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG0282"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG0283
	    #fbSensorInput["cInBG0283"](sInName := 'BG0283',
	                                xInSensor := "BG0283",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG0283"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG0283"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG0284
	    #fbSensorInput["cInBG0284"](sInName := 'BG0284',
	                                xInSensor := "BG0284",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG0284"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG0284"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG0285
	    #fbSensorInput["cInBG0285"](sInName := 'BG0285',
	                                xInSensor := "BG0285",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG0285"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG0285"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG0286
	    #fbSensorInput["cInBG0286"](sInName := 'BG0286',
	                                xInSensor := "BG0286",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG0286"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG0286"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG0287
	    #fbSensorInput["cInBG0287"](sInName := 'BG0287',
	                                xInSensor := "BG0287",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG0287"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG0287"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG0340
	    #fbSensorInput["cInBG0340"](sInName := 'BG0340',
	                                xInSensor := "BG0340",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG0340"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG0340"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG0341
	    #fbSensorInput["cInBG0341"](sInName := 'BG0341',
	                                xInSensor := "BG0341",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG0341"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG0341"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG0342
	    #fbSensorInput["cInBG0342"](sInName := 'BG0342',
	                                xInSensor := "BG0342",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG0342"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG0342"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG0343
	    #fbSensorInput["cInBG0343"](sInName := 'BG0343',
	                                xInSensor := "BG0343",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG0343"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG0343"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG0344
	    #fbSensorInput["cInBG0344"](sInName := 'BG0344',
	                                xInSensor := "BG0344",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG0344"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG0344"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG0345
	    #fbSensorInput["cInBG0345"](sInName := 'BG0345',
	                                xInSensor := "BG0345",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG0345"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG0345"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG0346
	    #fbSensorInput["cInBG0346"](sInName := 'BG0346',
	                                xInSensor := "BG0346",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG0346"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG0346"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG0347
	    #fbSensorInput["cInBG0347"](sInName := 'BG0347',
	                                xInSensor := "BG0347",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG0347"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG0347"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3000
	    #fbSensorInput["cInBG3000"](sInName := 'BG3000',
	                                xInSensor := "BG3000",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3000"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3000"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3001
	    #fbSensorInput["cInBG3001"](sInName := 'BG3001',
	                                xInSensor := "BG3001",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3001"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3001"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3002
	    #fbSensorInput["cInBG3002"](sInName := 'BG3002',
	                                xInSensor := "BG3002",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3002"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3002"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3003
	    #fbSensorInput["cInBG3003"](sInName := 'BG3003',
	                                xInSensor := "BG3003",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3003"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3003"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3004
	    #fbSensorInput["cInBG3004"](sInName := 'BG3004',
	                                xInSensor := "BG3004",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3004"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3004"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3005
	    #fbSensorInput["cInBG3005"](sInName := 'BG3005',
	                                xInSensor := "BG3005",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3005"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3005"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3006
	    #fbSensorInput["cInBG3006"](sInName := 'BG3006',
	                                xInSensor := "BG3006",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3006"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3006"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3010
	    #fbSensorInput["cInBG3010"](sInName := 'BG3010',
	                                xInSensor := "BG3010",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3010"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3010"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3011
	    #fbSensorInput["cInBG3011"](sInName := 'BG3011',
	                                xInSensor := "BG3011",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3011"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3011"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3012
	    #fbSensorInput["cInBG3012"](sInName := 'BG3012',
	                                xInSensor := "BG3012",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3012"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3012"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3013
	    #fbSensorInput["cInBG3013"](sInName := 'BG3013',
	                                xInSensor := "BG3013",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3013"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3013"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3014
	    #fbSensorInput["cInBG3014"](sInName := 'BG3014',
	                                xInSensor := "BG3014",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3014"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3014"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3015
	    #fbSensorInput["cInBG3015"](sInName := 'BG3015',
	                                xInSensor := "BG3015",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3015"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3015"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3016
	    #fbSensorInput["cInBG3016"](sInName := 'BG3016',
	                                xInSensor := "BG3016",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3016"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3016"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3017
	    #fbSensorInput["cInBG3017"](sInName := 'BG3017',
	                                xInSensor := "BG3017",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3017"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3017"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3020
	    #fbSensorInput["cInBG3020"](sInName := 'BG3020',
	                                xInSensor := "BG3020",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3020"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3020"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3021
	    #fbSensorInput["cInBG3021"](sInName := 'BG3021',
	                                xInSensor := "BG3021",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3021"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3021"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3022
	    #fbSensorInput["cInBG3022"](sInName := 'BG3022',
	                                xInSensor := "BG3022",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3022"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3022"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3023
	    #fbSensorInput["cInBG3023"](sInName := 'BG3023',
	                                xInSensor := "BG3023",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3023"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3023"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3024
	    #fbSensorInput["cInBG3024"](sInName := 'BG3024',
	                                xInSensor := "BG3024",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3024"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3024"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3025
	    #fbSensorInput["cInBG3025"](sInName := 'BG3025',
	                                xInSensor := "BG3025",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3025"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3025"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3026
	    #fbSensorInput["cInBG3026"](sInName := 'BG3026',
	                                xInSensor := "BG3026",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3026"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3026"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3027
	    #fbSensorInput["cInBG3027"](sInName := 'BG3027',
	                                xInSensor := "BG3027",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3027"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3027"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3060
	    #fbSensorInput["cInBG3060"](sInName := 'BG3060',
	                                xInSensor := "BG3060",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3060"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3060"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3061
	    #fbSensorInput["cInBG3061"](sInName := 'BG3061',
	                                xInSensor := "BG3061",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3061"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3061"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3062
	    #fbSensorInput["cInBG3062"](sInName := 'BG3062',
	                                xInSensor := "BG3062",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3062"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3062"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3063
	    #fbSensorInput["cInBG3063"](sInName := 'BG3063',
	                                xInSensor := "BG3063",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3063"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3063"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3064
	    #fbSensorInput["cInBG3064"](sInName := 'BG3064',
	                                xInSensor := "BG3064",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3064"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3064"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3065
	    #fbSensorInput["cInBG3065"](sInName := 'BG3065',
	                                xInSensor := "BG3065",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3065"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3065"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3066
	    #fbSensorInput["cInBG3066"](sInName := 'BG3066',
	                                xInSensor := "BG3066",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3066"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3066"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3067
	    #fbSensorInput["cInBG3067"](sInName := 'BG3067',
	                                xInSensor := "BG3067",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3067"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3067"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3070
	    #fbSensorInput["cInBG3070"](sInName := 'BG3070',
	                                xInSensor := "BG3070",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3070"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3070"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3071
	    #fbSensorInput["cInBG3071"](sInName := 'BG3071',
	                                xInSensor := "BG3071",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3071"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3071"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3072
	    #fbSensorInput["cInBG3072"](sInName := 'BG3072',
	                                xInSensor := "BG3072",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3072"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3072"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3073
	    #fbSensorInput["cInBG3073"](sInName := 'BG3073',
	                                xInSensor := "BG3073",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3073"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3073"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3074
	    #fbSensorInput["cInBG3074"](sInName := 'BG3074',
	                                xInSensor := "BG3074",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3074"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3074"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3075
	    #fbSensorInput["cInBG3075"](sInName := 'BG3075',
	                                xInSensor := "BG3075",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3075"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3075"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3076
	    #fbSensorInput["cInBG3076"](sInName := 'BG3076',
	                                xInSensor := "BG3076",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3076"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3076"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3077
	    #fbSensorInput["cInBG3077"](sInName := 'BG3077',
	                                xInSensor := "BG3077",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3077"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3077"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3080
	    #fbSensorInput["cInBG3080"](sInName := 'BG3080',
	                                xInSensor := "BG3080",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3080"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3080"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3081
	    #fbSensorInput["cInBG3081"](sInName := 'BG3081',
	                                xInSensor := "BG3081",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3081"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3081"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3082
	    #fbSensorInput["cInBG3082"](sInName := 'BG3082',
	                                xInSensor := "BG3082",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3082"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3082"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3120
	    #fbSensorInput["cInBG3120"](sInName := 'BG3120',
	                                xInSensor := "BG3120",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3120"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3120"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3121
	    #fbSensorInput["cInBG3121"](sInName := 'BG3121',
	                                xInSensor := "BG3121",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3121"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3121"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3122
	    #fbSensorInput["cInBG3122"](sInName := 'BG3122',
	                                xInSensor := "BG3122",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3122"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3122"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3123
	    #fbSensorInput["cInBG3123"](sInName := 'BG3123',
	                                xInSensor := "BG3123",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3123"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3123"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3124
	    #fbSensorInput["cInBG3124"](sInName := 'BG3124',
	                                xInSensor := "BG3124",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3124"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3124"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3125
	    #fbSensorInput["cInBG3125"](sInName := 'BG3125',
	                                xInSensor := "BG3125",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3125"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3125"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3126
	    #fbSensorInput["cInBG3126"](sInName := 'BG3126',
	                                xInSensor := "BG3126",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3126"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3126"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3127
	    #fbSensorInput["cInBG3127"](sInName := 'BG3127',
	                                xInSensor := "BG3127",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3127"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3127"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3130
	    #fbSensorInput["cInBG3130"](sInName := 'BG3130',
	                                xInSensor := "BG3130",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3130"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3130"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3131
	    #fbSensorInput["cInBG3131"](sInName := 'BG3131',
	                                xInSensor := "BG3131",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3131"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3131"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3132
	    #fbSensorInput["cInBG3132"](sInName := 'BG3132',
	                                xInSensor := "BG3132",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3132"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3132"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3133
	    #fbSensorInput["cInBG3133"](sInName := 'BG3133',
	                                xInSensor := "BG3133",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3133"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3133"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3134
	    #fbSensorInput["cInBG3134"](sInName := 'BG3134',
	                                xInSensor := "BG3134",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3134"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3134"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3135
	    #fbSensorInput["cInBG3135"](sInName := 'BG3135',
	                                xInSensor := "BG3135",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3135"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3135"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3136
	    #fbSensorInput["cInBG3136"](sInName := 'BG3136',
	                                xInSensor := "BG3136",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3136"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3136"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3137
	    #fbSensorInput["cInBG3137"](sInName := 'BG3137',
	                                xInSensor := "BG3137",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3137"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3137"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	
	REGION BG3140
	    #fbSensorInput["cInBG3140"](sInName := 'BG3140',
	                                xInSensor := "BG3140",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3140"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3140"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3142
	    #fbSensorInput["cInBG3142"](sInName := 'BG3142',
	                                xInSensor := "BG3142",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3142"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3142"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3143
	    #fbSensorInput["cInBG3143"](sInName := 'BG3143',
	                                xInSensor := "BG3143",
	                                tInJamR := t#2s,
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3143"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3143"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3144
	    #fbSensorInput["cInBG3144"](sInName := 'BG3144',
	                                xInSensor := "BG3144",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3144"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3144"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3146
	    #fbSensorInput["cInBG3146"](sInName := 'BG3146',
	                                xInSensor := "BG3146",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3146"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3146"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3147
	    #fbSensorInput["cInBG3147"](sInName := 'BG3147',
	                                xInSensor := "BG3147",
	                                tInJamR := t#2s,
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3147"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3147"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	
	REGION BG3150
	    #fbSensorInput["cInBG3150"](sInName := 'BG3150',
	                                xInSensor := "BG3150",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3150"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3150"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3152
	    #fbSensorInput["cInBG3152"](sInName := 'BG3152',
	                                xInSensor := "BG3152",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3152"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3152"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3153
	    #fbSensorInput["cInBG3153"](sInName := 'BG3153',
	                                xInSensor := "BG3153",
	                                tInJamR := t#2s,
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3153"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3153"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3154
	    #fbSensorInput["cInBG3154"](sInName := 'BG3154',
	                                xInSensor := "BG3154",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3154"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3154"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3156
	    #fbSensorInput["cInBG3156"](sInName := 'BG3156',
	                                xInSensor := "BG3156",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3156"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3156"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3157
	    #fbSensorInput["cInBG3157"](sInName := 'BG3157',
	                                xInSensor := "BG3157",
	                                tInJamR := t#2s,
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3157"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3157"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	
	
	REGION BG3240
	    #fbSensorInput["cInBG3240"](sInName := 'BG3240',
	                                xInSensor := "BG3240",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3240"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3240"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3241
	    #fbSensorInput["cInBG3241"](sInName := 'BG3241',
	                                xInSensor := "BG3241",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3241"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3241"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3242
	    #fbSensorInput["cInBG3242"](sInName := 'BG3242',
	                                xInSensor := "BG3242",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3242"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3242"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3243
	    #fbSensorInput["cInBG3243"](sInName := 'BG3243',
	                                xInSensor := "BG3243",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3243"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3243"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3245
	    #fbSensorInput["cInBG3245"](sInName := 'BG3245',
	                                xInSensor := "BG3245",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3245"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3245"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3246
	    #fbSensorInput["cInBG3246"](sInName := 'BG3246',
	                                xInSensor := "BG3246",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3246"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3246"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3250
	    #fbSensorInput["cInBG3250"](sInName := 'BG3250',
	                                xInSensor := "BG3250",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3250"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3250"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3251
	    #fbSensorInput["cInBG3251"](sInName := 'BG3251',
	                                xInSensor := "BG3251",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3251"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3251"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3252
	    #fbSensorInput["cInBG3252"](sInName := 'BG3252',
	                                xInSensor := "BG3252",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3252"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3252"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3253
	    #fbSensorInput["cInBG3253"](sInName := 'BG3253',
	                                xInSensor := "BG3253",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3253"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3253"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3254
	    #fbSensorInput["cInBG3254"](sInName := 'BG3254',
	                                xInSensor := "BG3254",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3254"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3254"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3257
	    #fbSensorInput["cInBG3257"](sInName := 'BG3257',
	                                xInSensor := "BG3257",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3257"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3257"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3260
	    #fbSensorInput["cInBG3260"](sInName := 'BG3260',
	                                xInSensor := "BG3260",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3260"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3260"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3261
	    #fbSensorInput["cInBG3261"](sInName := 'BG3261',
	                                xInSensor := "BG3261",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3261"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3261"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3262
	    #fbSensorInput["cInBG3262"](sInName := 'BG3262',
	                                xInSensor := "BG3262",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3262"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3262"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3263
	    #fbSensorInput["cInBG3263"](sInName := 'BG3263',
	                                xInSensor := "BG3263",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3263"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3263"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3264
	    #fbSensorInput["cInBG3264"](sInName := 'BG3264',
	                                xInSensor := "BG3264",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3264"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3264"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3265
	    #fbSensorInput["cInBG3265"](sInName := 'BG3265',
	                                xInSensor := "BG3265",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3265"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3265"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3270
	    #fbSensorInput["cInBG3270"](sInName := 'BG3270',
	                                xInSensor := "BG3270",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3270"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3270"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3271
	    #fbSensorInput["cInBG3271"](sInName := 'BG3271',
	                                xInSensor := "BG3271",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3271"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3271"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3272
	    #fbSensorInput["cInBG3272"](sInName := 'BG3272',
	                                xInSensor := "BG3272",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3272"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3272"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3273
	    #fbSensorInput["cInBG3273"](sInName := 'BG3273',
	                                xInSensor := "BG3273",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3273"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3273"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3274
	    #fbSensorInput["cInBG3274"](sInName := 'BG3274',
	                                xInSensor := "BG3274",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3274"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3274"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3275
	    #fbSensorInput["cInBG3275"](sInName := 'BG3275',
	                                xInSensor := "BG3275",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3275"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3275"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3276
	    #fbSensorInput["cInBG3276"](sInName := 'BG3276',
	                                xInSensor := "BG3276",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3276"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3276"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3280
	    #fbSensorInput["cInBG3280"](sInName := 'BG3280',
	                                xInSensor := "BG3280",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3280"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3280"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3281
	    #fbSensorInput["cInBG3281"](sInName := 'BG3281',
	                                xInSensor := "BG3281",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3281"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3281"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3282
	    #fbSensorInput["cInBG3282"](sInName := 'BG3282',
	                                xInSensor := "BG3282",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3282"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3282"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3283
	    #fbSensorInput["cInBG3283"](sInName := 'BG3283',
	                                xInSensor := "BG3283",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3283"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3283"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3284
	    #fbSensorInput["cInBG3284"](sInName := 'BG3284',
	                                xInSensor := "BG3284",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3284"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3284"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3285
	    #fbSensorInput["cInBG3285"](sInName := 'BG3285',
	                                xInSensor := "BG3285",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3285"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3285"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3286
	    #fbSensorInput["cInBG3286"](sInName := 'BG3286',
	                                xInSensor := "BG3286",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3286"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3286"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3290
	    #fbSensorInput["cInBG3290"](sInName := 'BG3290',
	                                xInSensor := "BG3290",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3290"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3290"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3291
	    #fbSensorInput["cInBG3291"](sInName := 'BG3291',
	                                xInSensor := "BG3291",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3291"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3291"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3292
	    #fbSensorInput["cInBG3292"](sInName := 'BG3292',
	                                xInSensor := "BG3292",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3292"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3292"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3293
	    #fbSensorInput["cInBG3293"](sInName := 'BG3293',
	                                xInSensor := "BG3293",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3293"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3293"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3294
	    #fbSensorInput["cInBG3294"](sInName := 'BG3294',
	                                xInSensor := "BG3294",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3294"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3294"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3295
	    #fbSensorInput["cInBG3295"](sInName := 'BG3295',
	                                xInSensor := "BG3295",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3295"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3295"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3296
	    #fbSensorInput["cInBG3296"](sInName := 'BG3296',
	                                xInSensor := "BG3296",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3296"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3296"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3297
	    #fbSensorInput["cInBG3297"](sInName := 'BG3297',
	                                xInSensor := "BG3297",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3297"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3297"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3300
	    #fbSensorInput["cInBG3300"](sInName := 'BG3300',
	                                xInSensor := "BG3300",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3300"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3300"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3304
	    #fbSensorInput["cInBG3304"](sInName := 'BG3304',
	                                xInSensor := "BG3304",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3304"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3304"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3305
	    #fbSensorInput["cInBG3305"](sInName := 'BG3305',
	                                xInSensor := "BG3305",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3305"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3305"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3306
	    #fbSensorInput["cInBG3306"](sInName := 'BG3306',
	                                xInSensor := "BG3306",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3306"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3306"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3310
	    #fbSensorInput["cInBG3310"](sInName := 'BG3310',
	                                xInSensor := "BG3310",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3310"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3310"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3311
	    #fbSensorInput["cInBG3311"](sInName := 'BG3311',
	                                xInSensor := "BG3311",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3311"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3311"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3312
	    #fbSensorInput["cInBG3312"](sInName := 'BG3312',
	                                xInSensor := "BG3312",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3312"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3312"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3313
	    #fbSensorInput["cInBG3313"](sInName := 'BG3313',
	                                xInSensor := "BG3313",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3313"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3313"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3314
	    #fbSensorInput["cInBG3314"](sInName := 'BG3314',
	                                xInSensor := "BG3314",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3314"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3314"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3315
	    #fbSensorInput["cInBG3315"](sInName := 'BG3315',
	                                xInSensor := "BG3315",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3315"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3315"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3320
	    #fbSensorInput["cInBG3320"](sInName := 'BG3320',
	                                xInSensor := "BG3320",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3320"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3320"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3321
	    #fbSensorInput["cInBG3321"](sInName := 'BG3321',
	                                xInSensor := "BG3321",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3321"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3321"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3322
	    #fbSensorInput["cInBG3322"](sInName := 'BG3322',
	                                xInSensor := "BG3322",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3322"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3322"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3323
	    #fbSensorInput["cInBG3323"](sInName := 'BG3323',
	                                xInSensor := "BG3323",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3323"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3323"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3324
	    #fbSensorInput["cInBG3324"](sInName := 'BG3324',
	                                xInSensor := "BG3324",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3324"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3324"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3325
	    #fbSensorInput["cInBG3325"](sInName := 'BG3325',
	                                xInSensor := "BG3325",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3325"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3325"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3330
	    #fbSensorInput["cInBG3330"](sInName := 'BG3330',
	                                xInSensor := "BG3330",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3330"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3330"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3331
	    #fbSensorInput["cInBG3331"](sInName := 'BG3331',
	                                xInSensor := "BG3331",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3331"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3331"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3332
	    #fbSensorInput["cInBG3332"](sInName := 'BG3332',
	                                xInSensor := "BG3332",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3332"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3332"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3334
	    #fbSensorInput["cInBG3334"](sInName := 'BG3334',
	                                xInSensor := "BG3334",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3334"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3334"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3335
	    #fbSensorInput["cInBG3335"](sInName := 'BG3335',
	                                xInSensor := "BG3335",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3335"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3335"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3337
	    #fbSensorInput["cInBG3337"](sInName := 'BG3337',
	                                xInSensor := "BG3337",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3337"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3337"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3340
	    #fbSensorInput["cInBG3340"](sInName := 'BG3340',
	                                xInSensor := "BG3340",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3340"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3340"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3341
	    #fbSensorInput["cInBG3341"](sInName := 'BG3341',
	                                xInSensor := "BG3341",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3341"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3341"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3342
	    #fbSensorInput["cInBG3342"](sInName := 'BG3342',
	                                xInSensor := "BG3342",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3342"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3342"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3343
	    #fbSensorInput["cInBG3343"](sInName := 'BG3343',
	                                xInSensor := "BG3343",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3343"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3343"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3344
	    #fbSensorInput["cInBG3344"](sInName := 'BG3344',
	                                xInSensor := "BG3344",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3344"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3344"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3345
	    #fbSensorInput["cInBG3345"](sInName := 'BG3345',
	                                xInSensor := "BG3345",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3345"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3345"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3346
	    #fbSensorInput["cInBG3346"](sInName := 'BG3346',
	                                xInSensor := "BG3346",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3346"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3346"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3347
	    #fbSensorInput["cInBG3347"](sInName := 'BG3347',
	                                xInSensor := "BG3347",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3347"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3347"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3354
	    #fbSensorInput["cInBG3354"](sInName := 'BG3354',
	                                xInSensor := "BG3354",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3354"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3354"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3355
	    #fbSensorInput["cInBG3355"](sInName := 'BG3355',
	                                xInSensor := "BG3355",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3355"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3355"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3356
	    #fbSensorInput["cInBG3356"](sInName := 'BG3356',
	                                xInSensor := "BG3356",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3356"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3356"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG3357
	    #fbSensorInput["cInBG3357"](sInName := 'BG3357',
	                                xInSensor := "BG3357",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3357"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3357"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG4740 KEIN BOOLSCHER SENSOREINGANG
	    #fbSensorInput["cInBG4740"](sInName := 'BG4740',
	                                xInSensor := "BG4740",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG4740"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG4740"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG4820 KEIN BOOLSCHER SENSOREINGANG
	    #fbSensorInput["cInBG4820"](sInName := 'BG4820',
	                                xInSensor := "BG4820",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG4820"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG4820"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG5060 KEIN BOOLSCHER SENSOREINGANG
	    #fbSensorInput["cInBG5060"](sInName := 'BG5060',
	                                xInSensor := "BG5060",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG5060"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG5060"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	REGION BG5140 KEIN BOOLSCHER SENSOREINGANG
	    #fbSensorInput["cInBG5140"](sInName := 'BG5140',
	                                xInSensor := "BG5140",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG5140"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG5140"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	
	REGION BG3007
	    #fbSensorInput["cInBG3007"](sInName := 'BG3007',
	                                xInSensor := "BG3007",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3007"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3007"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	
	REGION BG3316
	    #fbSensorInput["cInBG3316"](sInName := 'BG3316',
	                                xInSensor := "BG3316",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3316"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3316"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	
	REGION BG3301
	    #fbSensorInput["cInBG3301"](sInName := 'BG3301',
	                                xInSensor := "BG3301",
	                                stInOutSensor := "DB_Inputs".Sensors["cInBG3301"],
	                                stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3301"],
	                                stInOutControlUnitCabinet :=  "DB_MachineGlobal".stStateMainOF1);
	END_REGION ;
	
	
	// REGION Warnungen beim Erkennen von Flackern werfen
	//     FOR #idx := 1 TO "cNoSensors" DO
	//         // Nur der erste Fehler am Tag wird gemeldet um vollschreiben der MMC zu verhindern
	//         IF #fbSensorInput[#idx].xOutFlickerError AND #fbSensorInput[#idx].nOutCntFlicker = 1 THEN
	//             #tFlicker := TRUE;
	//             EXIT;
	//         END_IF;
	//     END_FOR;
	
	//     IF #idx > "cNoSensors" OR #idx < 1 THEN
	//         #idx := 1;
	//         #tFlicker := FALSE;
	//     END_IF;
	
	// END_REGION
	
END_FUNCTION_BLOCK

