Example #1
0
        MacManifestDeviceCfg DE_BT_A_ASB()
        {
            var rs = new MacManifestDeviceCfg()
            {
                ID         = EnumMachineId.DE_BT_A_ASB.ToString(),
                DevConnStr = null,
                DeviceName = MacEnumDevice.boxtransfer_assembly.ToString(),
                DriverId   = ManifestDriverId.BoxTransfer.ToString(),
                PositionId = MacEnumPositionId.BoxTrasnfer01.ToString(),
                Devices    = new MacManifestDeviceCfg[] {
                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = string.Format("{0}={1};{2}={3}", MacHalPlcBase.DevConnStr_Ip, plcIp, MacHalPlcBase.DevConnStr_PortId, plcPortId),
                        DeviceName = MacEnumDevice.boxtransfer_plc.ToString(),
                        DriverId   = ManifestDriverId.BoxTransferPlc.ToString(),
                    },

                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = "ip=192.168.0.150",
                        DeviceName = MacEnumDevice.boxtransfer_robot_1.ToString(),
                        DriverId   = ManifestDriverId.RobotFanuc.ToString(),
                    },

                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = "id=00:11:1C:F9:A3:23",
                        DeviceName = MacEnumDevice.boxtransfer_camera_gripper_1.ToString(),
                        DriverId   = ManifestDriverId.CameraSentech.ToString(),
                    },
                },
            };

            return(rs);
        }
Example #2
0
        MacManifestDeviceCfg DE_MT_A_ASB()
        {
            var rs = new MacManifestDeviceCfg()
            {
                ID         = EnumMachineId.DE_MT_A_ASB.ToString(),
                DevConnStr = "127.0.0.1;3039",
                DeviceName = MacEnumDevice.masktransfer_assembly.ToString(),
                DriverId   = ManifestDriverId.MaskTransfer.ToString(),
                PositionId = MacEnumPositionId.MaskTransfer01.ToString(),
                Devices    = new MacManifestDeviceCfg[] {
                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = string.Format("{0}={1};{2}={3}", MacHalPlcBase.DevConnStr_Ip, plcIp, MacHalPlcBase.DevConnStr_PortId, plcPortId),
                        DeviceName = MacEnumDevice.masktransfer_plc.ToString(),
                        DriverId   = ManifestDriverId.MaskTransferPlc.ToString(),
                    },


                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = "ip=192.168.0.140",
                        DeviceName = MacEnumDevice.masktransfer_robot_1.ToString(),
                        DriverId   = ManifestDriverId.RobotFanuc.ToString(),
                    },
                },
            };

            return(rs);
        }
