Ejemplo n.º 1
0
 public void MoveStart(int nTargetPos, int nAcc, MoveMode mode)
 {
     // send command and read recv buffer
     EMCL.ERAETech_EMCL_SetMaxPositionSpeed(m_nPort, Convert.ToByte(m_nModuleID), Convert.ToInt32(nAcc));
     EMCL.ERAETech_EMCL_WaitAndGetReply(m_nPort, ref m_nRetValue);
     Thread.Sleep(10);
     // send command and read recv buffer
     EMCL.ERAETech_EMCL_MoveToPosition(m_nPort, Convert.ToByte(m_nModuleID), (byte)mode, Convert.ToInt32(nTargetPos));
     EMCL.ERAETech_EMCL_WaitAndGetReply(m_nPort, ref m_nRetValue);
     Thread.Sleep(10);
 }