6149
« on: August 02, 2006, 08:05:52 PM »
N40 X0.5817 Y0.5729
N45 M3 S100
N50 Z0.1000
N55 G1 Z-0.2500 F3.00
N56 G42 p0.125
N60 Y0.4004 F10.00
N65 X0.2129
It appears to me to be working exactly as it should. It's not combining the moves. I think you don't understand how the advanced comp works in Mach.
When you use comp, at the position prior to the G42, the center of the tool is at that position, in this case X .5817 Y .5729 is the center of the tool. As the tool begins to move, it moves to a postion where the tool edges are tangent to the next two moves. Imagine drawing an angle through your 3 points.
X .5817 Y.5729
X .5817 Y .4004
X .2129 Y .4004
After the comp, the tool is tangent to the 2 sides of the angle.
I did a sample drawing. The blue circle is the tool before the G42. Red line is the g-code without the comp, which is what Mach displays. Green line is the actual comped path. The first angled move is the G1 Y.4004 move. As the comp is applied, the tool moves to the tangent point of that move and the next move. Notice how it's tangent to the red line.
This is exactly how it's supposed to work. If you want the tool to start on your part at the same place it ends, you'll need to apply the comp one move sooner.