Hello Guest it is April 25, 2024, 07:59:57 PM

Author Topic: Need help with tool diameter offsets G40, 41,42  (Read 2943 times)

0 Members and 1 Guest are viewing this topic.

Offline jimpinder

*
  •  1,232 1,232
  • Wakefield, West Yorks, UK
    • View Profile
Need help with tool diameter offsets G40, 41,42
« on: October 17, 2007, 08:16:38 AM »
I am milling - in metric
I am starting at X0 Y0

I want to move out to X20 (which is the side of the workpiece) then mill up to Y20
The simple code is G0 X20, G1 Y20 - but in reality I want the table to move to position X24 and I only want to mill up to Y16 to take account of the tool diameter (8mm) (I then want to move back to Y0, move in 0.5mm to X19.5 and take another cut, and so on, down to 10mm)

I have tried several combinations of G40, 41 and 42, but I do not seem to have struck the right one. I can get the tool to compensate for diameter, but never in the direction, or on the axis that I think - HELP


Not me driving the engine - I'm better looking.

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Need help with tool diameter offsets G40, 41,42
« Reply #1 on: October 17, 2007, 09:45:44 PM »
You need a lead in move for the comp to be applied. Something like this:

G40 (make sure comp is off)
G0 X-5 Y-5
G42 R4 (turn on comp right and call out tool radius)
G0 X0 Y0
G0 X20
G1 Y16
G40 (turn off comp)

Then repeat as needed.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html

Offline jimpinder

*
  •  1,232 1,232
  • Wakefield, West Yorks, UK
    • View Profile
Re: Need help with tool diameter offsets G40, 41,42
« Reply #2 on: October 18, 2007, 04:18:42 AM »
Thanks - I'll try along those lines and see if I can crack it.
Not me driving the engine - I'm better looking.