FUNCTION_BLOCK "FB_CallSensors"
{ S7_Optimized_Access := 'TRUE' }
VERSION : 0.1
   VAR_IN_OUT 
      stInOutControlUnitCabinet : "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 Sensor-Input Baustein Aufrufe
	    REGION BG3240
	        #fbSensorInput["cInBG3240"](sInName := 'BG3240',
	                                    xInSensor := "BG3240",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3240"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3240"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3241
	        #fbSensorInput["cInBG3241"](sInName := 'BG3241',
	                                    xInSensor := "BG3241",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3241"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3241"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3242
	        #fbSensorInput["cInBG3242"](sInName := 'BG3242',
	                                    xInSensor := "BG3242",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3242"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3242"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3243
	        #fbSensorInput["cInBG3243"](sInName := 'BG3243',
	                                    xInSensor := "BG3243",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3243"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3243"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3244
	        #fbSensorInput["cInBG3244"](sInName := 'BG3244',
	                                    xInSensor := "BG3244",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3244"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3244"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3245
	        #fbSensorInput["cInBG3245"](sInName := 'BG3245',
	                                    xInSensor := "BG3245",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3245"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3245"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3246
	        #fbSensorInput["cInBG3246"](sInName := 'BG3246',
	                                    xInSensor := "BG3246",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3246"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3246"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3247
	        #fbSensorInput["cInBG3247"](sInName := 'BG3247',
	                                    xInSensor := "BG3247",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3247"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3247"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3250
	        #fbSensorInput["cInBG3250"](sInName := 'BG3250',
	                                    xInSensor := "BG3250",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3250"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3250"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3251
	        #fbSensorInput["cInBG3251"](sInName := 'BG3251',
	                                    xInSensor := "BG3251",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3251"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3251"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3252
	        #fbSensorInput["cInBG3252"](sInName := 'BG3252',
	                                    xInSensor := "BG3252",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3252"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3252"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3253
	        #fbSensorInput["cInBG3253"](sInName := 'BG3253',
	                                    xInSensor := "BG3253",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3253"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3253"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3254
	        #fbSensorInput["cInBG3254"](sInName := 'BG3254',
	                                    xInSensor := "BG3254",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3254"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3254"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3255
	        #fbSensorInput["cInBG3255"](sInName := 'BG3255',
	                                    xInSensor := "BG3255",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3255"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3255"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3256
	        #fbSensorInput["cInBG3256"](sInName := 'BG3256',
	                                    xInSensor := "BG3256",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3256"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3256"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3257
	        #fbSensorInput["cInBG3257"](sInName := 'BG3257',
	                                    xInSensor := "BG3257",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3257"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3257"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3260
	        #fbSensorInput["cInBG3260"](sInName := 'BG3260',
	                                    xInSensor := "BG3260",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3260"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3260"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3261
	        #fbSensorInput["cInBG3261"](sInName := 'BG3261',
	                                    xInSensor := "BG3261",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3261"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3261"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3262
	        #fbSensorInput["cInBG3262"](sInName := 'BG3262',
	                                    xInSensor := "BG3262",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3262"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3262"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3300
	        #fbSensorInput["cInBG3300"](sInName := 'BG3300',
	                                    xInSensor := "BG3300",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3300"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3300"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3301
	        #fbSensorInput["cInBG3301"](sInName := 'BG3301',
	                                    xInSensor := "BG3301",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3301"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3301"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3302
	        #fbSensorInput["cInBG3302"](sInName := 'BG3302',
	                                    xInSensor := "BG3302",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3302"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3302"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3303
	        #fbSensorInput["cInBG3303"](sInName := 'BG3303',
	                                    xInSensor := "BG3303",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3303"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3303"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3304
	        #fbSensorInput["cInBG3304"](sInName := 'BG3304',
	                                    xInSensor := "BG3304",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3304"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3304"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3305
	        #fbSensorInput["cInBG3305"](sInName := 'BG3305',
	                                    xInSensor := "BG3305",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3305"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3305"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3306
	        #fbSensorInput["cInBG3306"](sInName := 'BG3306',
	                                    xInSensor := "BG3306",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3306"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3306"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3307
	        #fbSensorInput["cInBG3307"](sInName := 'BG3307',
	                                    xInSensor := "BG3307",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3307"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3307"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3310
	        #fbSensorInput["cInBG3310"](sInName := 'BG3310',
	                                    xInSensor := "BG3310",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3310"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3310"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3311
	        #fbSensorInput["cInBG3311"](sInName := 'BG3311',
	                                    xInSensor := "BG3311",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3311"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3311"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3312
	        #fbSensorInput["cInBG3312"](sInName := 'BG3312',
	                                    xInSensor := "BG3312",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3312"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3312"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3313
	        #fbSensorInput["cInBG3313"](sInName := 'BG3313',
	                                    xInSensor := "BG3313",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3313"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3313"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3314
	        #fbSensorInput["cInBG3314"](sInName := 'BG3314',
	                                    xInSensor := "BG3314",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3314"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3314"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3315
	        #fbSensorInput["cInBG3315"](sInName := 'BG3315',
	                                    xInSensor := "BG3315",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3315"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3315"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3316
	        #fbSensorInput["cInBG3316"](sInName := 'BG3316',
	                                    xInSensor := "BG3316",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3316"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3316"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3317
	        #fbSensorInput["cInBG3317"](sInName := 'BG3317',
	                                    xInSensor := "BG3317",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3317"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3317"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3320
	        #fbSensorInput["cInBG3320"](sInName := 'BG3320',
	                                    xInSensor := "BG3320",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3320"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3320"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3321
	        #fbSensorInput["cInBG3321"](sInName := 'BG3321',
	                                    xInSensor := "BG3321",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3321"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3321"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3322
	        #fbSensorInput["cInBG3322"](sInName := 'BG3322',
	                                    xInSensor := "BG3322",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3322"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3322"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3323
	        #fbSensorInput["cInBG3323"](sInName := 'BG3323',
	                                    xInSensor := "BG3323",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3323"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3323"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3324
	        #fbSensorInput["cInBG3324"](sInName := 'BG3324',
	                                    xInSensor := "BG3324",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3324"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3324"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3325
	        #fbSensorInput["cInBG3325"](sInName := 'BG3325',
	                                    xInSensor := "BG3325",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3325"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3325"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3326
	        #fbSensorInput["cInBG3326"](sInName := 'BG3326',
	                                    xInSensor := "BG3326",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3326"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3326"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3327
	        #fbSensorInput["cInBG3327"](sInName := 'BG3327',
	                                    xInSensor := "BG3327",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3327"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3327"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3330
	        #fbSensorInput["cInBG3330"](sInName := 'BG3330',
	                                    xInSensor := "BG3330",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3330"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3330"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3331
	        #fbSensorInput["cInBG3331"](sInName := 'BG3331',
	                                    xInSensor := "BG3331",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3331"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3331"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3332
	        #fbSensorInput["cInBG3332"](sInName := 'BG3332',
	                                    xInSensor := "BG3332",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3332"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3332"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3333
	        #fbSensorInput["cInBG3333"](sInName := 'BG3333',
	                                    xInSensor := "BG3333",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3333"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3333"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3334
	        #fbSensorInput["cInBG3334"](sInName := 'BG3334',
	                                    xInSensor := "BG3334",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3334"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3334"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3335
	        #fbSensorInput["cInBG3335"](sInName := 'BG3335',
	                                    xInSensor := "BG3335",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3335"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3335"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3450
	        #fbSensorInput["cInBG3450"](sInName := 'BG3450',
	                                    xInSensor := "BG3450",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3450"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3450"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3451
	        #fbSensorInput["cInBG3451"](sInName := 'BG3451',
	                                    xInSensor := "BG3451",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3451"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3451"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3452
	        #fbSensorInput["cInBG3452"](sInName := 'BG3452',
	                                    xInSensor := "BG3452",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3452"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3452"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3453
	        #fbSensorInput["cInBG3453"](sInName := 'BG3453',
	                                    xInSensor := "BG3453",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3453"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3453"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3454
	        #fbSensorInput["cInBG3454"](sInName := 'BG3454',
	                                    xInSensor := "BG3454",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3454"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3454"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3455
	        #fbSensorInput["cInBG3455"](sInName := 'BG3455',
	                                    xInSensor := "BG3455",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3455"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3455"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3456
	        #fbSensorInput["cInBG3456"](sInName := 'BG3456',
	                                    xInSensor := "BG3456",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3456"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3456"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3457
	        #fbSensorInput["cInBG3457"](sInName := 'BG3457',
	                                    xInSensor := "BG3457",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3457"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3457"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3460
	        #fbSensorInput["cInBG3460"](sInName := 'BG3460',
	                                    xInSensor := "BG3460",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3460"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3460"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3461
	        #fbSensorInput["cInBG3461"](sInName := 'BG3461',
	                                    xInSensor := "BG3461",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3461"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3461"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    
	    REGION BG3360
	        #fbSensorInput["cInBG3360"](sInName := 'BG3360',
	                                    xInSensor := "BG3360",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3360"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3360"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3361
	        #fbSensorInput["cInBG3361"](sInName := 'BG3361',
	                                    xInSensor := "BG3361",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3361"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3361"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3362
	        #fbSensorInput["cInBG3362"](sInName := 'BG3362',
	                                    xInSensor := "BG3362",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3362"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3362"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3363
	        #fbSensorInput["cInBG3363"](sInName := 'BG3363',
	                                    xInSensor := "BG3363",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3363"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3363"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3364
	        #fbSensorInput["cInBG3364"](sInName := 'BG3364',
	                                    xInSensor := "BG3364",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3364"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3364"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3365
	        #fbSensorInput["cInBG3365"](sInName := 'BG3365',
	                                    xInSensor := "BG3365",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3365"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3365"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3366
	        #fbSensorInput["cInBG3366"](sInName := 'BG3366',
	                                    xInSensor := "BG3366",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3366"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3366"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3367
	        #fbSensorInput["cInBG3367"](sInName := 'BG3367',
	                                    xInSensor := "BG3367",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3367"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3367"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3370
	        #fbSensorInput["cInBG3370"](sInName := 'BG3370',
	                                    xInSensor := "BG3370",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3370"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3370"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3371
	        #fbSensorInput["cInBG3371"](sInName := 'BG3371',
	                                    xInSensor := "BG3371",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3371"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3371"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3372
	        #fbSensorInput["cInBG3372"](sInName := 'BG3372',
	                                    xInSensor := "BG3372",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3372"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3372"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3373
	        #fbSensorInput["cInBG3373"](sInName := 'BG3373',
	                                    xInSensor := "BG3373",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3373"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3373"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3374
	        #fbSensorInput["cInBG3374"](sInName := 'BG3374',
	                                    xInSensor := "BG3374",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3374"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3374"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3375
	        #fbSensorInput["cInBG3375"](sInName := 'BG3375',
	                                    xInSensor := "BG3375",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3375"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3375"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3376
	        #fbSensorInput["cInBG3376"](sInName := 'BG3376',
	                                    xInSensor := "BG3376",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3376"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3376"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3377
	        #fbSensorInput["cInBG3377"](sInName := 'BG3377',
	                                    xInSensor := "BG3377",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3377"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3377"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3380
	        #fbSensorInput["cInBG3380"](sInName := 'BG3380',
	                                    xInSensor := "BG3380",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3380"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3380"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3381
	        #fbSensorInput["cInBG3381"](sInName := 'BG3381',
	                                    xInSensor := "BG3381",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3381"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3381"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3382
	        #fbSensorInput["cInBG3382"](sInName := 'BG3382',
	                                    xInSensor := "BG3382",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3382"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3382"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3383
	        #fbSensorInput["cInBG3383"](sInName := 'BG3383',
	                                    xInSensor := "BG3383",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3383"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3383"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3384
	        #fbSensorInput["cInBG3384"](sInName := 'BG3384',
	                                    xInSensor := "BG3384",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3384"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3384"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3385
	        #fbSensorInput["cInBG3385"](sInName := 'BG3385',
	                                    xInSensor := "BG3385",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3385"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3385"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3386
	        #fbSensorInput["cInBG3386"](sInName := 'BG3386',
	                                    xInSensor := "BG3386",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3386"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3386"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3387
	        #fbSensorInput["cInBG3387"](sInName := 'BG3387',
	                                    xInSensor := "BG3387",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3387"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3387"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3420
	        #fbSensorInput["cInBG3420"](sInName := 'BG3420',
	                                    xInSensor := "BG3420",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3420"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3420"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3421
	        #fbSensorInput["cInBG3421"](sInName := 'BG3421',
	                                    xInSensor := "BG3421",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3421"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3421"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3422
	        #fbSensorInput["cInBG3422"](sInName := 'BG3422',
	                                    xInSensor := "BG3422",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3422"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3422"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3423
	        #fbSensorInput["cInBG3423"](sInName := 'BG3423',
	                                    xInSensor := "BG3423",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3423"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3423"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3424
	        #fbSensorInput["cInBG3424"](sInName := 'BG3424',
	                                    xInSensor := "BG3424",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3424"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3424"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3425
	        #fbSensorInput["cInBG3425"](sInName := 'BG3425',
	                                    xInSensor := "BG3425",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3425"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3425"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3426
	        #fbSensorInput["cInBG3426"](sInName := 'BG3426',
	                                    xInSensor := "BG3426",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3426"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3426"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3427
	        #fbSensorInput["cInBG3427"](sInName := 'BG3427',
	                                    xInSensor := "BG3427",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3427"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3427"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3430
	        #fbSensorInput["cInBG3430"](sInName := 'BG3430',
	                                    xInSensor := "BG3430",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3430"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3430"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3431
	        #fbSensorInput["cInBG3431"](sInName := 'BG3431',
	                                    xInSensor := "BG3431",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3431"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3431"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3432
	        #fbSensorInput["cInBG3432"](sInName := 'BG3432',
	                                    xInSensor := "BG3432",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3432"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3432"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3433
	        #fbSensorInput["cInBG3433"](sInName := 'BG3433',
	                                    xInSensor := "BG3433",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3433"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3433"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3434
	        #fbSensorInput["cInBG3434"](sInName := 'BG3434',
	                                    xInSensor := "BG3434",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3434"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3434"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3435
	        #fbSensorInput["cInBG3435"](sInName := 'BG3435',
	                                    xInSensor := "BG3435",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3435"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3435"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3436
	        #fbSensorInput["cInBG3436"](sInName := 'BG3436',
	                                    xInSensor := "BG3436",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3436"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3436"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3437
	        #fbSensorInput["cInBG3437"](sInName := 'BG3437',
	                                    xInSensor := "BG3437",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3437"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3437"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3440
	        #fbSensorInput["cInBG3440"](sInName := 'BG3440',
	                                    xInSensor := "BG3440",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3440"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3440"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3441
	        #fbSensorInput["cInBG3441"](sInName := 'BG3441',
	                                    xInSensor := "BG3441",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3441"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3441"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3442
	        #fbSensorInput["cInBG3442"](sInName := 'BG3442',
	                                    xInSensor := "BG3442",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3442"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3442"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3443
	        #fbSensorInput["cInBG3443"](sInName := 'BG3443',
	                                    xInSensor := "BG3443",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3443"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3443"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	    REGION BG3444
	        #fbSensorInput["cInBG3444"](sInName := 'BG3444',
	                                    xInSensor := "BG3444",
	                                    stInOutSensor := "DB_Inputs".Sensors["cInBG3444"],
	                                    stInOutHMI := "DB_Interface_HMI".arSensors["cInBG3444"],
	                                    stInOutControlUnitCabinet := "DB_MachineGlobal".stStateMain);
	    END_REGION ;
	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

