private void Move_Stop(object sender, MouseEventArgs e)
 {
     for (byte i = 1; i <= 3; i++)
     {
         EziMOTIONPlusRLib.FAS_MoveStop(VarGlobal.PortNo, i);
     }
 }
 private void Move_Stop(object sender, MouseEventArgs e)
 {
     if (VarGlobal.m_Connected)
     {
         for (byte i = 1; i <= 3; i++)
         {
             EziMOTIONPlusRLib.FAS_MoveStop(VarGlobal.PortNo, i);
         }
     }
     else
     {
         MessageBox.Show("Not connect");
     }
 }
 /// <summary>
 /// Move Stop of Z coor
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Move_Stop(object sender, MouseEventArgs e)
 {
     if (VarGlobal.m_Connected)
     {
         int nRtn = EziMOTIONPlusRLib.FAS_MoveStop(VarGlobal.PortNo, 3);
         if (nRtn != EziMOTIONPlusRLib.FMM_OK)
         {
             string strmsg;
             strmsg = "FAS_MoveStop() \nreturned: " + nRtn.ToString();
             MessageBox.Show(strmsg, "function failed");
         }
     }
     else
     {
         MessageBox.Show("Not connect");
     }
 }
Example #4
0
        private void btnStop_Click(object sender, EventArgs e)
        {
            byte iSlaveno;
            int  nRtn;

            if (m_bConnected == false)
            {
                return;
            }
            if (textSlaveNo.Text.Length <= 0)
            {
                textSlaveNo.Focus();
                return;
            }
            iSlaveno = byte.Parse(textSlaveNo.Text);
            nRtn     = EziMOTIONPlusRLib.FAS_MoveStop(m_nPortNo, iSlaveno);
            if (nRtn != EziMOTIONPlusRLib.FMM_OK)
            {
                string strMessage;
                strMessage = "FAS_MoveStop() \nReturned:" + nRtn.ToString();
                MessageBox.Show(strMessage, "Function Failed");
            }
        }