Graham
Thanks for the rewrite. A few more questions if you dont mind.
Line 4?
G01 Z-.0214 F360. Wouldnt this lower my Z at a feedrate of 360ipm (yikes on a Sherline) with a .0214 doc? and do it 6 times as indicated by L6?
O0002(SUB)
G91
G01 X3. A1080. F1080.
G00 Z.1
X-3. A60.
Z-.1
G90
M99
Does this mean it goes to (G90 an absolute location of X0 A0?) then go to X3 while rotating 3 times, retracting Z to .1 and then rotating 60 degrees and (G91 incrementally moving down from the prior absolute location?) Am I close?
Also as stated before regarding the sub, besides it physically being the last 8 lines of code, is it stored anywhere else? Or is it just referred to at the top of the file and then the definition given at the end?. I am beginning to think the sub is created in the program and could be stored and referred to permanently but not necessarily saved unless aditional steps are taken to do so.
The more I look at your code and try to understand it, there is a lot more going on than I thought. The order is so different than what I would expected. Almost like reading from the bottom up, then right when I think I understand a little bit. It goes to another block entirely.