/// <summary> /// 停止初始化 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void button_startstop_Click(object sender, EventArgs e) { if (button_startstop.Text == "停止") { robot1.Stop(); robot1.ifmove = false; button_startstop.Text = "重启"; button_cycle_stop.Text = "重启"; } else//重启运动控制卡 { robot1.ifmove = true; button_startstop.Text = "停止"; button_cycle_stop.Text = "停止"; } }