Page 1 of 4
mfunc6 probe a tool with saving in the tool library and validation in spindle
Posted: Sun May 11, 2025 11:25 pm
by Filardo
Need help editing the mfuc6 macro Thank you in advance.
bonjour besoin d'aide pour éditer la macro m6
;------------------------------------------------------------------------------
; Tool probing macro for CNC12 with tool change and correct compensation
;------------------------------------------------------------------------------
M5 ; Stop spindle
; Select and change tool
M6 T[#4120] ; Load the active tool
M200 "Change tool to T#4120 and press Cycle Start to continue."
MSG [Active tool: T#4120]
; Move to probe position
G53 G0 Z0 ; Move to safe Z position
G53 G0 X0 Y0 ; Move to probe location
; Fast and slow probing using PLC input 8
M115 /Z P8 F100 ; Fast probe
G91 Z2.0 F100 ; Retract after detection
M115 /Z P8 F25 ; Slow probe for accuracy
G90
; Check measured value
MSG [Measured value detected: #34008]
; Save tool length
IF [#34008 > 0] THEN #3900 = #34008 ; Store the measured tool length
G43 H[#4120] ; Apply tool offset for the active tool
G53 G0 Z0 ; Move back to safe Z position
M200 "Remove the probe and press Cycle Start to continue."
ENDMAC ; End of macro
Re: Mfunc6 jauger un outil dans un programme
Posted: Sun May 11, 2025 11:32 pm
by Filardo
Je voudrais jauger mon outil dans n'importe quel programme mais tout en inscrivant ça valeur dans le tableau outil (bibliothèque outil) pour ne pas modifier mes origines en cours d'exécution du programme
Re: Mfunc6 jauger un outil dans un programme
Posted: Mon May 12, 2025 5:13 pm
by Ken Rychlik
Here is one of mine. Usually it has the part at the top to skip the tool change if it is asking for the same tool that is in there. Mine has that. There is a lot of stuff you would not use from mine, but you may be able to copy bits and pieces that would be useful.
I use a seperate m44 macro to measure a tool. It auto updates the tool library. You could use those pieces in your m6 or you could do a macro just for measuring, and call that macro from the m6. Many ways to tackle it.
What are you trying to make it do that is not working for you?
Re: Mfunc6 jauger un outil dans un programme
Posted: Mon May 12, 2025 10:07 pm
by Filardo
Ken Rychlik wrote: ↑Mon May 12, 2025 5:13 pm
Here is one of mine. Usually it has the part at the top to skip the tool change if it is asking for the same tool that is in there. Mine has that. There is a lot of stuff you would not use from mine, but you may be able to copy bits and pieces that would be useful.
I use a seperate m44 macro to measure a tool. It auto updates the tool library. You could use those pieces in your m6 or you could do a macro just for measuring, and call that macro from the m6. Many ways to tackle it.
What are you trying to make it do that is not working for you?
Bonjour j'arrive a faire mon palpage mais je n'arrive pas a enregistré dans la bibliothèque outil
Re: Mfunc6 jauger un outil dans un programme
Posted: Mon May 12, 2025 10:14 pm
by Filardo
Ken Rychlik wrote: ↑Mon May 12, 2025 5:13 pm
Here is one of mine. Usually it has the part at the top to skip the tool change if it is asking for the same tool that is in there. Mine has that. There is a lot of stuff you would not use from mine, but you may be able to copy bits and pieces that would be useful.
I use a seperate m44 macro to measure a tool. It auto updates the tool library. You could use those pieces in your m6 or you could do a macro just for measuring, and call that macro from the m6. Many ways to tackle it.
What are you trying to make it do that is not working for you?
je precise que j'ai un TT chinois
Re: Mfunc6 jauger un outil dans un programme
Posted: Tue May 13, 2025 6:24 am
by Filardo
I would like the same thing as in the library for self-measurement but in a program each time I insert a tool into the spindle
Je voudrais la même chose que dans la bibliothèque pour auto mesure mais dans un programme a chaque fois que j'insère un outil dans la broche
Re: Mfunc6 jauger un outil dans un programme
Posted: Tue May 13, 2025 6:37 am
by Ken Rychlik
It needs to be set up as an auto tool change ATC and there is a section in the manual on how to do that, with what parameters need to be changed.
Did you do that?
Re: Mfunc6 jauger un outil dans un programme
Posted: Tue May 13, 2025 6:39 am
by Ken Rychlik
Param 3, 6, 160, and 161 need to be set properly
Re: Mfunc6 jauger un outil dans un programme
Posted: Tue May 13, 2025 8:01 am
by Filardo
Ok donc sans chargeur outil c'est pas possible
Ou Alors je peux lui faire croire que j'ai un chargeur outil
Re: Mfunc6 jauger un outil dans un programme
Posted: Tue May 13, 2025 10:00 am
by Ken Rychlik
make believe tool holder works ok. You can have your machine pause with a message for you to manually change the tool, then it will proceed like it did the change automatically and track the tool height of the new tool you put in