1281
G-Code, CAD, and CAM discussions / Re: Multiple Parts
« on: December 21, 2009, 10:36:59 AM »
You need to use G52 Xx Yy this is a local datum and is used like this :-
g54 g00 g90 g....... (initial start lines)
g52 x20. y20. (move x 20mm and y 20mm)
m98 p1 (call a sub or any lines of code)
g52 x0 y0 (cancel the shift)
g52 x40. y20. (move to next shift pos)
m98 p1
g52 x0 y0
etc.......
Graham
g54 g00 g90 g....... (initial start lines)
g52 x20. y20. (move x 20mm and y 20mm)
m98 p1 (call a sub or any lines of code)
g52 x0 y0 (cancel the shift)
g52 x40. y20. (move to next shift pos)
m98 p1
g52 x0 y0
etc.......
Graham