重置鈕:重置警報

當軸遇到錯誤並觸發警報,此時使用 ResetAxis 來重置警報,此按鈕的方法為 btnRESET_Click

private void btnRESET_Click(object sender, EventArgs e)
{
   int Mindex = lbMList.SelectedIndex;

   /*Makes the transition from the state ErrorStop to Standstill or Disabled by
     resetting all internal axis-related errors – it doesn't affect the output
     of the function instances.*/
   motion.ResetAxis(Mindex);
}