Beispiel #1
0
        /// <summary>
        /// 单轴连续运动
        /// </summary>
        /// <param name="card"></param>
        /// <param name="axis"></param>
        /// <param name="postion">目标点位</param>
        /// <param name="speed">速度</param>
        /// <returns></returns>
        public short _SR_continue_move(AxisConfig axisC, PointModule point, int dir)
        {
            int ddir = 1;

            if (dir == 1)
            {
                ddir = -1;
            }
            return((short)Dmc1000.d1000_start_sv_move(axisC.CardNum * tag_AxisCount + axisC.AxisNum, (int)point.dblPonitStartSpeed,
                                                      (int)point.dblPonitSpeed * ddir, point.dblAccTime));//连续运动
        }
Beispiel #2
0
        /// <summary>
        /// 单轴连续运动
        /// </summary>
        /// <param name="card"></param>
        /// <param name="axis"></param>
        /// <param name="postion">目标点位</param>
        /// <param name="speed">速度</param>
        /// <returns></returns>
        public short _SR_continue_move(AxisConfig axisC, PointModule point, int dir)
        {
            if (tag_CardCount < 1 || axisC.CardNum >= tag_CardCount)
            {
                return(-1);
            }
            int ddir = 1;

            if (dir == 1)
            {
                ddir = -1;
            }
            int   speed = (int)point.dblPonitSpeed * ddir;
            int   dblPonitStartSpeed = (int)point.dblPonitStartSpeed * ddir;
            short ret = (short)Dmc1000.d1000_start_sv_move(axisC.CardNum * tag_AxisCount + axisC.AxisNum, (int)dblPonitStartSpeed,
                                                           (int)speed, point.dblAccTime);

            return(ret);           //连续运动
        }