Esempio n. 1
0
        public override int GetMotionSts(int cardId, int axisId, ref int sts)
        {
            int _sts, _rSts;

            _sts  = APS168.APS_motion_status(axisId);
            _rSts = 0;
            if (XConvert.BitEnable(_sts, XAPS_Define.MTS_ASTP))
            {
                XConvert.SetBits(ref _rSts, XAPS_Define.MTS_ASTP);
            }
            if (XConvert.BitEnable(_sts, XAPS_Define.MTS_HMV))
            {
                XConvert.SetBits(ref _rSts, XAPS_Define.MTS_HMV);
            }
            if (XConvert.BitEnable(_sts, XAPS_Define.MTS_MDN))
            {
                XConvert.SetBits(ref _rSts, XAPS_Define.MTS_MDN);
            }
            sts = _rSts;
            return(0);
        }
Esempio n. 2
0
 public int MoveAbs(int postion, int vel)
 {
     return(card.MoveAbs(actAxisId, XConvert.MM_PULS(postion, lead), XConvert.MM_PULS(vel, lead)));
 }
Esempio n. 3
0
 public int MoveRel(double distance, double vel)
 {
     return(card.MoveRel(actAxisId, XConvert.MM_PULS(distance, lead), XConvert.MM_PULS(vel, lead)));
 }