Exemplo n.º 1
0
        private void button9_Click(object sender, EventArgs e)
        {
            Fanuc.IODBSIG3 iodbsig3 = new Focas1.IODBSIG3();
            int            ret      = Fanuc.cnc_wrhissgnl3(Fanuc.h, iodbsig3);

            if (ret == Fanuc.EW_OK)
            {
            }
            else
            {
                MessageBox.Show(ret + "");
            }
        }
Exemplo n.º 2
0
        private void button8_Click(object sender, EventArgs e)
        {
            Fanuc.IODBSIG3 iodbsig3 = new Focas1.IODBSIG3();
            int            ret      = Fanuc.cnc_rdhissgnl3(Fanuc.h, iodbsig3);

            if (ret == Fanuc.EW_OK)
            {
                Fanuc.IODBSIG3_data iodbsig3data = iodbsig3.data;
                short datano = iodbsig3.datano;
                short type   = iodbsig3.type;
            }
            else
            {
                MessageBox.Show(ret + "");
            }
        }