mfunc6 probe a tool with saving in the tool library and validation in spindle

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

Filardo
Posts: 253
Joined: Wed Jul 28, 2021 3:54 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

mfunc6 probe a tool with saving in the tool library and validation in spindle

Post 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
Last edited by Filardo on Fri May 16, 2025 3:51 am, edited 1 time in total.


Filardo
Posts: 253
Joined: Wed Jul 28, 2021 3:54 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Mfunc6 jauger un outil dans un programme

Post 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


Ken Rychlik
Posts: 511
Joined: Wed Jan 23, 2019 4:19 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 80F5B5B92C3A-0213236854
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Mfunc6 jauger un outil dans un programme

Post 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?
Attachments
mfunc44.mac
(1.7 KiB) Downloaded 6 times
mfunc6.mac
(2.41 KiB) Downloaded 2 times
Ken


Filardo
Posts: 253
Joined: Wed Jul 28, 2021 3:54 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Mfunc6 jauger un outil dans un programme

Post 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


Filardo
Posts: 253
Joined: Wed Jul 28, 2021 3:54 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Mfunc6 jauger un outil dans un programme

Post 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


Filardo
Posts: 253
Joined: Wed Jul 28, 2021 3:54 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Mfunc6 jauger un outil dans un programme

Post 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


Ken Rychlik
Posts: 511
Joined: Wed Jan 23, 2019 4:19 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 80F5B5B92C3A-0213236854
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Mfunc6 jauger un outil dans un programme

Post 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?
Ken


Ken Rychlik
Posts: 511
Joined: Wed Jan 23, 2019 4:19 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 80F5B5B92C3A-0213236854
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Mfunc6 jauger un outil dans un programme

Post by Ken Rychlik »

Param 3, 6, 160, and 161 need to be set properly
Ken


Filardo
Posts: 253
Joined: Wed Jul 28, 2021 3:54 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Mfunc6 jauger un outil dans un programme

Post by Filardo »

Ok donc sans chargeur outil c'est pas possible
Ou Alors je peux lui faire croire que j'ai un chargeur outil


Ken Rychlik
Posts: 511
Joined: Wed Jan 23, 2019 4:19 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 80F5B5B92C3A-0213236854
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Mfunc6 jauger un outil dans un programme

Post 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
Ken


Post Reply