Hi,
as satisfying as it may be to have your CAM program nest the parts for you consider this....
The attached picture is a diagrammatic representation of 8 parts to be cut from one piece of material
The first part is cut with work coordinate origin 0,0. The second part, using the indentical Gcode but with the
work coordinate displaced by the g92 offset of x=50mm, y=0
The following code would cut 8 such parts:
g54 (set your work coords to g54)
g92 x0 y0 (ensure no g92 offset is applied for the first part)
m98 p1000
g92 x50 y0
m98 p1000
g92 x100 y0
m98 p1000
g92 x150 y0
m98 p1000
g92 x0 y50
m98 p1000
g92 x50 y50
m98 p1000
g92 x100 y50
m98 p1000
g92 x150 y50
m98 p1000
g92 x0 y0 (Reset g92 offsets to zero)
m30 (end of program with 8 indentical parts cut)
o1000
......
......
(your part Gcode)
.......
m99
As you can see the part Gcode is turned into a subroutine by encapsulating it with the o1000 line at the beginning
and the m99 return at the end. It would be necessary to strip any m30 or similar end of program code from
the end of the part Gcode.
Craig