public void MoveStop(int nAcc) { // send command and read recv buffer EMCL.ERAETech_EMCL_SetMaxAcceleration(m_nPort, Convert.ToByte(m_nModuleID), Convert.ToInt32(nAcc)); EMCL.ERAETech_EMCL_WaitAndGetReply(m_nPort, ref m_nRetValue); // send command and read recv buffer EMCL.ERAETech_EMCL_Stop(m_nPort, Convert.ToByte(m_nModuleID)); EMCL.ERAETech_EMCL_WaitAndGetReply(m_nPort, ref m_nRetValue); }
public void JogMove_N(int nSpeed, int nAcc) { // send command and read recv buffer EMCL.ERAETech_EMCL_SetMaxAcceleration(m_nPort, Convert.ToByte(m_nModuleID), Convert.ToInt32(nAcc)); EMCL.ERAETech_EMCL_WaitAndGetReply(m_nPort, ref m_nRetValue); // send command and read recv buffer EMCL.ERAETech_EMCL_RotateLeft(m_nPort, Convert.ToByte(m_nModuleID), Convert.ToInt32(nSpeed)); EMCL.ERAETech_EMCL_WaitAndGetReply(m_nPort, ref m_nRetValue); }