Are there any other suggestions on how to loop a code multiple times and rotate the B table an additional angle between code repetitions?
If all of your blade profiles are same you can use circular pattern to do 3+1 axis machining. Hope this will help out
I don't know what you mean by circular pattern. I know how to make the full 360 pattern in cam. The challenge is that I can't have them all in one .nc file and I don't want to have to baby sit my PNC and load 6 different files throughout the day.
Thanks, that link set me to a path were I figured it out.
Subroutines were what worked, thought it seems the PNC doesn't support logical loops (IF, WHILE, etc). http://wiki.linuxcnc.org/cgi-bin/wiki.pl?SubroutineSample
So here is a sample code to explain for others how to repeat incremental or absolute code.
(Start of file)
#500=0 (#500 is an example variable with a starting value of 0, will be used for B angle)
o1000 sub (start of subroutine code to be repeated)
G0 B#500 (rapid movement to B angle stored in #500 value)
(Your g-code here)
o1000 endsub
o1000 call (first call of the subroutine with B = 0 deg)
#500 = [#500+90] (increases stored value of #500 by 90)
o1000 call (2nd call of subroutine, now with B = 90 deg)
#500 = [#500+90] (increases stored value of #500 by 90)
o1000 call (3rd and final call of subroutine, now with B = 180 deg)
M30 (end of file)
Depending on if you have incremental or absolute will change how you do things, but this is an example of what I'll use.