Example #3
0
        MacManifestDeviceCfg HID_LP_B_ASB()
        {
            var rs = new MacManifestDeviceCfg()
            {
                DevConnStr = null,
                DeviceId   = EnumMacDeviceId.loadportB_assembly.ToString(),
                DriverId   = MacManifestDriverId.LoadPort.ToString(),
                PositionId = MacEnumPositionId.LoadPort02.ToString(),
                Devices    = new MacManifestDeviceCfg[] {
                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = string.Format("{0}={1};{2}={3}", MacHalPlcBase.DevConnStr_Ip, plcIp, MacHalPlcBase.DevConnStr_PortId, plcPortId),
                        DeviceId   = EnumMacDeviceId.loadport_plc.ToString(),
                        DriverId   = MacManifestDriverId.LoadPortPlc.ToString(),
                    },


                    //new MacManifestDeviceCfg(){
                    //    DevConnStr = string.Format("{0}={1};{2}={3};{4}={5};{6}={7}",
                    //        MacHalLoadPortCellGudeng.DevConnStr_Ip, "192.168.0.119",
                    //        MacHalLoadPortCellGudeng.DevConnStr_Port, 1000,
                    //        MacHalLoadPortCellGudeng.DevConnStr_LocalIp, null,
                    //        MacHalLoadPortCellGudeng.DevConnStr_LocalPort, 0),
                    //    DeviceName = MacEnumDevice.loadport_cell_001.ToString(),
                    //    DriverId = ManifestDriverId.LoadPortCellGudeng.ToString(),
                    //},


                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = string.Format("{0}={1};{2}={3};{4}={5};{6}={7}",
                                                   MacHalLightLeimac.DevConnStr_Ip, "192.168.0.119",
                                                   MacHalLightLeimac.DevConnStr_Port, 1000,
                                                   MacHalLightLeimac.DevConnStr_Model, MvaEnumLeimacModel.IDGB_50M4PG_24_TP,
                                                   MacHalLightLeimac.DevConnStr_Channel, 2),
                        DeviceId = EnumMacDeviceId.loadport_light_bar_002.ToString(),
                        DriverId = MacManifestDriverId.LightLeimac.ToString(),
                    },

                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = string.Format("{0}={1};{2}={3}",
                                                   MacHalLoadPortGudeng.DevConnStr_Ip, "192.168.0.21",
                                                   MacHalLoadPortGudeng.DevConnStr_Port, 1024),
                        DeviceId = EnumMacDeviceId.loadport_2.ToString(),
                        DriverId = MacManifestDriverId.LoadPortGudeng.ToString(),
                    },

                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = "id=00:11:1C:F9:C8:14",
                        DeviceId   = EnumMacDeviceId.loadportB_camera_inspect.ToString(),
                        DriverId   = MacManifestDriverId.CameraSentech.ToString(),
                    },
                },
            };

            return(rs);
        }
Example #4
0
        MacManifestDeviceCfg DE_CB_A_07_05()
        {
            var rs = new MacManifestDeviceCfg()
            {
                DevConnStr = "ip=192.168.0.XX;port=5000;local_ip=" + drawerControlIP + ";local_port=6000;startPort=5001;endPort=5999;index=07_05",
                DeviceId   = EnumMacDeviceId.cabinet_drawer_07_05.ToString(),
                DriverId   = MacManifestDriverId.DrawerKjMachine.ToString(),
            };

            return(rs);
        }
Example #5
0
        protected void WriteDevConnSetting(Dictionary <String, String> dict)
        {
            if (this.HalDeviceCfg == null)
            {
                this.HalDeviceCfg = new MacManifestDeviceCfg();
            }

            var list = (from row in dict
                        select row.Key + "=" + row.Value).ToList();

            this.HalDeviceCfg.DevConnStr = String.Join(";", list);
        }
Example #6
0
        MacManifestDeviceCfg DE_LP_A_ASB()
        {
            var rs = new MacManifestDeviceCfg()
            {
                ID         = EnumMachineId.DE_LP_A_ASB.ToString(),
                DevConnStr = null,
                DeviceName = MacEnumDevice.loadportA_assembly.ToString(),
                DriverId   = ManifestDriverId.LoadPort.ToString(),
                PositionId = MacEnumPositionId.LoadPort01.ToString(),
                Devices    = new MacManifestDeviceCfg[] {
                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = string.Format("{0}={1};{2}={3}", MacHalPlcBase.DevConnStr_Ip, plcIp, MacHalPlcBase.DevConnStr_PortId, plcPortId),
                        DeviceName = MacEnumDevice.loadport_plc.ToString(),
                        DriverId   = ManifestDriverId.LoadPortPlc.ToString(),
                    },

                    //new MacManifestDeviceCfg(){
                    //    DevConnStr = string.Format("{0}={1};{2}={3};{4}={5};{6}={7}",
                    //        MacHalLoadPortCellGudeng.DevConnStr_Ip, "192.168.0.119",
                    //        MacHalLoadPortCellGudeng.DevConnStr_Port, 1000,
                    //        MacHalLoadPortCellGudeng.DevConnStr_LocalIp, null,
                    //        MacHalLoadPortCellGudeng.DevConnStr_LocalPort, 0),
                    //    DeviceName = MacEnumDevice.loadport_cell_001.ToString(),
                    //    DriverId = ManifestDriverId.LoadPortCellGudeng.ToString(),
                    //},

                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = string.Format("{0}={1};{2}={3};{4}={5};{6}={7}",
                                                   MacHalLightLeimac.DevConnStr_Ip, "192.168.0.119",
                                                   MacHalLightLeimac.DevConnStr_Port, 1000,
                                                   MacHalLightLeimac.DevConnStr_Model, MvEnumLeimacModel.IDGB_50M4PG_24_TP,
                                                   MacHalLightLeimac.DevConnStr_Channel, 1),
                        DeviceName = MacEnumDevice.loadport_light_bar_001.ToString(),
                        DriverId   = ManifestDriverId.LightLeimac.ToString(),
                    },

                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = string.Format("{0}={1};{2}={3}",
                                                   MacHalLoadPortGudeng.DevConnStr_Ip, "192.168.0.20",
                                                   MacHalLoadPortGudeng.DevConnStr_Port, 1024),
                        DeviceName = MacEnumDevice.loadport_1.ToString(),
                        DriverId   = ManifestDriverId.LoadPortGudeng.ToString(),
                    },
                },
            };

            return(rs);
        }
