Hello Guest it is March 28, 2024, 01:11:17 PM

Author Topic: tool offsets when writing your own gcode  (Read 8787 times)

0 Members and 1 Guest are viewing this topic.

Re: tool offsets when writing your own gcode
« Reply #10 on: April 27, 2011, 04:09:31 PM »
I thought it was g40 for tool radius offset cancellation and g49 to cancel the length offset. Or have I been wasting ink?
Re: tool offsets when writing your own gcode
« Reply #11 on: April 27, 2011, 04:51:45 PM »
I thought it was g40 for tool radius offset cancellation and g49 to cancel the length offset. Or have I been wasting ink?

I thought it was that way too.
Re: tool offsets when writing your own gcode
« Reply #12 on: April 27, 2011, 05:06:36 PM »
Sorry, your right about that G49. I thought G40 canceled all tool comp. as they never had us use a G49 in class. Next time I will check the cheat sheet.

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: tool offsets when writing your own gcode
« Reply #13 on: April 27, 2011, 05:28:33 PM »
And g41 applies the stored tool diameter of the called g43hxx.

No.

G41 offsets by the radius of the current tool called with M6 Txx.

G41 Dx offsets by the radius of tool #x

G41 Px.xx offsets by radius x.xx

Call G40 to cancel the G41/G42 offset.
Gerry

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

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

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: tool offsets when writing your own gcode
« Reply #14 on: April 27, 2011, 06:33:50 PM »
How you use tool#s in you case will depend on HOW the person  wrote the code to run the tool changer, whether it is ladder logic in a plc and or VB macro in mach.

Remeber you have to write in a leadout on each comped move as well. Yes cancel the ToolComp Before you go to the tool change routine then reapply it after the tool change is complete.   IF NOT then strange things will happen as you come OUT of the tool change mode and mach tries to recomp the first position point.(;-)

(;-) TP
Re: tool offsets when writing your own gcode
« Reply #15 on: April 27, 2011, 11:24:05 PM »
the vb script for the toolchanger is an ongoing thing, and can be upgraded as problems occur. I thought the offsets would be called by the last two numbers on the m6 call. eg. M6T0101 with the red 01 as the offset, but it seems Mach doesn't see this.
« Last Edit: April 27, 2011, 11:30:15 PM by angel tech »

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: tool offsets when writing your own gcode
« Reply #16 on: April 28, 2011, 10:09:40 PM »
The M6T0101 is a tool change call for a lathe not a mill.

(;-) TP
Re: tool offsets when writing your own gcode
« Reply #17 on: April 29, 2011, 03:13:41 AM »
The M6T0101 is a tool change call for a lathe not a mill.

(;-) TP

All the way back to post no.#4

The tool numbering stratergy will have to be well controlled if you use multiple tools with the same tool number but different offset numbers.
I dont think I would do it that way, as it's an accident waiting to happen, and for me I'd not have to wait long :-)

Maybe better set up the auto tool length measuring macro - at the start of your job, put in the tools for that particular job, let the machine measure the TLO's and then run the job.

ATB
Derek
You can "chop it off" but can't "chop it on"
Re: tool offsets when writing your own gcode
« Reply #18 on: April 29, 2011, 05:15:21 AM »
The M6T0101 is a tool change call for a lathe not a mill.

(;-) TP

Ah i see, i'd never have thought of that.

The more you get into gcode the more you notice the seperation between the lathe and mill.
Re: tool offsets when writing your own gcode
« Reply #19 on: April 29, 2011, 05:19:52 AM »
I noticed you went down the lathe route in that post, but with my limited knowledge it never occured to me it was based solely on the lathe...doh.

To avoid confusion all tools would have been numbered with tool number and offset number