Exemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            ushort a;
            int    ret = Fanuc.cnc_rdophisno(Fanuc.h, out a);

            if (ret == Fanuc.EW_OK)
            {
                textBox2.Text = a.ToString();
            }
            else
            {
                MessageBox.Show(ret + "");
            }
        }