public void get_pindle()//获取主轴的速度 { short ret = Fanuc.cnc_acts(Fanuc.h, pindle); if (ret == 0) { label5.Text = pindle.data.ToString(); } else { MessageBox.Show(ret + ""); } }