I've attached the blueprint of the part to be made and my code to machine the 5 slots in the OD. My goal is to have a program that regardless of the tool diameter, programmed radius or # of passes/DOC can be changed with relative ease. I'd like to make #527 passes where each pass is #528/#527 deep (the actual DOC is [#528/#527]/2 because the Y axis is diametrical).
I've never used variables to this extent so I'm hoping y'all will look it over and critique my code.
In the program I accounted for the key cutter tool radius when I programmed the tool path, so the R value on the offset screen=0.
I'm cutting on the minus(-) side of Y0.
Thanks in advance!