Esempio n. 1
0
        private void btnWaitStateWrite_Click(object sender, EventArgs e)
        {
            if (cbWaitStateAnimation.SelectedIndex > -1 && cbWaitStateColor.SelectedIndex > -1)
            {
                ushort[] value = new ushort[2];
                value[0] = Convert.ToUInt16(cbWaitStateAnimation.SelectedIndex);
                value[1] = Convert.ToUInt16(cbWaitStateColor.SelectedIndex);

                lamba.lambaDefualtWaitStateWrite(value[0], value[1]);

                status.StatusUpdate(cGenel.WAIT_STATE_ANIMATION_ID, value[0]);
                status.StatusUpdate(cGenel.WAIT_STATE_COLOR_ID, value[1]);

                status.statusColorAta();
            }
        }
Esempio n. 2
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            lblUstBilgi.Text = string.Format("{0}-Line Doortrim Dolly Traceability System-{1}", cGenel.MAKINE_ADI, cGenel._OpenSessionGRUPNAME);
            CheckForIllegalCrossThreadCalls = false;
            _AREvt = new AutoResetEvent(false);
            var t = Task.Run(() =>
            {
                while (true)
                {
                    _AREvt.WaitOne(100, true);
                    Loop();
                }
            });


            parametre.parametreleriAta();

            status.statusColorAta();



            if (cGenel.MAKINE_ADI == cGenel.MAKINE_ADI_LH)
            {
                KarkasIslem.LHDollyBarkod = karkasIslem.gorevDurumIslemYokveyaYapiliyorDollyLH()._DOLLYNO.ToString();
            }
            else if (cGenel.MAKINE_ADI == cGenel.MAKINE_ADI_RH)
            {
                KarkasIslem.RHDollyBarkod = karkasIslem.gorevDurumIslemYokveyaYapiliyorDollyRH()._DOLLYNO.ToString();
            }

            btn1.Click += new EventHandler(islem);
            btn2.Click += new EventHandler(islem);
            btn3.Click += new EventHandler(islem);
            btn4.Click += new EventHandler(islem);
            btn5.Click += new EventHandler(islem);
            btn6.Click += new EventHandler(islem);
            btn7.Click += new EventHandler(islem);
            btn8.Click += new EventHandler(islem);
            btn9.Click += new EventHandler(islem);
            btn0.Click += new EventHandler(islem);

            if (cGenel.xByPass == false)
            {
                lambaKontrol.lambaKontrolConnect();
            }

            if (cGenel.xByPass == false && cLambaKontrol.PLCDurumu == PLCDurumlari.UYGUN)
            {
                lambaKontrol.yarimKalanIsıklarGoster();
            }

            //   stepMotorIslemci.stepMotorIstemciyiOlustur();

            //   stepMotorIslemci.kilitMekanizmaSensorOku();
        }