Example #7
0
        void HalCreate(MacManifestDeviceCfg deviceCfg, MacHalBase hal = null)
        {
            var drivers = (from row in this.manifest.Drivers
                           where row.DriverId == deviceCfg.DriverId
                           select row).ToList();

            //Check driver count
            if (drivers.Count == 0)
            {
                throw new MacWrongDriverException("No Driver");
            }
            else if (drivers.Count > 1)
            {
                throw new MacWrongDriverException("Duplicate Driver");
            }

            var driver = drivers.FirstOrDefault();
            var type   = driver.AssignType;
            var inst   = Activator.CreateInstance(type) as MacHalBase;

            if (inst == null)
            {
                throw new MacHalObjectNotFoundException();
            }

            inst.HalDeviceCfg = deviceCfg;
            inst.HalDriverCfg = driver;
            inst.HalContext   = this;

            if (hal == null)
            {
                this.HalDevices[deviceCfg.DeviceName] = inst;
            }
            else
            {
                hal.Hals[deviceCfg.DeviceName] = inst;
            }


            if (deviceCfg.Devices == null)
            {
                return;
            }
            foreach (var dcv in deviceCfg.Devices)
            {
                HalCreate(dcv, inst);
            }
        }
Example #8
0
        MacManifestDeviceCfg DE_BT_A_ASB()
        {
            var rs = new MacManifestDeviceCfg()
            {
                DevConnStr = null,
                DeviceId   = EnumMacDeviceId.boxtransfer_assembly.ToString(),
                DriverId   = MacManifestDriverId.BoxTransfer.ToString(),
                PositionId = MacEnumPositionId.BoxTrasnfer01.ToString(),
                Devices    = new MacManifestDeviceCfg[] {
                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = string.Format("{0}={1};{2}={3}", MacHalPlcBase.DevConnStr_Ip, plcIp, MacHalPlcBase.DevConnStr_PortId, plcPortId),
                        DeviceId   = EnumMacDeviceId.boxtransfer_plc.ToString(),
                        DriverId   = MacManifestDriverId.BoxTransferPlc.ToString(),
                    },

                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = "ip=192.168.0.150",
                        DeviceId   = EnumMacDeviceId.boxtransfer_robot_1.ToString(),
                        DriverId   = MacManifestDriverId.RobotFanuc.ToString(),
                    },

                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = string.Format("{0}={1};{2}={3};{4}={5};{6}={7}",
                                                   MacHalLightLeimac.DevConnStr_Ip, "192.168.0.155",
                                                   MacHalLightLeimac.DevConnStr_Port, 1000,
                                                   MacHalLightLeimac.DevConnStr_Model, MvaEnumLeimacModel.IDGB_50M4PG_24_TP,
                                                   MacHalLightLeimac.DevConnStr_Channel, 1),
                        DeviceId = EnumMacDeviceId.boxtransfer_light_1.ToString(),
                        DriverId = MacManifestDriverId.LightLeimac.ToString(),
                    },

                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = "id=00:11:1C:F9:A3:23",
                        DeviceId   = EnumMacDeviceId.boxtransfer_camera_gripper_1.ToString(),
                        DriverId   = MacManifestDriverId.CameraSentech.ToString(),
                    },
                },
            };

            return(rs);
        }
