public AxisCurState GetAxisCurState(AxisNum Axis) { AxisCurState CurState = AxisCurState.AxisState_Wrong; ushort State = (ushort)AxisState.STA_AX_DISABLE; Motion.mAcm_AxGetState(m_AxisHandle[(int)Axis], ref State); switch ((AxisState)State) { case AxisState.STA_AX_READY: CurState = AxisCurState.AxisState_Ready; break; case AxisState.STA_AX_ERROR_STOP: CurState = AxisCurState.AxisState_ErrorStop; break; case AxisState.STA_AX_BUSY: CurState = AxisCurState.AxisState_Busy; break; default: break; } return(CurState); }
public AxisCurState GetAxisCurState(AxisNum Axis) { AxisCurState CurState = AxisCurState.AxisState_Wrong; if (m_IsConnected) { CurState = m_MotionControler.GetAxisCurState(Axis); } return(CurState); }