コード例 #1
0
ファイル: GTSMotion.cs プロジェクト: yisea123/AnsonGlue
        /// <summary>
        ///     获取Jog运动参数
        /// </summary>
        /// <param name="nCardNum"></param>
        /// <param name="nAxis">轴号</param>
        /// <param name="acc">加速度</param>
        /// <param name="dec">减速度</param>
        /// <param name="smooth">平滑系数</param>
        /// <returns></returns>
        public override short GetJogPrm(short nCardNum, short nAxis, out double acc, out double dec, out double smooth)
        {
            short nRtn = 0;

            CMc.JOG_PRM trapPrm;
            nRtn  |= CMc.GT_GetJogPrm(nCardNum, nAxis, out trapPrm);
            acc    = trapPrm.m_acc;
            dec    = trapPrm.m_dec;
            smooth = trapPrm.m_smooth;

            return(nRtn);
        }