Example #9
0
        MacManifestDeviceCfg HID_EQP_A_ASSY()
        {
            var rs = new MacManifestDeviceCfg()
            {
                DevConnStr = null,
                DeviceId   = EnumMacDeviceId.eqp_assembly.ToString(),
                DriverId   = MacManifestDriverId.Eqp.ToString(),
                PositionId = null,
                Devices    = new MacManifestDeviceCfg[] {
                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = string.Format("{0}={1};{2}={3}", MacHalPlcBase.DevConnStr_Ip, plcIp, MacHalPlcBase.DevConnStr_PortId, plcPortId),
                        DeviceId   = EnumMacDeviceId.eqp_plc_01.ToString(),
                        DriverId   = MacManifestDriverId.UniversalPlc.ToString(),
                    },
                },
            };

            return(rs);
        }
Example #10
0
        MacManifestDeviceCfg DE_UNI_A_ASB()
        {
            var rs = new MacManifestDeviceCfg()
            {
                ID         = EnumMachineId.DE_UNI_A_ASB.ToString(),
                DevConnStr = null,
                DeviceName = MacEnumDevice.universal_assembly.ToString(),
                DriverId   = ManifestDriverId.Universal.ToString(),
                PositionId = null,
                Devices    = new MacManifestDeviceCfg[] {
                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = string.Format("{0}={1};{2}={3}", MacHalPlcBase.DevConnStr_Ip, plcIp, MacHalPlcBase.DevConnStr_PortId, plcPortId),
                        DeviceName = MacEnumDevice.universal_plc_01.ToString(),
                        DriverId   = ManifestDriverId.UniversalPlc.ToString(),
                    },
                },
            };

            return(rs);
        }
Example #11
0
        MacManifestDeviceCfg DE_CC_A_ASB()
        {
            var rs = new MacManifestDeviceCfg()
            {
                ID         = EnumMachineId.DE_CC_A_ASB.ToString(),
                DevConnStr = "127.0.0.1;3039",
                DeviceName = MacEnumDevice.clean_assembly.ToString(),
                DriverId   = ManifestDriverId.CleanCh.ToString(),
                PositionId = MacEnumPositionId.CleanCh01.ToString(),
                Devices    = new MacManifestDeviceCfg[] {
                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = string.Format("{0}={1};{2}={3}", MacHalPlcBase.DevConnStr_Ip, plcIp, MacHalPlcBase.DevConnStr_PortId, plcPortId),
                        DeviceName = MacEnumDevice.cleanch_plc.ToString(),
                        DriverId   = ManifestDriverId.CleanChPlc.ToString(),
                    },

                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = string.Format("{0}={1};{2}={3};{4}={5};{6}={7}",
                                                   MacHalLightLeimac.DevConnStr_Ip, "192.168.0.129",
                                                   MacHalLightLeimac.DevConnStr_Port, 1000,
                                                   MacHalLightLeimac.DevConnStr_Model, MvEnumLeimacModel.IWDV_100S_24,
                                                   MacHalLightLeimac.DevConnStr_Channel, 1),
                        DeviceName = MacEnumDevice.cleanch_inspection_spot_light_001.ToString(),
                        DriverId   = ManifestDriverId.LightFake.ToString(),
                    },

                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = "id=00:11:1C:F9:A4:08",
                        DeviceName = MacEnumDevice.clean_camera_particle_1.ToString(),
                        DriverId   = ManifestDriverId.CameraFake.ToString(),
                    },
                },
            };

            return(rs);
        }
