示例#1
0
        public void MovePosXY(MovePosPrm movePosPrmX, MovePosPrm movePosPrmY)
        {
            //move pos xy
            CommandMovePos command = new CommandMovePos(this.XY, new MovePosPrm[] { movePosPrmX, movePosPrmY });

            this.Fire(command);
        }
示例#2
0
        public void MovePosXYZ(MovePosPrm movePosPrmX, MovePosPrm movePosPrmY, MovePosPrm movePosPrmZ)
        {
            //move pos safe z
            MovePosPrm movePosPrmSafeZ = movePosPrmZ;

            movePosPrmSafeZ.Pos = this.SafeZ;
            CommandMovePos command = new CommandMovePos(this.Z, movePosPrmSafeZ);

            this.Fire(command);
            //move pos xy
            command = new CommandMovePos(this.XY, new MovePosPrm[] { movePosPrmX, movePosPrmY });
            this.Fire(command);
            //move pos z
            command = new CommandMovePos(this.Z, movePosPrmZ);
            this.Fire(command);
        }
示例#3
0
        public static bool MovePosAndReply(this AxisType axisType, double pos, double vel)
        {
            Axis axis = AxisMgr.Instance.FindBy((int)axisType);

            if (axis == null)
            {
                return(false);
            }
            MovePosPrm prm = new MovePosPrm()
            {
                Pos = pos,
                Vel = vel,
                Acc = axis.Prm.Acc,
                Dec = axis.Prm.Acc
            };
            CommandMovePos command = new CommandMovePos(axis, prm);

            return(executeCommand(command));
        }
示例#4
0
        public void MovePosZ(MovePosPrm movePosPrm)
        {
            CommandMovePos command = new CommandMovePos(this.Z, movePosPrm);

            this.Fire(command);
        }