Broken Tool Detection

This is where you talk about Macros, show examples of your macro scripting and SHARE handy segments of script code as examples.

Broken Tool Detection

Postby Diasr001 » Fri Sep 02, 2022 12:49 pm

Hi there I'm new to UNCNC and I'm trying to make a Macro that will be able to detect a Broken tool, I was wondering if it was even posable.

My Idea
Have a Macro Loop that Checks to see if a job is running and if so checks the cycle timer and every half hour I would like the macro to feed hold and go over to the tool probing position and probe the tool. I would like to compare the Just taken Z position to the Z position taken at the start of the job and if the deference is above a threshold it to just stay Held. else it can go and resume the job.

Is this Even posable or will I have to add a Macro call in the Gcode using the post processor

I am using one of this to probe the tool Hight: https://www.aliexpress.com/item/33031261982.html

Thanks
Diasr001
 
Posts: 1
Joined: Fri Sep 02, 2022 12:35 pm

Re: Broken Tool Detection

Postby CADdy » Sat Sep 03, 2022 10:19 pm

Hi Diasr001,

this is one of the ways in which it is also applied to industrial machines. What is also available is torque measurement and vibration measurement. But this is more difficult and also more complex to realize.

The most commonly used method is length measurement, as you intend to do.

Peter
CADdy
 
Posts: 148
Joined: Sun Sep 17, 2017 2:26 pm

Re: Broken Tool Detection

Postby Daywalker » Mon Sep 05, 2022 7:26 am

Hello Diasr001,

A tool breakage check does not make any sense as a function of time, since your program would have to be interrupted as a function of time and a running G code only does what is specified in it. Thus, the CAM program would have to plan when creating the G code that an M command is output every 30 minutes.

Which makes more sense and is also used in the insturie. Is, as Peter already said, to check the WZ on break after processing. This could theoretically be done with a macro where the actual / target length of the tool is checked with a certain tolerance. Which in turn would only be reasonable if you use the tool table and the target value is in there.

You could save the actual value in a variable and then simply calculate both in the macro.
Regards from Germany
Udo

(UC300ETH & UB1)
[Yeah, I use a Translator ;-) ]
Daywalker
 
Posts: 29
Joined: Sun Jul 29, 2018 8:11 am


Return to Macros

Who is online

Users browsing this forum: No registered users and 10 guests