Hello Guest it is January 17, 2021, 08:48:28 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - mcAber

Pages: 1
G-Code, CAD, and CAM discussions / Returning from makro, Z is wrong.
« on: August 22, 2007, 01:00:52 PM »
What am I doing wrong with my macro (using Mach 2)?

As a newbie I have had my share of problems. And now I am completly stucked.

I have made a program for milling holes for electrical connectors consisting of 1 "big" hole and 4 small holes for screws. To make subroutines and macros reusable I do also work with parameters.

Now to my problem:

My drilling makro M90001 has following operations:
1. Drill to correct depth
2. Do a G12 to get the correct diameter of the hole.
3. Retract tool to transport height.

But when the program continues after the macro, the tool will go down to milling depth instead of continuing at transport height as I expected it do.


Program and macros attached. Files are a little bit renamed  to be able to upload them


Pages: 1