I’m trying to cut multiple hearts on the same metal sheet. I omitted the part of the code that works ok. Getting a loop within a loop seems to be the challenge.
M98 P2 L4 (Main program calls for O2 to move axis 5 times)
M0
O2 (moves axis to different part of sheet to carve heart)
M98 P1 L32 (Calls O1 to cut heart in 0.1mm increments through ¼”metal)
#2=[#2-38] (advances axis counter)
G52 Y#2 (moves axis to next heart in line)
M99
#1= -0.1
O1 (sub for carving hearts)
Bunch of lines of gcode that inscribe heart
#1=[#1-.01] (advances depth by 0.1mm increments)
M99
When I do this, the tool path generator will outline the number of hearts along the y axis but will not move beyond cutting the first. Help,valentines day is soon and I have three daughters.