Example #12
0
        MacManifestDeviceCfg DE_CB_A_04_05()
        {
            var rs = new MacManifestDeviceCfg()
            {
                ID         = EnumMachineId.DE_CB_A_04_05.ToString(),
                DevConnStr = null,
                DeviceName = MacEnumDevice.cabinet_drawer_04_05.ToString(),
                DriverId   = ManifestDriverId.Cabinet.ToString(),
                PositionId = MacEnumPositionId.Drawer20.ToString(),
                Devices    = new MacManifestDeviceCfg[] {
                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = "ip=192.168.0.92;port=5000;local_ip=192.168.0.14;local_port=6000;startPort=5001;endPort=5999;index=04_05",
                        DeviceName = MacEnumDevice.cabinet_drawer_04_05.ToString(),
                        DriverId   = ManifestDriverId.DrawerFake.ToString(),
                        ID         = EnumMachineId.DE_CB_A_04_05.ToString(),
                    },
                },
            };

            return(rs);
        }
Example #13
0
        MacManifestDeviceCfg DE_OS_A_ASB()
        {
            var rs = new MacManifestDeviceCfg()
            {
                ID         = EnumMachineId.DE_OS_A_ASB.ToString(),
                DevConnStr = null,
                DeviceName = MacEnumDevice.openstage_assembly.ToString(),
                DriverId   = ManifestDriverId.OpenStage.ToString(),
                PositionId = MacEnumPositionId.OpenStage01.ToString(),
                Devices    = new MacManifestDeviceCfg[] {
                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = string.Format("{0}={1};{2}={3}", MacHalPlcBase.DevConnStr_Ip, plcIp, MacHalPlcBase.DevConnStr_PortId, plcPortId),
                        DeviceName = MacEnumDevice.openstage_plc.ToString(),
                        DriverId   = ManifestDriverId.OpenStagePlc.ToString(),
                    },
                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = string.Format("{0}={1};{2}={3};{4}={5};{6}={7}",
                                                   MacHalLightLeimac.DevConnStr_Ip, "192.168.0.139",
                                                   MacHalLightLeimac.DevConnStr_Port, 1000,
                                                   MacHalLightLeimac.DevConnStr_Model, MvEnumLeimacModel.IDGB_50M4PG_24_TP,
                                                   MacHalLightLeimac.DevConnStr_Channel, 1),
                        DeviceName = MacEnumDevice.openstage_light_bar_defense_top_001.ToString(),
                        DriverId   = ManifestDriverId.LightFake.ToString(),
                    },
                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = string.Format("{0}={1};{2}={3};{4}={5};{6}={7}",
                                                   MacHalLightLeimac.DevConnStr_Ip, "192.168.0.139",
                                                   MacHalLightLeimac.DevConnStr_Port, 1000,
                                                   MacHalLightLeimac.DevConnStr_Model, MvEnumLeimacModel.IDGB_50M4PG_24_TP,
                                                   MacHalLightLeimac.DevConnStr_Channel, 2),
                        DeviceName = MacEnumDevice.openstage_light_bar_defense_side_001.ToString(),
                        DriverId   = ManifestDriverId.LightFake.ToString(),
                    },

                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = "id=00:11:1C:F9:A3:45",
                        DeviceName = MacEnumDevice.openstage_camera_side_1.ToString(),
                        DriverId   = ManifestDriverId.CameraFake.ToString(),
                    },

                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = "id=00:11:1C:F9:15:E4",
                        DeviceName = MacEnumDevice.openstage_camera_top_1.ToString(),
                        DriverId   = ManifestDriverId.CameraFake.ToString(),
                    },

                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = "id=00:11:1C:F9:A8:BE",
                        DeviceName = MacEnumDevice.openstage_camera_front_1.ToString(),
                        DriverId   = ManifestDriverId.CameraFake.ToString(),
                    },

                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = "id=00:11:1C:F9:A3:46",
                        DeviceName = MacEnumDevice.openstage_camera_barcode_1.ToString(),
                        DriverId   = ManifestDriverId.CameraFake.ToString(),
                    },
                },
            };

            return(rs);
        }
