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 + ""); } }