public bool Inposition() { // send command and read recv buffer EMCL.ERAETech_EMCL_IsPositionReached(m_nPort, Convert.ToByte(m_nModuleID)); EMCL.ERAETech_EMCL_WaitAndGetReply(m_nPort, ref m_nRetValue); return(0 < m_nRetValue ? true : false); }