Hello Guest it is January 25, 2022, 12:43:51 PM

Author Topic: Current tool ==  (Read 453 times)

0 Members and 1 Guest are viewing this topic.

Offline Mauri

*
  •  327 327
    • View Profile
Current tool ==
« on: January 16, 2021, 04:08:07 PM »
Hi,
What does "Current tool -- Selected toll so there is nothing to do" mean?
Regards,
Mauri.
Re: Current tool ==
« Reply #1 on: January 16, 2021, 05:03:06 PM »
Hi,
the Lua script tests, or rather asks the question, 'What tool is in the spindle right now? If it is the same as the new tool
requested....then Mach does not have to do anything'

There are two interpretations about tool numbers in Mach4.

1) Tool number is required tool.
  For example:
 M6 T14
 requires that tool number 14 be fitted to the spindle.

2) Tool number is the next required tool.
  For example:
  M6 T14
 will put the new tool in the spindle but load tool 14 into the toolchanger.

This last example may seem strange but is common on production machines. A production machine may have a carousel of 20 or more tools,
and  one more tool is loaded into the toolchanger. In order to speed the toolchange you want the required tool already in the toolchanger
already.  Thus the instruction is that tool 14 be shifted from the carousel into the toolchanger ready for the next M6 and therefore the speediest
of toolchanges.

Craig
My wife left with my best friend...
     and I miss him!

Offline Mauri

*
  •  327 327
    • View Profile
Re: Current tool ==
« Reply #2 on: January 16, 2021, 09:47:49 PM »
Craig,
The message comes up when it reaches the last line in this cutting script.

(madCAM 5Xtra 4 Axis for Mach3)
(File Created: 16-Jan-21 2:48:34 PM)
(Tool Path Profile Along_Curves)
(Tool Number = 2)
(Tool Offset Number = )
(Tool Name = TAPER_V-Carve-30D .1mm Dia .05R .01Tol)
(Tool Dia = 3.175)
(Tool Radius = 0.050)
(Tool Radius Compensation = 1.637)
(Tool Length = 30.000)
(X = 8.500, Y = 8.500, Z = 10.000)
()
N10G00 G90 G80 G40 G17 G49 G21 G71 G91.1 G94 G64
N11S24000
N12M03
N13G01 Z25.000 F400
N14G01 X0.000Y0.000
N15M06 T2
N16G00X2.006Y-1.644A0.000
N17G00Z2.000
N18G00Z1.724  <- Current tool -- Selected toll so there is nothing to do

So I am not sure why it comes up.
It seems to do all the correct cutting actions all the way to the end.
Regards,
Mauri.

Offline Mauri

*
  •  327 327
    • View Profile
Re: Current tool ==
« Reply #3 on: January 16, 2021, 09:51:24 PM »
Craig,
May be one or two lines up from what is said in my last note, it goes so quick.
Regards,
Mauri.
Re: Current tool ==
« Reply #4 on: January 16, 2021, 10:14:13 PM »
Hi,
the warning relates to this line:

Code: [Select]
N15M06 T2
So Mach has determined that tool T2 is already in the spindle and therefore there is nothing for it to do. Try commenting out that line and see
if the warning goes away.

Craig
My wife left with my best friend...
     and I miss him!
Re: Current tool ==
« Reply #5 on: January 17, 2021, 08:39:22 AM »
You can change the code so it will not post the message. Also you can make it ask for the tool every time . It is your toolchange, make it work how you want.
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com

Offline Mauri

*
  •  327 327
    • View Profile
Re: Current tool ==
« Reply #6 on: January 17, 2021, 04:54:59 PM »
Hi,
I just remembered on simulation you do not need M06 T2, only when cutting.
In the past I placed brackets (M06 T2) to it and all was OK.
But when machining you take the brackets out.
I has been some time since I used simulation and I just temporarily forgot.
Thanks,
Regards,
Mauri.