Example #1
0
        private void ThreadPoolFunction()
        {
            string sStrip = "N080";
            int    j      = 50000;

            EAPOutput output = new EAPOutput();
            RecordResultByStripInput recordStrip = new RecordResultByStripInput();

            recordStrip.EquipmentId    = "TEST";
            recordStrip.LotId          = "RTC926N010.007";
            recordStrip.MESCurrentStep = "STD_WireBond_Step";
            recordStrip.StripRows      = "8";
            recordStrip.StripColumns   = "28";

            recordStrip.BinCodeSeparator      = ",";
            recordStrip.StripBinCodeMap       = ".,.,.,.,.,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0;.,.,.,.,.,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0;.,.,.,.,.,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0;.,.,.,.,.,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0;.,.,.,.,.,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0;.,.,.,.,.,.,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0;.,.,.,.,.,.,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0;.,.,.,.,.,.,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0";
            recordStrip.StripEqpBinCodeMap    = "0086,0086,0086,0086,0086,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000;0086,0086,0086,0086,0086,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000;0086,0086,0086,0086,0086,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000;0086,0086,0086,0086,0086,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000;0086,0086,0086,0086,0086,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000;0086,0086,0086,0086,0086,0086,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000;0086,0086,0086,0086,0086,0086,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000;0086,0086,0086,0086,0086,0086,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000";
            recordStrip.IgnoreStripEqpBinCode = "0000";
            recordStrip.OutputMagazineId      = "QQQQ";

            MesMessage.InitMesMessage(true);
            while (true)
            {
                for (int i = 0; i < 1000; i++)
                {
                    recordStrip.StripId = sStrip + j.ToString();
                    output = MesMessage.TransferData <RecordResultByStripInput>(recordStrip);
                    j++;
                }
                Thread.Sleep(50);
            }
        }
Example #2
0
        private void btnWCF_Click(object sender, EventArgs e)
        {
            //EAPOutput output = new EAPOutput();
            //string EquipmentId = "11";
            //string StripId = "I01855086";
            //string WaferId = "11";
            //string AoLotId = "WinForm";
            //string Source = "AutoTrackInOut";


            //QueryStripInfo stripQuery = new QueryStripInfo();

            //stripQuery.StripId = txtStrip.Text;
            //stripQuery.LotId = txtLot.Text;
            //stripQuery.EquipmentId = txtEqp.Text;


            RecordResultByStripInput recordStrip = new RecordResultByStripInput();

            recordStrip.EquipmentId           = "TEST";
            recordStrip.LotId                 = "RTC926N010.006";
            recordStrip.MESCurrentStep        = "STD_WireBond_Step";
            recordStrip.StripRows             = "8";
            recordStrip.StripColumns          = "28";
            recordStrip.BinCodeSeparator      = ",";
            recordStrip.StripBinCodeMap       = ".,.,.,.,.,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0;.,.,.,.,.,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0;.,.,.,.,.,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0;.,.,.,.,.,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0;.,.,.,.,.,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0;.,.,.,.,.,.,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0;.,.,.,.,.,.,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0;.,.,.,.,.,.,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0";
            recordStrip.StripEqpBinCodeMap    = "0086,0086,0086,0086,0086,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000;0086,0086,0086,0086,0086,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000;0086,0086,0086,0086,0086,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000;0086,0086,0086,0086,0086,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000;0086,0086,0086,0086,0086,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000;0086,0086,0086,0086,0086,0086,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000;0086,0086,0086,0086,0086,0086,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000;0086,0086,0086,0086,0086,0086,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000";
            recordStrip.IgnoreStripEqpBinCode = "0000";
            recordStrip.OutputMagazineId      = "QQQQ";
            string sStrip = "N080";
            int    j      = 50000;

            MesMessage.InitMesMessage(true);


            for (int i = 0; i < 10000; i++)
            {
                ThreadPool.QueueUserWorkItem(o =>
                {
                    recordStrip.StripId = sStrip + j.ToString();
                    MesMessage.TransferData <RecordResultByStripInput>(recordStrip);
                }
                                             );
                j++;
            }


            //LotQueryInput lotQueryInput = new LotQueryInput();

            //lotQueryInput.EquipmentId = EquipmentId;
            //lotQueryInput.StripId = StripId;
            //lotQueryInput.WaferId = WaferId;
            //lotQueryInput.LotId = AoLotId;
            //lotQueryInput.Source = Source;

            //MesMessage.InitMesMessage(true);
            ////output = MesMessage.TransferData<QueryStripInfo>(stripQuery);

            ////output = MesMessage.TransferData<LotQueryInput>(lotQueryInput);



            //MessageBox.Show(output.ErrCode + output.ENErrMsg);

            //output.OutputMessage.ToString();

            //new Thread(ThreadPoolFunction)
            //{ IsBackground=true}.Start();
        }