Exemplo n.º 1
0
        /// <summary>
        /// 设置单轴停止 减速停止
        /// </summary>
        /// <param name="card"></param>
        /// <param name="axis"></param>
        /// <returns></returns>
        public static short SR_AxisStop(int Cardtype, short card, short axis)
        {
            short           shrResult;
            NewCtrlCardBase Base_ = tag_NewCtrlCardBase[Cardtype];

            if (Base_ == null)
            {
                MessageBoxLog.Show(NewCtrlCardBase.GetManufacturerName((int)Cardtype) + "控制卡初始化失败!");
                return(shrFail);
            }
            shrResult = Base_.SR_AxisStop(card, axis);
            if (shrResult != shrGtsSuccess)
            {
                return(-1);
            }
            return(0);
        }