Ejemplo n.º 1
0
        public void get_loop_gain()//伺服调整环路增益,ok
        {
            //out 只是表示传递此变量的地址

            int[] array = new int[] { 1, 2, 3 };



            short ret = Fanuc.cnc_rdloopgain(Fanuc.h, out array[0]);

            if (ret == 0)
            {
                for (int i = 0; i < array.Length; i++)
                {
                    listBox9.Items.Add("环路增益:" + array[i]);
                }
            }
            else
            {
                MessageBox.Show(ret + "");
            }
        }