Hi, Im new to this so any help is welcome!
I have a pice I want to mill trough a block several times, so first I want to do the original at x0y0z0
Then I want to change in the code to a new Zero, x100y100z0 to do a copy, after doing this 7 times in X I want to do it 3 times in Y making in total 21 pieces.
So basicly I want to en up with three "rows" and seven "columns" of milled pieces. Some thinking below:
G00 G49 G40.1 G17 G80 G50 G90
G21
For i = 0 to 6 X
For j =0 to 2 y
Go to x0,y0
Move x,y zero point
X = x + i*150
Y= y + j * 200
set to g54 new 0 position
PROGRAMCODE
NEXT j Y
next i X
G00 Z6.0000
M5 M9
M30