1889
« on: October 10, 2007, 06:24:26 PM »
Hi Derek,
I think you have misunderstood how the work offsets work.
G59 is the location of your x, y & z datum in relation to zero return.
G59 P12 to P20 is also the location of your 2nd to 10th x, y & z datum in relation to zero return.
So if your first part is at X-100 Y-100 Z-50 your second (G59 P12) part will be at X-135 Y-100 Z-50, your third (G59 P13) part at X-170 Y-100 Z-50 Etc.
If you want to make life a bit easier you can use G52 in your programs. That way you only set one datum (G54) this will be the X,Y & Z distance from zero return to the datum point on the first part.
The G52 lines are the distance from the datum point on the first part.
Your program would then look like this :-
%
N1 G54
N100 G00 G17 G21 G40 G49 G80 G90
N110 T1 M06 G43 L1 (10MM slot drill)
N132 G00 Z10.S750 M03
N133 G00 X0 Y0
N135 M98 P1
N136 G52 X35.
N137 M98 P1
N1137 G52 X0
N138 G52 X70.
N139 M98 P1
N140 G52 X0
N1140 G52 X105.
N141 M98 P1
N142 G52 X0
Etc....
A G52 with a value of 0 (zero) cancels the shift, this must be done before you change to another value. You must also cancel any G52's before a tool change move or change of fixture (G55,G56 etc)
By the way, Mach3 will not draw it correctly on the screen, don't worry it will cut correctly.
I hope this helps
Graham.