Beispiel #1
0
        /// <summary>
        /// 获取轴运动状态 1,运动,0 飞运动 -1异常
        /// </summary>
        /// <param name="axisC"></param>
        /// <returns></returns>
        public static short SR_set_softlimit(AxisConfig axisC)
        {
            short           shrResult  = 0;
            int             axisStatus = 0;
            NewCtrlCardBase Base_      = tag_NewCtrlCardBase[(int)axisC.tag_MotionCardManufacturer];

            if (Base_ == null || Base_.SR_set_softlimit == null)
            {
                MessageBoxLog.Show(NewCtrlCardBase.GetManufacturerName((int)axisC.tag_MotionCardManufacturer) + "控制卡初始化失败!");
                return(-1);
            }
            shrResult = Base_.SR_set_softlimit(axisC);
            if (shrResult == 1)
            {
                return(-1);
            }
            return((short)axisStatus);
        }