Spiral Milling
Hello fellow cnc-fans
I've had lots of time for spare at work lately, so i started playing around with macros again.
Now at school, i've been using G12/G13 for spiral milling, but on my fanuc o-m there is no such g-code, so i intented to program it.
But i found it that it aint realy an easy task, and now im afraid i need a bit of assistence.
I've only been working on it today, so its not much, but i think i've got the general understanding of it right.
Code:
T1 M6
G00 X0. Y0.
#110=0
#112=0
#11=1. (Little C)
#12=10. (MAX RADIUS)
#10=[#12/360] (BIG A)
#100=0. (Desired Radius)
IF[#110EQ0] THEN[#110=ROUND[[#11*COS[#10]]]]
IF[#112EQ0] THEN[#112=ROUND[[#11*SIN[#10]]]]
WHILE[#100LE#12] DO1
#120=#110
#130=#112
#110=[#120-#130]
#112=[#130+#120]
G01 G91 X#110 Y#112
#100=[#100+1]
END1
To give you the understanding of the program, #100 is just used to make it stop at some point, i havent started working on that yet.
Little C (#11) is taken from the the need of caluclations, as its called in my book , same goes with Big A/ Max Radius.
Anyway, thanks alot for looking by
Best regards
Nick. D. Pedersen.
Nick, The Newbie Programmer