Example #14
0
        MacManifestDeviceCfg DE_IC_A_ASB()
        {
            var rs = new MacManifestDeviceCfg()
            {
                ID         = EnumMachineId.DE_IC_A_ASB.ToString(),
                DevConnStr = null,
                DeviceName = MacEnumDevice.inspection_assembly.ToString(),
                DriverId   = ManifestDriverId.InspectionCh.ToString(),
                PositionId = MacEnumPositionId.InspectionCh01.ToString(),
                Devices    = new MacManifestDeviceCfg[] {
                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = string.Format("{0}={1};{2}={3}", MacHalPlcBase.DevConnStr_Ip, plcIp, MacHalPlcBase.DevConnStr_PortId, plcPortId),
                        DeviceName = MacEnumDevice.inspectionch_plc.ToString(),
                        DriverId   = ManifestDriverId.InspectionChPlc.ToString(),
                    },
                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = string.Format("{0}={1};{2}={3};{4}={5};{6}={7}",
                                                   MacHalLightLeimac.DevConnStr_Ip, "192.168.0.160",
                                                   MacHalLightLeimac.DevConnStr_Port, 1000,
                                                   MacHalLightLeimac.DevConnStr_Model, MvEnumLeimacModel.IDGB_50M4PG_24_TP,
                                                   MacHalLightLeimac.DevConnStr_Channel, 1),
                        DeviceName = MacEnumDevice.inspectionch_light_circle_defense_top_001.ToString(),
                        DriverId   = ManifestDriverId.LightFake.ToString(),
                    },
                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = string.Format("{0}={1};{2}={3};{4}={5};{6}={7}",
                                                   MacHalLightLeimac.DevConnStr_Ip, "192.168.0.160",
                                                   MacHalLightLeimac.DevConnStr_Port, 1000,
                                                   MacHalLightLeimac.DevConnStr_Model, MvEnumLeimacModel.IDGB_50M4PG_24_TP,
                                                   MacHalLightLeimac.DevConnStr_Channel, 2),
                        DeviceName = MacEnumDevice.inspectionch_light_bar_inspection_side_001.ToString(),
                        DriverId   = ManifestDriverId.LightFake.ToString(),
                    },
                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = string.Format("{0}={1};{2}={3};{4}={5};{6}={7}",
                                                   MacHalLightLeimac.DevConnStr_Ip, "192.168.0.160",
                                                   MacHalLightLeimac.DevConnStr_Port, 1000,
                                                   MacHalLightLeimac.DevConnStr_Model, MvEnumLeimacModel.IDGB_50M4PG_24_TP,
                                                   MacHalLightLeimac.DevConnStr_Channel, 3),
                        DeviceName = MacEnumDevice.inspectionch_light_bar_denfese_side_001.ToString(),
                        DriverId   = ManifestDriverId.LightFake.ToString(),
                    },
                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = string.Format("{0}={1};{2}={3};{4}={5};{6}={7}",
                                                   MacHalLightLeimac.DevConnStr_Ip, "192.168.0.161",
                                                   MacHalLightLeimac.DevConnStr_Port, 1000,
                                                   MacHalLightLeimac.DevConnStr_Model, MvEnumLeimacModel.IDGB_50M2PG_12_TP,
                                                   MacHalLightLeimac.DevConnStr_Channel, 1),
                        DeviceName = MacEnumDevice.inspectionch_light_circle_inspection_top_001.ToString(),
                        DriverId   = ManifestDriverId.LightFake.ToString(),
                    },
                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = string.Format("{0}={1};{2}={3};{4}={5};{6}={7}",
                                                   MacHalLightLeimac.DevConnStr_Ip, "192.168.0.162",
                                                   MacHalLightLeimac.DevConnStr_Port, 1000,
                                                   MacHalLightLeimac.DevConnStr_Model, MvEnumLeimacModel.IWDV_600M2_24,
                                                   MacHalLightLeimac.DevConnStr_Channel, 1),
                        DeviceName = MacEnumDevice.inspectionch_light_spot_inspection_left_001.ToString(),
                        DriverId   = ManifestDriverId.LightFake.ToString(),
                    },
                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = string.Format("{0}={1};{2}={3};{4}={5};{6}={7}",
                                                   MacHalLightLeimac.DevConnStr_Ip, "192.168.0.162",
                                                   MacHalLightLeimac.DevConnStr_Port, 1000,
                                                   MacHalLightLeimac.DevConnStr_Model, MvEnumLeimacModel.IWDV_600M2_24,
                                                   MacHalLightLeimac.DevConnStr_Channel, 2),
                        DeviceName = MacEnumDevice.inspectionch_light_spot_inspection_right_001.ToString(),
                        DriverId   = ManifestDriverId.LightFake.ToString(),
                    },

                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = "id=00:11:1C:F8:C6:26",
                        DeviceName = MacEnumDevice.inspectionch_camera_inspect_side_1.ToString(),
                        DriverId   = ManifestDriverId.CameraFake.ToString(),
                    },

                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = "id=TXF-MDT1X150-D35",
                        DeviceName = MacEnumDevice.inspection_camera_inspect_top_1.ToString(),
                        DriverId   = ManifestDriverId.CameraFake.ToString(),
                    },

                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = "id=00:11:1C:F9:A4:0A",
                        DeviceName = MacEnumDevice.inspection_camera_defense_side_1.ToString(),
                        DriverId   = ManifestDriverId.CameraFake.ToString(),
                    },

                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = "id=00:11:1C:F9:A4:0D",
                        DeviceName = MacEnumDevice.inspection_camera_defense_top_1.ToString(),
                        DriverId   = ManifestDriverId.CameraFake.ToString(),
                    },
                },
            };

            return(rs);
        }
