FUNCTION_BLOCK "FB_BarcodeReader"
{ S7_Optimized_Access := 'FALSE' }
AUTHOR : 'e.yueksel'
VERSION : 0.1
//Aufrufe Barcode-Reader
   VAR 
      fbBarcodeReaderBX6100 : "FB_BarcodeReaderCognex";
      fbBarcodeReaderBX6101 : "FB_BarcodeReaderCognex";
      fbBarcodeReaderBX6102 : "FB_BarcodeReaderCognex";
      fbBarcodeReaderBX6103 : "FB_BarcodeReaderCognex";
      fbBarcodeReaderBX6104 : "FB_BarcodeReaderCognex";
      fbBarcodeReaderBX6105 : "FB_BarcodeReaderCognex";
      fbBarcodeReaderBX6106 : "FB_BarcodeReaderCognex";
      fbBarcodeReaderBX6107 : "FB_BarcodeReaderCognex";
      fbBarcodeReaderBX6108 : "FB_BarcodeReaderCognex";
      fbBarcodeReaderBX6109 : "FB_BarcodeReaderCognex";
      fbBarcodeReaderBX6110 : "FB_BarcodeReaderCognex";
      fbBarcodeReaderBX6111 : "FB_BarcodeReaderCognex";
      fbBarcodeReaderBX6112 : "FB_BarcodeReaderCognex";
      fbBarcodeReaderBX6113 : "FB_BarcodeReaderCognex";
      fbBarcodeReaderBX6114 : "FB_BarcodeReaderCognex";
      fbBarcodeReaderBX6115 : "FB_BarcodeReaderCognex";
      fbBarcodeReaderBX6116 : "FB_BarcodeReaderCognex";
      fbBarcodeReaderBX6117 : "FB_BarcodeReaderCognex";
      fbBarcodeReaderBX6118 : "FB_BarcodeReaderCognex";
      fbBarcodeReaderBX6119 : "FB_BarcodeReaderCognex";
      fbBarcodeReaderBX6120 : "FB_BarcodeReaderCognex";
      fbBarcodeReaderBX6121 : "FB_BarcodeReaderCognex";
      fbBarcodeReaderBX6122 : "FB_BarcodeReaderCognex";
      fbBarcodeReaderBX6123 : "FB_BarcodeReaderCognex";
      fbBarcodeReaderBX6124 : "FB_BarcodeReaderCognex";
      fbBarcodeReaderBX6125 : "FB_BarcodeReaderCognex";
      fbBarcodeReaderBX6126 : "FB_BarcodeReaderCognex";
      fbBarcodeReaderBX6127 : "FB_BarcodeReaderCognex";
      fbBarcodeReaderBX6128 : "FB_BarcodeReaderCognex";
      fbBarcodeReaderBX6129 : "FB_BarcodeReaderCognex";
      fbBarcodeReaderBX6130 : "FB_BarcodeReaderCognex";
      fbBarcodeReaderBX6131 : "FB_BarcodeReaderCognex";
      fbBarcodeReaderBX6133 : "FB_BarcodeReaderCognex";
      stCognexInterface : Struct
         BX6100 : "stCognexInterface";
         BX6101 : "stCognexInterface";
         BX6102 : "stCognexInterface";
         BX6103 : "stCognexInterface";
         BX6104 : "stCognexInterface";
         BX6105 : "stCognexInterface";
         BX6106 : "stCognexInterface";
         BX6107 : "stCognexInterface";
         BX6108 : "stCognexInterface";
         BX6109 : "stCognexInterface";
         BX6110 : "stCognexInterface";
         BX6111 : "stCognexInterface";
         BX6112 : "stCognexInterface";
         BX6113 : "stCognexInterface";
         BX6114 : "stCognexInterface";
         BX6115 : "stCognexInterface";
         BX6116 : "stCognexInterface";
         BX6117 : "stCognexInterface";
         BX6118 : "stCognexInterface";
         BX6119 : "stCognexInterface";
         BX6120 : "stCognexInterface";
         BX6121 : "stCognexInterface";
         BX6122 : "stCognexInterface";
         BX6123 : "stCognexInterface";
         BX6124 : "stCognexInterface";
         BX6125 : "stCognexInterface";
         BX6126 : "stCognexInterface";
         BX6127 : "stCognexInterface";
         BX6128 : "stCognexInterface";
         BX6129 : "stCognexInterface";
         BX6130 : "stCognexInterface";
         BX6131 : "stCognexInterface";
         BX6133 : "stCognexInterface";
      END_STRUCT;
      stHMI : Struct
         stBarcodeReader : Struct
            BX6100 : "UDT_BarcodeReader";
            BX6101 : "UDT_BarcodeReader";
            BX6102 : "UDT_BarcodeReader";
            BX6103 : "UDT_BarcodeReader";
            BX6104 : "UDT_BarcodeReader";
            BX6105 : "UDT_BarcodeReader";
            BX6106 : "UDT_BarcodeReader";
            BX6107 : "UDT_BarcodeReader";
            BX6108 : "UDT_BarcodeReader";
            BX6109 : "UDT_BarcodeReader";
            BX6110 : "UDT_BarcodeReader";
            BX6111 : "UDT_BarcodeReader";
            BX6112 : "UDT_BarcodeReader";
            BX6113 : "UDT_BarcodeReader";
            BX6114 : "UDT_BarcodeReader";
            BX6115 : "UDT_BarcodeReader";
            BX6116 : "UDT_BarcodeReader";
            BX6117 : "UDT_BarcodeReader";
            BX6118 : "UDT_BarcodeReader";
            BX6119 : "UDT_BarcodeReader";
            BX6120 : "UDT_BarcodeReader";
            BX6121 : "UDT_BarcodeReader";
            BX6122 : "UDT_BarcodeReader";
            BX6123 : "UDT_BarcodeReader";
            BX6124 : "UDT_BarcodeReader";
            BX6125 : "UDT_BarcodeReader";
            BX6126 : "UDT_BarcodeReader";
            BX6127 : "UDT_BarcodeReader";
            BX6128 : "UDT_BarcodeReader";
            BX6129 : "UDT_BarcodeReader";
            BX6130 : "UDT_BarcodeReader";
            BX6131 : "UDT_BarcodeReader";
            BX6133 : "UDT_BarcodeReader";
         END_STRUCT;
      END_STRUCT;
      stMainState : "IntfMainState";
   END_VAR


