Well I cant tell if your code is doing what it's supposed to, But I can tell you what the Z10 X10 Y10 hove is.
It's a safety move to you dont crash. The firzt Z10 moves the tool up. Now if it's hitting your limit, then you need to adjust the value. Most likely it's set with your "Home" Position. Look on your tool path parameter page for a "Home" button. Hit it and check the values.
You can also set the default value for the home position.
It may also be hard coded into your post.
Mike Mattera
__________________ Tips For Manufacturing Training CD's, DVD's for Mastercam, SolidWorks, Inventor, G-Code Training & More
http://www.tipsforcadcam.com |