Dale,
If you have Bobcad you can see it is like graph paper where you give X and Y numbers which put a dot after you do so and they are + or -. When you are done you connect the dots with lines (attach). Older versions of Bobcad for pockets you needed to keep drawing inside based on bit radius and connecting so it would cut out you must alter the pointed areas 1/2 you bit size before putting the dots in garbage. Pockets you are cutting on the inside. The parts use your initial drawing and you are cutting on the outside and must alter the radius of pointed areas for 1/2 your bit size.
Newer Bobcad versions I believe have a fill option that will automaticly do the inside of pockets.
So, X and Y are making dots than you connect the dots. The Z is your spindle movement up and down and I believe what used to be W for me is now called A which rotates the piece while putting in pockets.
You however, which I think is your real question set up your macro calls which tells how many degrees and times to rotate etc such as for a 4 call divided by 360 degrees.
I believe you will find your Mach to be a reader of your G Code where you will need to give it the data based on the threads per inch that turns all your different axis.
I maybe missing a little, no coffee yet and mind is getting older.
Best advice I can give is when done and you are ready to push the button never do it on cue in works, use a dowel and scrap to check both fit and rotation.
The rest as far as putes and jacks in putes to plug in are standard.
Have fun, use scraps to start. The info I just gave is 20 years old, I imagine some thigs have changed.
Is this what you mean Tom? Enter the number of indexes for #100 variable and then cut and paste your G code for your pockets.
Kim
_____________________________________________________
%
(Indexing Program 10/3/13)
(Use for ring billets, floating points, inlays, etc)
(cut and paste your prog between the lines *****)
(remove first line with %)
(remove the line with the M30)
(remove the last line with the %)
(Kim Walker - Walker Custom Cues)
(Set up the Variables)
#100=8 ( <== Edit the Number of indexes for program- 4,8,12, etc)
#101=0 (Angle to start)
#110=[360/#100] (calc number of degrees to index each time)
(The Program Starts Here)
G0 A#101 (rotate to A axis start position)
M98 P1000 L#100 (call subroutine o1000, #100 times)
(Done cutting now put everything back to ZERO)
G0 Z .100 (put all axis to zero, leave Z up)
G0 X0 Y0
G0 A0
M30 (prog end and rewind)
o1000 (subroutine start)
(************************************)
(************************************)
(Rotate to the next position and Go Back)
G91 (incremental positioning for rotation)
G0 A#110 (Rotate A axis to next position)
G90 (go back to absolute positioning)
M99 (return from subroutine end)
%