Hello Guest it is April 24, 2024, 10:19:32 PM

Author Topic: Returning from makro, Z is wrong.  (Read 2418 times)

0 Members and 1 Guest are viewing this topic.

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.

Why?

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

Martin