Exemplo n.º 1
0
        /// <summary>
        /// 设置单轴停止 减速停止
        /// </summary>
        /// <param name="card"></param>
        /// <param name="axis"></param>
        /// <returns></returns>
        public short _SR_AxisStop(short card, short axis)
        {
            short shrResult;

            shrResult = (short)Dmc1000.d1000_immediate_stop(axis + card * tag_AxisCount);
            if (shrResult != shrGtsSuccess)
            {
                CommandResult("d1000_immediate_stop", shrResult);
                return(shrFail);
            }
            return(shrResult);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 设置单轴停止 减速停止
        /// </summary>
        /// <param name="card"></param>
        /// <param name="axis"></param>
        /// <returns></returns>
        public short _SR_AxisStop(short card, short axis)
        {
            short shrResult;

            if (tag_CardCount < 1 || card >= tag_CardCount)
            {
                return(-1);
            }
            shrResult = (short)Dmc1000.d1000_immediate_stop(axis + card * tag_AxisCount);
            if (shrResult != shrGtsSuccess)
            {
                CommandResult("adt8960m_dec_stop", shrResult);
                return(shrFail);
            }
            return(shrResult);
        }