Example #15
0
        MacManifestDeviceCfg DE_CB_A_ASB()
        {
            var rs = new MacManifestDeviceCfg()
            {
                ID         = EnumMachineId.DE_CB_A_ASB.ToString(),
                DevConnStr = null,
                DeviceName = MacEnumDevice.cabinet_assembly.ToString(),
                DriverId   = ManifestDriverId.Cabinet.ToString(),
                PositionId = MacEnumPositionId.Cabinet01.ToString(),
                Devices    = new MacManifestDeviceCfg[] {
                    new MacManifestDeviceCfg()
                    {
                        DevConnStr = string.Format("{0}={1};{2}={3}", MacHalPlcBase.DevConnStr_Ip, plcIp, MacHalPlcBase.DevConnStr_PortId, plcPortId),
                        DeviceName = MacEnumDevice.cabinet_plc.ToString(),
                        DriverId   = ManifestDriverId.CabinetPlc.ToString(),
                    },

                    /**
                     * new MacManifestDeviceCfg(){
                     *  DevConnStr = string.Format("{0}={1};{2}={3};{4}={5};{6}={7}",
                     *      MacHalDrawerKjMachine.DevConnStr_Ip, "192.168.0.34",
                     *      MacHalDrawerKjMachine.DevConnStr_Port, 5000,
                     *      MacHalDrawerKjMachine.DevConnStr_LocalIp, "192.168.0.14",
                     *      MacHalDrawerKjMachine.DevConnStr_LocalPort, 6000,
                     *      MacHalDrawerKjMachine.DevConnStr_StartPort,"5001",
                     *      MacHalDrawerKjMachine.DevConnStr_EndPort,"5999",
                     *      MacHalDrawerKjMachine.DevConnStr_Index,"01_01"),
                     *  ID = EnumMachineId.DE_CB_A_01_01.ToString(),
                     *  DeviceName = MacEnumDevice.cabinet_drawer_01_01.ToString(),
                     *  DriverId = ManifestDriverId.DrawerKjMachine.ToString(),
                     * },*/
                    /**
                     * new MacManifestDeviceCfg(){
                     *  DevConnStr = string.Format("{0}={1};{2}={3};{4}={5};{6}={7}",
                     *      MacHalDrawerKjMachine.DevConnStr_Ip, "192.168.0.42",
                     *      MacHalDrawerKjMachine.DevConnStr_Port, 5000,
                     *      MacHalDrawerKjMachine.DevConnStr_LocalIp, "192.168.0.14",
                     *      MacHalDrawerKjMachine.DevConnStr_LocalPort, 6000,
                     *      MacHalDrawerKjMachine.DevConnStr_StartPort,"5001",
                     *      MacHalDrawerKjMachine.DevConnStr_EndPort,"5999",
                     *      MacHalDrawerKjMachine.DevConnStr_Index,"01_02"),
                     *  ID = EnumMachineId.DE_CB_A_01_02.ToString(),
                     *  DeviceName = MacEnumDevice.cabinet_drawer_01_02.ToString(),
                     *  DriverId = ManifestDriverId.DrawerKjMachine.ToString(),
                     * },*/
                    /**
                     * new MacManifestDeviceCfg(){
                     *  DevConnStr = string.Format("{0}={1};{2}={3};{4}={5};{6}={7}",
                     *      MacHalDrawerKjMachine.DevConnStr_Ip, "192.168.0.50",
                     *      MacHalDrawerKjMachine.DevConnStr_Port, 5000,
                     *      MacHalDrawerKjMachine.DevConnStr_LocalIp, "192.168.0.14",
                     *      MacHalDrawerKjMachine.DevConnStr_LocalPort, 6000,
                     *      MacHalDrawerKjMachine.DevConnStr_StartPort,"5001",
                     *      MacHalDrawerKjMachine.DevConnStr_EndPort,"5999",
                     *      MacHalDrawerKjMachine.DevConnStr_Index,"01_03"),
                     *  ID = EnumMachineId.DE_CB_A_01_03.ToString(),
                     *  DeviceName = MacEnumDevice.cabinet_drawer_01_03.ToString(),
                     *  DriverId = ManifestDriverId.DrawerKjMachine.ToString(),
                     * },*/
                    /**
                     * new MacManifestDeviceCfg(){
                     *  DevConnStr = string.Format("{0}={1};{2}={3};{4}={5};{6}={7}",
                     *      MacHalDrawerKjMachine.DevConnStr_Ip, "192.168.0.54",
                     *      MacHalDrawerKjMachine.DevConnStr_Port, 5000,
                     *      MacHalDrawerKjMachine.DevConnStr_LocalIp, "192.168.0.14",
                     *      MacHalDrawerKjMachine.DevConnStr_LocalPort, 6000,
                     *      MacHalDrawerKjMachine.DevConnStr_StartPort,"5001",
                     *      MacHalDrawerKjMachine.DevConnStr_EndPort,"5999",
                     *      MacHalDrawerKjMachine.DevConnStr_Index,"01_04"),
                     *  ID = EnumMachineId.DE_CB_A_01_04.ToString(),
                     *  DeviceName = MacEnumDevice.cabinet_drawer_01_04.ToString(),
                     *  DriverId = ManifestDriverId.DrawerKjMachine.ToString(),
                     * },*/
                },
            };

            return(rs);
        }