BEGIN
	    REGION Barcode Reader - BX6100        
	        #stCognexInterface.BX6100.xInCamTriggerReady := "bx6100-TriggerReady";
	        #stCognexInterface.BX6100.xInCamTriggerAck := "bx6100-TriggerAck";
	        #stCognexInterface.BX6100.xInCamResultsAvailable := "bx6100-Results Available";
	        #stCognexInterface.BX6100.xInCamGeneralFault := "bx6100-General Fault";
	        #stCognexInterface.BX6100.hwInCamInspectionResults := "=A01+UC0605-BX6100~Ergebnisse_–_64_Bytes_1";
	        
	        #fbBarcodeReaderBX6100(xInActivateCheckASCI := TRUE,
	                               tInTimeout := T#5s,
	                               stInOutInterface := #stCognexInterface.BX6100,
	                               stInOutControlUnitCabinet := #stMainState,
	                               stInOutHMI := #stHMI.stBarcodeReader.BX6100);
	        
	        "bx6100-TriggerEnable" := #stCognexInterface.BX6100.xOutCamTriggerEnable;
	        "bx6100-Trigger" := #stCognexInterface.BX6100.xOutCamTrigger;
	        "bx6100-ResultsAck" := #stCognexInterface.BX6100.xOutCamResultsAck;
	        
	    END_REGION
	    
	    REGION Barcode Reader - BX6101       
	        #stCognexInterface.BX6101.xInCamTriggerReady := "bx6101-TriggerReady";
	        #stCognexInterface.BX6101.xInCamTriggerAck := "bx6101-TriggerAck";
	        #stCognexInterface.BX6101.xInCamResultsAvailable := "bx6101-Results Available";
	        #stCognexInterface.BX6101.xInCamGeneralFault := "bx6101-General Fault";
	        #stCognexInterface.BX6101.hwInCamInspectionResults := "=A01+UC0601-BX6101~Ergebnisse_–_64_Bytes_1";
	        
	        #fbBarcodeReaderBX6101(xInActivateCheckASCI := TRUE,
	                               tInTimeout := T#5s,
	                               stInOutInterface := #stCognexInterface.BX6101,
	                               stInOutControlUnitCabinet := #stMainState,
	                               stInOutHMI := #stHMI.stBarcodeReader.BX6101);
	        
	        "bx6101-TriggerEnable" := #stCognexInterface.BX6101.xOutCamTriggerEnable;
	        "bx6101-Trigger" := #stCognexInterface.BX6101.xOutCamTrigger;
	        "bx6101-ResultsAck" := #stCognexInterface.BX6101.xOutCamResultsAck;
	        
	    END_REGION
	    
	    REGION Barcode Reader - BX6102        
	        #stCognexInterface.BX6102.xInCamTriggerReady := "bx6102-TriggerReady";
	        #stCognexInterface.BX6102.xInCamTriggerAck := "bx6102-TriggerAck";
	        #stCognexInterface.BX6102.xInCamResultsAvailable := "bx6102-Results Available";
	        #stCognexInterface.BX6102.xInCamGeneralFault := "bx6102-General Fault";
	        #stCognexInterface.BX6102.hwInCamInspectionResults := "=A01+UC0601-BX6102~Ergebnisse_–_64_Bytes_1";
	        
	        #fbBarcodeReaderBX6102(xInActivateCheckASCI := TRUE,
	                               tInTimeout := T#5s,
	                               stInOutInterface := #stCognexInterface.BX6102,
	                               stInOutControlUnitCabinet := #stMainState,
	                               stInOutHMI := #stHMI.stBarcodeReader.BX6102);
	        
	        "bx6102-TriggerEnable" := #stCognexInterface.BX6102.xOutCamTriggerEnable;
	        "bx6102-Trigger" := #stCognexInterface.BX6102.xOutCamTrigger;
	        "bx6102-ResultsAck" := #stCognexInterface.BX6102.xOutCamResultsAck;
	        
	    END_REGION
	    REGION Barcode Reader - BX6103        
	        #stCognexInterface.BX6103.xInCamTriggerReady := "bx6103-TriggerReady";
	        #stCognexInterface.BX6103.xInCamTriggerAck := "bx6103-TriggerAck";
	        #stCognexInterface.BX6103.xInCamResultsAvailable := "bx6103-Results Available";
	        #stCognexInterface.BX6103.xInCamGeneralFault := "bx6103-General Fault";
	        #stCognexInterface.BX6103.hwInCamInspectionResults := "=A01+UC0601-BX6103~Ergebnisse_–_64_Bytes_1";
	        
	        #fbBarcodeReaderBX6103(xInActivateCheckASCI := TRUE,
	                               tInTimeout := T#5s,
	                               stInOutInterface := #stCognexInterface.BX6103,
	                               stInOutControlUnitCabinet := #stMainState,
	                               stInOutHMI := #stHMI.stBarcodeReader.BX6103);
	        
	        "bx6103-TriggerEnable" := #stCognexInterface.BX6103.xOutCamTriggerEnable;
	        "bx6103-Trigger" := #stCognexInterface.BX6103.xOutCamTrigger;
	        "bx6103-ResultsAck" := #stCognexInterface.BX6103.xOutCamResultsAck;
	        
	    END_REGION
	    REGION Barcode Reader - BX6104        
	        #stCognexInterface.BX6104.xInCamTriggerReady := "bx6104-TriggerReady";
	        #stCognexInterface.BX6104.xInCamTriggerAck := "bx6104-TriggerAck";
	        #stCognexInterface.BX6104.xInCamResultsAvailable := "bx6104-Results Available";
	        #stCognexInterface.BX6104.xInCamGeneralFault := "bx6104-General Fault";
	        #stCognexInterface.BX6104.hwInCamInspectionResults := "=A01+UC0601-BX6104~Ergebnisse_–_64_Bytes_1";
	        
	        #fbBarcodeReaderBX6104(xInActivateCheckASCI := TRUE,
	                               tInTimeout := T#5s,
	                               stInOutInterface := #stCognexInterface.BX6104,
	                               stInOutControlUnitCabinet := #stMainState,
	                               stInOutHMI := #stHMI.stBarcodeReader.BX6104);
	        
	        "bx6104-TriggerEnable" := #stCognexInterface.BX6104.xOutCamTriggerEnable;
	        "bx6104-Trigger" := #stCognexInterface.BX6104.xOutCamTrigger;
	        "bx6104-ResultsAck" := #stCognexInterface.BX6104.xOutCamResultsAck;
	        
	    END_REGION
	    REGION Barcode Reader - BX6105       
	        #stCognexInterface.BX6105.xInCamTriggerReady := "bx6105-TriggerReady";
	        #stCognexInterface.BX6105.xInCamTriggerAck := "bx6105-TriggerAck";
	        #stCognexInterface.BX6105.xInCamResultsAvailable := "bx6105-Results Available";
	        #stCognexInterface.BX6105.xInCamGeneralFault := "bx6105-General Fault";
	        #stCognexInterface.BX6105.hwInCamInspectionResults := "=A01+UC0601-BX6105~Ergebnisse_–_64_Bytes_1";
	        
	        #fbBarcodeReaderBX6105(xInActivateCheckASCI := TRUE,
	                               tInTimeout := T#5s,
	                               stInOutInterface := #stCognexInterface.BX6105,
	                               stInOutControlUnitCabinet := #stMainState,
	                               stInOutHMI := #stHMI.stBarcodeReader.BX6105);
	        
	        "bx6105-TriggerEnable" := #stCognexInterface.BX6105.xOutCamTriggerEnable;
	        "bx6105-Trigger" := #stCognexInterface.BX6105.xOutCamTrigger;
	        "bx6105-ResultsAck" := #stCognexInterface.BX6105.xOutCamResultsAck;
	        
	    END_REGION
	    REGION Barcode Reader - BX6106        
	        #stCognexInterface.BX6106.xInCamTriggerReady := "bx6106-TriggerReady";
	        #stCognexInterface.BX6106.xInCamTriggerAck := "bx6106-TriggerAck";
	        #stCognexInterface.BX6106.xInCamResultsAvailable := "bx6106-Results Available";
	        #stCognexInterface.BX6106.xInCamGeneralFault := "bx6106-General Fault";
	        #stCognexInterface.BX6106.hwInCamInspectionResults := "=A01+UC0601-BX6106~Ergebnisse_–_64_Bytes_1";
	        
	        #fbBarcodeReaderBX6106(xInActivateCheckASCI := TRUE,
	                               tInTimeout := T#5s,
	                               stInOutInterface := #stCognexInterface.BX6106,
	                               stInOutControlUnitCabinet := #stMainState,
	                               stInOutHMI := #stHMI.stBarcodeReader.BX6106);
	        
	        "bx6106-TriggerEnable" := #stCognexInterface.BX6106.xOutCamTriggerEnable;
	        "bx6106-Trigger" := #stCognexInterface.BX6106.xOutCamTrigger;
	        "bx6106-ResultsAck" := #stCognexInterface.BX6106.xOutCamResultsAck;
	        
	    END_REGION
	    REGION Barcode Reader - BX6107        
	        #stCognexInterface.BX6107.xInCamTriggerReady := "bx6107-TriggerReady";
	        #stCognexInterface.BX6107.xInCamTriggerAck := "bx6107-TriggerAck";
	        #stCognexInterface.BX6107.xInCamResultsAvailable := "bx6107-Results Available";
	        #stCognexInterface.BX6107.xInCamGeneralFault := "bx6107-General Fault";
	        #stCognexInterface.BX6107.hwInCamInspectionResults := "=A01+UC0601-BX6107~Ergebnisse_–_64_Bytes_1";
	        
	        #fbBarcodeReaderBX6107(xInActivateCheckASCI := TRUE,
	                               tInTimeout := T#5s,
	                               stInOutInterface := #stCognexInterface.BX6107,
	                               stInOutControlUnitCabinet := #stMainState,
	                               stInOutHMI := #stHMI.stBarcodeReader.BX6107);
	        
	        "bx6107-TriggerEnable" := #stCognexInterface.BX6107.xOutCamTriggerEnable;
	        "bx6107-Trigger" := #stCognexInterface.BX6107.xOutCamTrigger;
	        "bx6107-ResultsAck" := #stCognexInterface.BX6107.xOutCamResultsAck;
	        
	    END_REGION
	    REGION Barcode Reader - BX6108        
	        #stCognexInterface.BX6108.xInCamTriggerReady := "bx6108-TriggerReady";
	        #stCognexInterface.BX6108.xInCamTriggerAck := "bx6108-TriggerAck";
	        #stCognexInterface.BX6108.xInCamResultsAvailable := "bx6108-Results Available";
	        #stCognexInterface.BX6108.xInCamGeneralFault := "bx6108-General Fault";
	        #stCognexInterface.BX6108.hwInCamInspectionResults := "=A01+UC0601-BX6108~Ergebnisse_–_64_Bytes_1";
	        
	        #fbBarcodeReaderBX6108(xInActivateCheckASCI := TRUE,
	                               tInTimeout := T#5s,
	                               stInOutInterface := #stCognexInterface.BX6108,
	                               stInOutControlUnitCabinet := #stMainState,
	                               stInOutHMI := #stHMI.stBarcodeReader.BX6108);
	        
	        "bx6108-TriggerEnable" := #stCognexInterface.BX6108.xOutCamTriggerEnable;
	        "bx6108-Trigger" := #stCognexInterface.BX6108.xOutCamTrigger;
	        "bx6108-ResultsAck" := #stCognexInterface.BX6108.xOutCamResultsAck;
	        
	    END_REGION
	    REGION Barcode Reader - BX6109        
	        #stCognexInterface.BX6109.xInCamTriggerReady := "bx6109-TriggerReady";
	        #stCognexInterface.BX6109.xInCamTriggerAck := "bx6109-TriggerAck";
	        #stCognexInterface.BX6109.xInCamResultsAvailable := "bx6109-Results Available";
	        #stCognexInterface.BX6109.xInCamGeneralFault := "bx6109-General Fault";
	        #stCognexInterface.BX6109.hwInCamInspectionResults := "=A01+UC0601-BX6109~Ergebnisse_–_64_Bytes_1";
	        
	        #fbBarcodeReaderBX6109(xInActivateCheckASCI := TRUE,
	                               tInTimeout := T#5s,
	                               stInOutInterface := #stCognexInterface.BX6109,
	                               stInOutControlUnitCabinet := #stMainState,
	                               stInOutHMI := #stHMI.stBarcodeReader.BX6109);
	        
	        "bx6109-TriggerEnable" := #stCognexInterface.BX6109.xOutCamTriggerEnable;
	        "bx6109-Trigger" := #stCognexInterface.BX6109.xOutCamTrigger;
	        "bx6109-ResultsAck" := #stCognexInterface.BX6109.xOutCamResultsAck;
	        
	    END_REGION
	    REGION Barcode Reader - BX6110        
	        #stCognexInterface.BX6110.xInCamTriggerReady := "bx6110-TriggerReady";
	        #stCognexInterface.BX6110.xInCamTriggerAck := "bx6110-TriggerAck";
	        #stCognexInterface.BX6110.xInCamResultsAvailable := "bx6110-Results Available";
	        #stCognexInterface.BX6110.xInCamGeneralFault := "bx6110-General Fault";
	        #stCognexInterface.BX6110.hwInCamInspectionResults := "=A01+UC0602-BX6110~Ergebnisse_–_64_Bytes_1";
	        
	        #fbBarcodeReaderBX6110(xInActivateCheckASCI := TRUE,
	                               tInTimeout := T#5s,
	                               stInOutInterface := #stCognexInterface.BX6110,
	                               stInOutControlUnitCabinet := #stMainState,
	                               stInOutHMI := #stHMI.stBarcodeReader.BX6110);
	        
	        "bx6110-TriggerEnable" := #stCognexInterface.BX6110.xOutCamTriggerEnable;
	        "bx6110-Trigger" := #stCognexInterface.BX6110.xOutCamTrigger;
	        "bx6110-ResultsAck" := #stCognexInterface.BX6110.xOutCamResultsAck;
	        
	    END_REGION
	    REGION Barcode Reader - BX6111        
	        #stCognexInterface.BX6111.xInCamTriggerReady := "bx6111-TriggerReady";
	        #stCognexInterface.BX6111.xInCamTriggerAck := "bx6111-TriggerAck";
	        #stCognexInterface.BX6111.xInCamResultsAvailable := "bx6111-Results Available";
	        #stCognexInterface.BX6111.xInCamGeneralFault := "bx6111-General Fault";
	        #stCognexInterface.BX6111.hwInCamInspectionResults := "=A01+UC0602-BX6111~Ergebnisse_–_64_Bytes_1";
	        
	        #fbBarcodeReaderBX6111(xInActivateCheckASCI := TRUE,
	                               tInTimeout := T#5s,
	                               stInOutInterface := #stCognexInterface.BX6111,
	                               stInOutControlUnitCabinet := #stMainState,
	                               stInOutHMI := #stHMI.stBarcodeReader.BX6111);
	        
	        "bx6111-TriggerEnable" := #stCognexInterface.BX6111.xOutCamTriggerEnable;
	        "bx6111-Trigger" := #stCognexInterface.BX6111.xOutCamTrigger;
	        "bx6111-ResultsAck" := #stCognexInterface.BX6111.xOutCamResultsAck;
	        
	    END_REGION
	    REGION Barcode Reader - BX6112        
	        #stCognexInterface.BX6112.xInCamTriggerReady := "bx6112-TriggerReady";
	        #stCognexInterface.BX6112.xInCamTriggerAck := "bx6112-TriggerAck";
	        #stCognexInterface.BX6112.xInCamResultsAvailable := "bx6112-Results Available";
	        #stCognexInterface.BX6112.xInCamGeneralFault := "bx6112-General Fault";
	        #stCognexInterface.BX6112.hwInCamInspectionResults := "=A01+UC0602-BX6112~Ergebnisse_–_64_Bytes_1";
	        
	        #fbBarcodeReaderBX6112(xInActivateCheckASCI := TRUE,
	                               tInTimeout := T#5s,
	                               stInOutInterface := #stCognexInterface.BX6112,
	                               stInOutControlUnitCabinet := #stMainState,
	                               stInOutHMI := #stHMI.stBarcodeReader.BX6112);
	        
	        "bx6112-TriggerEnable" := #stCognexInterface.BX6112.xOutCamTriggerEnable;
	        "bx6112-Trigger" := #stCognexInterface.BX6112.xOutCamTrigger;
	        "bx6112-ResultsAck" := #stCognexInterface.BX6112.xOutCamResultsAck;
	        
	    END_REGION
	    REGION Barcode Reader - BX6113        
	        #stCognexInterface.BX6113.xInCamTriggerReady := "bx6113-TriggerReady";
	        #stCognexInterface.BX6113.xInCamTriggerAck := "bx6113-TriggerAck";
	        #stCognexInterface.BX6113.xInCamResultsAvailable := "bx6113-Results Available";
	        #stCognexInterface.BX6113.xInCamGeneralFault := "bx6113-General Fault";
	        #stCognexInterface.BX6113.hwInCamInspectionResults := "=A01+UC0602-BX6113~Ergebnisse_–_64_Bytes_1";
	        
	        #fbBarcodeReaderBX6113(xInActivateCheckASCI := TRUE,
	                               tInTimeout := T#5s,
	                               stInOutInterface := #stCognexInterface.BX6113,
	                               stInOutControlUnitCabinet := #stMainState,
	                               stInOutHMI := #stHMI.stBarcodeReader.BX6113);
	        
	        "bx6113-TriggerEnable" := #stCognexInterface.BX6113.xOutCamTriggerEnable;
	        "bx6113-Trigger" := #stCognexInterface.BX6113.xOutCamTrigger;
	        "bx6113-ResultsAck" := #stCognexInterface.BX6113.xOutCamResultsAck;
	        
	    END_REGION
	    REGION Barcode Reader - BX6114        
	        #stCognexInterface.BX6114.xInCamTriggerReady := "bx6114-TriggerReady";
	        #stCognexInterface.BX6114.xInCamTriggerAck := "bx6114-TriggerAck";
	        #stCognexInterface.BX6114.xInCamResultsAvailable := "bx6114-Results Available";
	        #stCognexInterface.BX6114.xInCamGeneralFault := "bx6114-General Fault";
	        #stCognexInterface.BX6114.hwInCamInspectionResults := "=A01+UC0602-BX6114~Ergebnisse_–_64_Bytes_1";
	        
	        #fbBarcodeReaderBX6114(xInActivateCheckASCI := TRUE,
	                               tInTimeout := T#5s,
	                               stInOutInterface := #stCognexInterface.BX6114,
	                               stInOutControlUnitCabinet := #stMainState,
	                               stInOutHMI := #stHMI.stBarcodeReader.BX6114);
	        
	        "bx6114-TriggerEnable" := #stCognexInterface.BX6114.xOutCamTriggerEnable;
	        "bx6114-Trigger" := #stCognexInterface.BX6114.xOutCamTrigger;
	        "bx6114-ResultsAck" := #stCognexInterface.BX6114.xOutCamResultsAck;
	        
	    END_REGION
	    REGION Barcode Reader - BX6115        
	        #stCognexInterface.BX6115.xInCamTriggerReady := "bx6115-TriggerReady";
	        #stCognexInterface.BX6115.xInCamTriggerAck := "bx6115-TriggerAck";
	        #stCognexInterface.BX6115.xInCamResultsAvailable := "bx6115-Results Available";
	        #stCognexInterface.BX6115.xInCamGeneralFault := "bx6115-General Fault";
	        #stCognexInterface.BX6115.hwInCamInspectionResults := "=A01+UC0602-BX6115~Ergebnisse_–_64_Bytes_1";
	        
	        #fbBarcodeReaderBX6115(xInActivateCheckASCI := TRUE,
	                               tInTimeout := T#5s,
	                               stInOutInterface := #stCognexInterface.BX6115,
	                               stInOutControlUnitCabinet := #stMainState,
	                               stInOutHMI := #stHMI.stBarcodeReader.BX6115);
	        
	        "bx6115-TriggerEnable" := #stCognexInterface.BX6115.xOutCamTriggerEnable;
	        "bx6115-Trigger" := #stCognexInterface.BX6115.xOutCamTrigger;
	        "bx6115-ResultsAck" := #stCognexInterface.BX6115.xOutCamResultsAck;
	        
	    END_REGION
	    REGION Barcode Reader - BX6116        
	        #stCognexInterface.BX6116.xInCamTriggerReady := "bx6116-TriggerReady";
	        #stCognexInterface.BX6116.xInCamTriggerAck := "bx6116-TriggerAck";
	        #stCognexInterface.BX6116.xInCamResultsAvailable := "bx6116-Results Available";
	        #stCognexInterface.BX6116.xInCamGeneralFault := "bx6116-General Fault";
	        #stCognexInterface.BX6116.hwInCamInspectionResults := "=A01+UC0602-BX6116~Ergebnisse_–_64_Bytes_1";
	        
	        #fbBarcodeReaderBX6116(xInActivateCheckASCI := TRUE,
	                               tInTimeout := T#5s,
	                               stInOutInterface := #stCognexInterface.BX6116,
	                               stInOutControlUnitCabinet := #stMainState,
	                               stInOutHMI := #stHMI.stBarcodeReader.BX6116);
	        
	        "bx6116-TriggerEnable" := #stCognexInterface.BX6116.xOutCamTriggerEnable;
	        "bx6116-Trigger" := #stCognexInterface.BX6116.xOutCamTrigger;
	        "bx6116-ResultsAck" := #stCognexInterface.BX6116.xOutCamResultsAck;
	        
	    END_REGION
	    
	    REGION Barcode Reader - BX6117        
	        #stCognexInterface.BX6117.xInCamTriggerReady := "bx6117-TriggerReady";
	        #stCognexInterface.BX6117.xInCamTriggerAck := "bx6117-TriggerAck";
	        #stCognexInterface.BX6117.xInCamResultsAvailable := "bx6117-Results Available";
	        #stCognexInterface.BX6117.xInCamGeneralFault := "bx6117-General Fault";
	        #stCognexInterface.BX6117.hwInCamInspectionResults := "=A01+UC0603-BX6117~Ergebnisse_–_64_Bytes_1";
	        
	        #fbBarcodeReaderBX6117(xInActivateCheckASCI := TRUE,
	                               tInTimeout := T#5s,
	                               stInOutInterface := #stCognexInterface.BX6117,
	                               stInOutControlUnitCabinet := #stMainState,
	                               stInOutHMI := #stHMI.stBarcodeReader.BX6117);
	        
	        "bx6117-TriggerEnable" := #stCognexInterface.BX6117.xOutCamTriggerEnable;
	        "bx6117-Trigger" := #stCognexInterface.BX6117.xOutCamTrigger;
	        "bx6117-ResultsAck" := #stCognexInterface.BX6117.xOutCamResultsAck;
	        
	    END_REGION
	    
	    REGION Barcode Reader - BX6118        
	        #stCognexInterface.BX6118.xInCamTriggerReady := "bx6118-TriggerReady";
	        #stCognexInterface.BX6118.xInCamTriggerAck := "bx6118-TriggerAck";
	        #stCognexInterface.BX6118.xInCamResultsAvailable := "bx6118-Results Available";
	        #stCognexInterface.BX6118.xInCamGeneralFault := "bx6118-General Fault";
	        #stCognexInterface.BX6118.hwInCamInspectionResults := "=A01+UC0603-BX6118~Ergebnisse_–_64_Bytes_1";
	        
	        #fbBarcodeReaderBX6118(xInActivateCheckASCI := TRUE,
	                               tInTimeout := T#5s,
	                               stInOutInterface := #stCognexInterface.BX6118,
	                               stInOutControlUnitCabinet := #stMainState,
	                               stInOutHMI := #stHMI.stBarcodeReader.BX6118);
	        
	        "bx6118-TriggerEnable" := #stCognexInterface.BX6118.xOutCamTriggerEnable;
	        "bx6118-Trigger" := #stCognexInterface.BX6118.xOutCamTrigger;
	        "bx6118-ResultsAck" := #stCognexInterface.BX6118.xOutCamResultsAck;
	        
	    END_REGION
	    
	    REGION Barcode Reader - BX6119        
	        #stCognexInterface.BX6119.xInCamTriggerReady := "bx6119-TriggerReady";
	        #stCognexInterface.BX6119.xInCamTriggerAck := "bx6119-TriggerAck";
	        #stCognexInterface.BX6119.xInCamResultsAvailable := "bx6119-Results Available";
	        #stCognexInterface.BX6119.xInCamGeneralFault := "bx6119-General Fault";
	        #stCognexInterface.BX6119.hwInCamInspectionResults := "=A01+UC0603-BX6119~Ergebnisse_–_64_Bytes_1";
	        
	        #fbBarcodeReaderBX6119(xInActivateCheckASCI := TRUE,
	                               tInTimeout := T#5s,
	                               stInOutInterface := #stCognexInterface.BX6119,
	                               stInOutControlUnitCabinet := #stMainState,
	                               stInOutHMI := #stHMI.stBarcodeReader.BX6119);
	        
	        "bx6119-TriggerEnable" := #stCognexInterface.BX6119.xOutCamTriggerEnable;
	        "bx6119-Trigger" := #stCognexInterface.BX6119.xOutCamTrigger;
	        "bx6119-ResultsAck" := #stCognexInterface.BX6119.xOutCamResultsAck;
	        
	    END_REGION
	    
	    REGION Barcode Reader - BX6120        
	        #stCognexInterface.BX6120.xInCamTriggerReady := "bx6120-TriggerReady";
	        #stCognexInterface.BX6120.xInCamTriggerAck := "bx6120-TriggerAck";
	        #stCognexInterface.BX6120.xInCamResultsAvailable := "bx6120-Results Available";
	        #stCognexInterface.BX6120.xInCamGeneralFault := "bx6120-General Fault";
	        #stCognexInterface.BX6120.hwInCamInspectionResults := "=A01+UC0603-BX6120~Ergebnisse_–_64_Bytes_1";
	        
	        #fbBarcodeReaderBX6120(xInActivateCheckASCI := TRUE,
	                               tInTimeout := T#5s,
	                               stInOutInterface := #stCognexInterface.BX6120,
	                               stInOutControlUnitCabinet := #stMainState,
	                               stInOutHMI := #stHMI.stBarcodeReader.BX6120);
	        
	        "bx6120-TriggerEnable" := #stCognexInterface.BX6120.xOutCamTriggerEnable;
	        "bx6120-Trigger" := #stCognexInterface.BX6120.xOutCamTrigger;
	        "bx6120-ResultsAck" := #stCognexInterface.BX6120.xOutCamResultsAck;
	        
	    END_REGION
	    
	    REGION Barcode Reader - BX6121        
	        #stCognexInterface.BX6121.xInCamTriggerReady := "bx6121-TriggerReady";
	        #stCognexInterface.BX6121.xInCamTriggerAck := "bx6121-TriggerAck";
	        #stCognexInterface.BX6121.xInCamResultsAvailable := "bx6121-Results Available";
	        #stCognexInterface.BX6121.xInCamGeneralFault := "bx6121-General Fault";
	        #stCognexInterface.BX6121.hwInCamInspectionResults := "=A01+UC0603-BX6121~Ergebnisse_–_64_Bytes_1";
	        
	        #fbBarcodeReaderBX6121(xInActivateCheckASCI := TRUE,
	                               tInTimeout := T#5s,
	                               stInOutInterface := #stCognexInterface.BX6121,
	                               stInOutControlUnitCabinet := #stMainState,
	                               stInOutHMI := #stHMI.stBarcodeReader.BX6121);
	        
	        "bx6121-TriggerEnable" := #stCognexInterface.BX6121.xOutCamTriggerEnable;
	        "bx6121-Trigger" := #stCognexInterface.BX6121.xOutCamTrigger;
	        "bx6121-ResultsAck" := #stCognexInterface.BX6121.xOutCamResultsAck;
	        
	    END_REGION
	    
	    REGION Barcode Reader - BX6122        
	        #stCognexInterface.BX6122.xInCamTriggerReady := "bx6122-TriggerReady";
	        #stCognexInterface.BX6122.xInCamTriggerAck := "bx6122-TriggerAck";
	        #stCognexInterface.BX6122.xInCamResultsAvailable := "bx6122-Results Available";
	        #stCognexInterface.BX6122.xInCamGeneralFault := "bx6122-General Fault";
	        #stCognexInterface.BX6122.hwInCamInspectionResults := "=A01+UC0603-BX6122~Ergebnisse_–_64_Bytes_1";
	        
	        #fbBarcodeReaderBX6122(xInActivateCheckASCI := TRUE,
	                               tInTimeout := T#5s,
	                               stInOutInterface := #stCognexInterface.BX6122,
	                               stInOutControlUnitCabinet := #stMainState,
	                               stInOutHMI := #stHMI.stBarcodeReader.BX6122);
	        
	        "bx6122-TriggerEnable" := #stCognexInterface.BX6122.xOutCamTriggerEnable;
	        "bx6122-Trigger" := #stCognexInterface.BX6122.xOutCamTrigger;
	        "bx6122-ResultsAck" := #stCognexInterface.BX6122.xOutCamResultsAck;
	        
	    END_REGION
	    
	    REGION Barcode Reader - BX6123        
	        #stCognexInterface.BX6123.xInCamTriggerReady := "bx6123-TriggerReady";
	        #stCognexInterface.BX6123.xInCamTriggerAck := "bx6123-TriggerAck";
	        #stCognexInterface.BX6123.xInCamResultsAvailable := "bx6123-Results Available";
	        #stCognexInterface.BX6123.xInCamGeneralFault := "bx6123-General Fault";
	        #stCognexInterface.BX6123.hwInCamInspectionResults := "=A01+UC0603-BX6123~Ergebnisse_–_64_Bytes_1";
	        
	        #fbBarcodeReaderBX6123(xInActivateCheckASCI := TRUE,
	                               tInTimeout := T#5s,
	                               stInOutInterface := #stCognexInterface.BX6123,
	                               stInOutControlUnitCabinet := #stMainState,
	                               stInOutHMI := #stHMI.stBarcodeReader.BX6123);
	        
	        "bx6123-TriggerEnable" := #stCognexInterface.BX6123.xOutCamTriggerEnable;
	        "bx6123-Trigger" := #stCognexInterface.BX6123.xOutCamTrigger;
	        "bx6123-ResultsAck" := #stCognexInterface.BX6123.xOutCamResultsAck;
	        
	    END_REGION
	    
	    REGION Barcode Reader - BX6124        
	        #stCognexInterface.BX6124.xInCamTriggerReady := "bx6124-TriggerReady";
	        #stCognexInterface.BX6124.xInCamTriggerAck := "bx6124-TriggerAck";
	        #stCognexInterface.BX6124.xInCamResultsAvailable := "bx6124-Results Available";
	        #stCognexInterface.BX6124.xInCamGeneralFault := "bx6120-General Fault";
	        #stCognexInterface.BX6124.hwInCamInspectionResults := "=A01+UC0604-BX6124~Ergebnisse_–_64_Bytes_1";
	        
	        #fbBarcodeReaderBX6124(xInActivateCheckASCI := TRUE,
	                               tInTimeout := T#5s,
	                               stInOutInterface := #stCognexInterface.BX6124,
	                               stInOutControlUnitCabinet := #stMainState,
	                               stInOutHMI := #stHMI.stBarcodeReader.BX6124);
	        
	        "bx6124-TriggerEnable" := #stCognexInterface.BX6124.xOutCamTriggerEnable;
	        "bx6124-Trigger" := #stCognexInterface.BX6124.xOutCamTrigger;
	        "bx6124-ResultsAck" := #stCognexInterface.BX6124.xOutCamResultsAck;
	        
	    END_REGION
	    
	    REGION Barcode Reader - BX6125        
	        #stCognexInterface.BX6125.xInCamTriggerReady := "bx6125-TriggerReady";
	        #stCognexInterface.BX6125.xInCamTriggerAck := "bx6125-TriggerAck";
	        #stCognexInterface.BX6125.xInCamResultsAvailable := "bx6125-Results Available";
	        #stCognexInterface.BX6125.xInCamGeneralFault := "bx6125-General Fault";
	        #stCognexInterface.BX6125.hwInCamInspectionResults := "=A01+UC0604-BX6125~Ergebnisse_–_64_Bytes_1";
	        
	        #fbBarcodeReaderBX6125(xInActivateCheckASCI := TRUE,
	                               tInTimeout := T#5s,
	                               stInOutInterface := #stCognexInterface.BX6125,
	                               stInOutControlUnitCabinet := #stMainState,
	                               stInOutHMI := #stHMI.stBarcodeReader.BX6125);
	        
	        "bx6125-TriggerEnable" := #stCognexInterface.BX6125.xOutCamTriggerEnable;
	        "bx6125-Trigger" := #stCognexInterface.BX6125.xOutCamTrigger;
	        "bx6125-ResultsAck" := #stCognexInterface.BX6125.xOutCamResultsAck;
	        
	    END_REGION
	    
	    REGION Barcode Reader - BX6126        
	        #stCognexInterface.BX6126.xInCamTriggerReady := "bx6126-TriggerReady";
	        #stCognexInterface.BX6126.xInCamTriggerAck := "bx6126-TriggerAck";
	        #stCognexInterface.BX6126.xInCamResultsAvailable := "bx6126-Results Available";
	        #stCognexInterface.BX6126.xInCamGeneralFault := "bx6126-General Fault";
	        #stCognexInterface.BX6126.hwInCamInspectionResults := "=A01+UC0604-BX6126~Ergebnisse_–_64_Bytes_1";
	        
	        #fbBarcodeReaderBX6126(xInActivateCheckASCI := TRUE,
	                               tInTimeout := T#5s,
	                               stInOutInterface := #stCognexInterface.BX6126,
	                               stInOutControlUnitCabinet := #stMainState,
	                               stInOutHMI := #stHMI.stBarcodeReader.BX6126);
	        
	        "bx6126-TriggerEnable" := #stCognexInterface.BX6126.xOutCamTriggerEnable;
	        "bx6126-Trigger" := #stCognexInterface.BX6126.xOutCamTrigger;
	        "bx6126-ResultsAck" := #stCognexInterface.BX6126.xOutCamResultsAck;
	       
	    END_REGION
	    
	    REGION Barcode Reader - BX6127       
	        #stCognexInterface.BX6127.xInCamTriggerReady := "bx6127-TriggerReady";
	        #stCognexInterface.BX6127.xInCamTriggerAck := "bx6127-TriggerAck";
	        #stCognexInterface.BX6127.xInCamResultsAvailable := "bx6127-Results Available";
	        #stCognexInterface.BX6127.xInCamGeneralFault := "bx6127-General Fault";
	        #stCognexInterface.BX6127.hwInCamInspectionResults := "=A01+UC0604-BX6127~Ergebnisse_–_64_Bytes_1";
	        
	        #fbBarcodeReaderBX6127(xInActivateCheckASCI := TRUE,
	                               tInTimeout := T#5s,
	                               stInOutInterface := #stCognexInterface.BX6127,
	                               stInOutControlUnitCabinet := #stMainState,
	                               stInOutHMI := #stHMI.stBarcodeReader.BX6127);
	        
	        "bx6127-TriggerEnable" := #stCognexInterface.BX6127.xOutCamTriggerEnable;
	        "bx6127-Trigger" := #stCognexInterface.BX6127.xOutCamTrigger;
	        "bx6127-ResultsAck" := #stCognexInterface.BX6127.xOutCamResultsAck;
	        
	    END_REGION
	    
	    REGION Barcode Reader - BX6128        
	        #stCognexInterface.BX6128.xInCamTriggerReady := "bx6128-TriggerReady";
	        #stCognexInterface.BX6128.xInCamTriggerAck := "bx6128-TriggerAck";
	        #stCognexInterface.BX6128.xInCamResultsAvailable := "bx6128-Results Available";
	        #stCognexInterface.BX6128.xInCamGeneralFault := "bx6128-General Fault";
	        #stCognexInterface.BX6128.hwInCamInspectionResults := "=A01+UC0604-BX6128~Ergebnisse_–_64_Bytes_1";
	        
	        #fbBarcodeReaderBX6128(xInActivateCheckASCI := TRUE,
	                               tInTimeout := T#5s,
	                               stInOutInterface := #stCognexInterface.BX6128,
	                               stInOutControlUnitCabinet := #stMainState,
	                               stInOutHMI := #stHMI.stBarcodeReader.BX6128);
	        
	        "bx6128-TriggerEnable" := #stCognexInterface.BX6128.xOutCamTriggerEnable;
	        "bx6128-Trigger" := #stCognexInterface.BX6128.xOutCamTrigger;
	        "bx6128-ResultsAck" := #stCognexInterface.BX6128.xOutCamResultsAck;
	        
	    END_REGION
	    
	    REGION Barcode Reader - BX6129        
	        #stCognexInterface.BX6129.xInCamTriggerReady := "bx6129-TriggerReady";
	        #stCognexInterface.BX6129.xInCamTriggerAck := "bx6129-TriggerAck";
	        #stCognexInterface.BX6129.xInCamResultsAvailable := "bx6129-Results Available";
	        #stCognexInterface.BX6129.xInCamGeneralFault := "bx6129-General Fault";
	        #stCognexInterface.BX6129.hwInCamInspectionResults := "=A01+UC0604-BX6129~Ergebnisse_–_64_Bytes_1";
	        
	        #fbBarcodeReaderBX6129(xInActivateCheckASCI := TRUE,
	                               tInTimeout := T#5s,
	                               stInOutInterface := #stCognexInterface.BX6129,
	                               stInOutControlUnitCabinet := #stMainState,
	                               stInOutHMI := #stHMI.stBarcodeReader.BX6129);
	        
	        "bx6129-TriggerEnable" := #stCognexInterface.BX6129.xOutCamTriggerEnable;
	        "bx6129-Trigger" := #stCognexInterface.BX6129.xOutCamTrigger;
	        "bx6129-ResultsAck" := #stCognexInterface.BX6129.xOutCamResultsAck;
	        
	    END_REGION
	    
	    REGION Barcode Reader - BX6130        
	        #stCognexInterface.BX6130.xInCamTriggerReady := "bx6130-TriggerReady";
	        #stCognexInterface.BX6130.xInCamTriggerAck := "bx6130-TriggerAck";
	        #stCognexInterface.BX6130.xInCamResultsAvailable := "bx6130-Results Available";
	        #stCognexInterface.BX6130.xInCamGeneralFault := "bx6130-General Fault";
	        #stCognexInterface.BX6130.hwInCamInspectionResults := "=A01+UC0604-BX6130~Ergebnisse_–_64_Bytes_1";
	        
	        #fbBarcodeReaderBX6130(xInActivateCheckASCI := TRUE,
	                               tInTimeout := T#5s,
	                               stInOutInterface := #stCognexInterface.BX6130,
	                               stInOutControlUnitCabinet := #stMainState,
	                               stInOutHMI := #stHMI.stBarcodeReader.BX6130);
	        
	        "bx6130-TriggerEnable" := #stCognexInterface.BX6130.xOutCamTriggerEnable;
	        "bx6130-Trigger" := #stCognexInterface.BX6130.xOutCamTrigger;
	        "bx6130-ResultsAck" := #stCognexInterface.BX6130.xOutCamResultsAck;
	        
	    END_REGION
	    
	    REGION Barcode Reader - BX6131        
	        #stCognexInterface.BX6131.xInCamTriggerReady := "bx6131-TriggerReady";
	        #stCognexInterface.BX6131.xInCamTriggerAck := "bx6131-TriggerAck";
	        #stCognexInterface.BX6131.xInCamResultsAvailable := "bx6131-Results Available";
	        #stCognexInterface.BX6131.xInCamGeneralFault := "bx6131-General Fault";
	        #stCognexInterface.BX6131.hwInCamInspectionResults := "=A01+UC0604-BX6131~Ergebnisse_–_64_Bytes_1";
	        
	        #fbBarcodeReaderBX6131(xInActivateCheckASCI := TRUE,
	                               tInTimeout := T#5s,
	                               stInOutInterface := #stCognexInterface.BX6131,
	                               stInOutControlUnitCabinet := #stMainState,
	                               stInOutHMI := #stHMI.stBarcodeReader.BX6131);
	        
	        "bx6131-TriggerEnable" := #stCognexInterface.BX6131.xOutCamTriggerEnable;
	        "bx6131-Trigger" := #stCognexInterface.BX6131.xOutCamTrigger;
	        "bx6131-ResultsAck" := #stCognexInterface.BX6131.xOutCamResultsAck;
	        
	    END_REGION
	    
	    REGION Barcode Reader - BX6133        
	        #stCognexInterface.BX6133.xInCamTriggerReady := "bx6133-TriggerReady";
	        #stCognexInterface.BX6133.xInCamTriggerAck := "bx6133-TriggerAck";
	        #stCognexInterface.BX6133.xInCamResultsAvailable := "bx6133-Results Available";
	        #stCognexInterface.BX6133.xInCamGeneralFault := "bx6133-General Fault";
	        #stCognexInterface.BX6133.hwInCamInspectionResults := "=A01+UC0602-BX6133~Ergebnisse_–_64_Bytes_1";
	        
	        #fbBarcodeReaderBX6133(xInActivateCheckASCI := TRUE,
	                               tInTimeout := T#5s,
	                               stInOutInterface := #stCognexInterface.BX6133,
	                               stInOutControlUnitCabinet := #stMainState,
	                               stInOutHMI := #stHMI.stBarcodeReader.BX6133);
	        
	        "bx6133-TriggerEnable" := #stCognexInterface.BX6133.xOutCamTriggerEnable;
	        "bx6133-Trigger" := #stCognexInterface.BX6133.xOutCamTrigger;
	        "bx6133-ResultsAck" := #stCognexInterface.BX6133.xOutCamResultsAck;
	        
	    END_REGION
	    
	    REGION SCADA
	        "FB-OPC_UA_System-Stat_DB"(xInSystemStat := "6_HMI_Err_UH06_AMR".System.Anlage_aus,
	                                   xInFireAlarm := "6_HMI_Err_UH06_AMR".System.BST3_Feueralarm OR "6_HMI_Err_UH06_AMR".System.BST4_Feueralarm OR "6_HMI_Err_UH06_AMR".System.Gesamt_Feueralarm,
	                                   xInSafetyStop := "6_HMI_Err_UH06_AMR"."Not".UH06,
	                                   //"6_HMI_Err_UH06_AMR"."NOT".ausgeloest_UH06 OR "6_HMI_Err_UH06_AMR"."NOT".ausgeloest_UC061 OR "6_HMI_Err_UH06_AMR"."NOT".ausgeloest_UH06_Halle4,
	                                   xInError := "PF0031",
	                                   xInCommunicationError := false,// NOT "FB_CommunicationWCSBL_DB".fbTeleHandler.xOutConnectionActive OR NOT "FB_CommunicationWES_DeviceHub_DB".fbTeleHandler.xOutConnectionActive,
	                                   nOutScadaStatus => "DB_Status".System.Status);
	    END_REGION
	
	    
	    
	    
	    
	    
	    
END_FUNCTION_BLOCK

