I'm learning G code and have come across a problem that I cannot solve.
I am cutting a simple profile on my home made turning machine.
I'm cutting a tube with a flange on the end of it.
My tool goes from home to the small OD then goes along to the flange, goes up and across the larger OD. It then goes back to the far end of the small OD to part it off then up bigger than the large OD and down to the other side of the flange to part off then return to home.
Problem is I want to offset the tool width when coming back to the flange for parting off but it will not acknowledge the offset.
I'm using the G41 D1 code with my #1 tool referenced.
I use Flashcut.
Here's a copy of my code to look at.
Any help would be appreciated.
Thanks
N100 G00 G91 (set highspeed, incremental)
N110 M06 T1
N120 X-0.5 (Move half of Initial Travel distance along X)
N130 Y-3.277 (Move Y to within 0.5" of cutting diameter [CHANGE OD HERE])
N140 G01 F20 Y-0.5 (Change to low speed, begin cutting in to Initial Diameter)
N150 X-0.5 (Move again half of Initial Travel distance along X to shank end of ferrule)
N150 X-3.862 (Cut straight section of OD)
N170 G00 Y0.386 (cut vertical segment)
N180 G01 (return to slow after rapid feed out)
N190 X-0.387 (Cut straight section of OD)
N200 X-0.25 (Cut straight section of OD)
N210 G00 Y0.25 (Move to 0.25" larger than largest OD)
N220 X4.499 (Move to X position of cutoff at Shank end)
N230 Y-0.706 (Move quickly to within .200" of cutoff)
N240 G01 F3 Y-0.200 (Finish cutoff slowly)
N250 G04 X1 (Pause at cutoff for manual clean)
N260 G00 Y0.906 (Move to 0.25" larger than largest OD)
N262 G41 D1
N270 X-4.249
N280 Y-0.200 (Move quickly to within .200" of cutoff)
N290 G01 F3 Y-0.706 (Finish cutoff slowly)
N300 G04 X1 (Pause at cutoff for manual clean)
N310 G00 Y0.906 (Move to 0.25" larger than largest OD)
N320 G90 X0.0 Y0.0 (Return to Home on Completion)
N325 G40
N330 G27 (Find limit switches)
N340 M30 (End Program)