21
G-Code, CAD, and CAM discussions / Re: Mach3 and code G41/G42 in subroutines
« on: February 05, 2012, 04:12:38 AM »
Hello Graham,
Obviously you have taken out the relative coding (G91), which is something I absolutely need. (I make big instrument panels on which I have to distribute holes relative to some origin). However, I tried your code, and this did not show that overshoot. The offset stayed at 2mm precisely. So I toke the relative coding (G91 etc.) out of my own part program and see, the overshoot was still present. Now my problem is not so much "how to get a square", but what is wrong in my coding that produces the effect. I like to learn what faults I made in order to avoid them in future parts. Meanwhile I have produced a number of panels, all with relative coding and tool compensation. None had this problem. (Just the problem with tool comp in subroutines). How did you came to those strange numbers in this line: G00 G90 G43 X2.442 Y-9.085
What is their origin ?
Wilfried
Obviously you have taken out the relative coding (G91), which is something I absolutely need. (I make big instrument panels on which I have to distribute holes relative to some origin). However, I tried your code, and this did not show that overshoot. The offset stayed at 2mm precisely. So I toke the relative coding (G91 etc.) out of my own part program and see, the overshoot was still present. Now my problem is not so much "how to get a square", but what is wrong in my coding that produces the effect. I like to learn what faults I made in order to avoid them in future parts. Meanwhile I have produced a number of panels, all with relative coding and tool compensation. None had this problem. (Just the problem with tool comp in subroutines). How did you came to those strange numbers in this line: G00 G90 G43 X2.442 Y-9.085
What is their origin ?
Wilfried