Hello Guest it is April 24, 2024, 02:33:18 PM

Author Topic: Cutter Compensation not reading tool diameter  (Read 1771 times)

0 Members and 1 Guest are viewing this topic.

Re: Cutter Compensation not reading tool diameter
« Reply #10 on: October 23, 2020, 09:15:57 AM »
I can't show an actual photo, due to company confidentiality policy, but I'm attaching a drawing that might clear it up some.

Thank you regarding avoiding G41/G42.  That was what I was thinking.  I can write GCode that could increment a # variable or a lua dialogbox that allow the user to input new values.  A this is a single use machine it shouldn't be a problem.

Offline Graham Waterworth

*
  • *
  •  2,673 2,673
  • Yorkshire Dales, England
    • View Profile
Re: Cutter Compensation not reading tool diameter
« Reply #11 on: October 23, 2020, 01:55:05 PM »
Okay, if you can write code then all you need to do is add a #var to your code.

# Numbers for the tool diameter offsets start at 13000 + the offset number so D2 offset would be #13002

Then you remove the G41/42's and you add something like this G01 Y[#13002] F1. or G01 Y-[#13002] F1. in your code.

Your code will look something like this :-

g0 g49 g40 g17 g80 g50 g90

g04 p2.
g53 g00 z0

M03
M08


G54 g00 g90 x0 y0.01 a0
z1.
g01 z-.25 f10.
y-[#13001] (offset Dia1)
a720. f2000.
x0y0
y[#13002] f10. (offset Dia2)
a0. f2000.
Etc......

Without engineers the world stops
Re: Cutter Compensation not reading tool diameter
« Reply #12 on: October 23, 2020, 02:18:25 PM »
That's great, I didn't realize the Diameters were a #var too! 
Thank you!