public void MovePosXY(MovePosPrm movePosPrmX, MovePosPrm movePosPrmY) { //move pos xy CommandMovePos command = new CommandMovePos(this.XY, new MovePosPrm[] { movePosPrmX, movePosPrmY }); this.Fire(command); }
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); }
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)); }
public void MovePosZ(MovePosPrm movePosPrm) { CommandMovePos command = new CommandMovePos(this.Z, movePosPrm); this.Fire(command); }