mfunc6 probe a tool with saving in the tool library and validation in spindle
Moderator: cnckeith
-
- 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
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
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.
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- 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
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
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- 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
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?
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
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- 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
Bonjour j'arrive a faire mon palpage mais je n'arrive pas a enregistré dans la bibliothèque outilKen 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?
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- 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
je precise que j'ai un TT chinoisKen 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?
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- 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
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
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
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- 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
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?
Did you do that?
Ken
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- 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
Param 3, 6, 160, and 161 need to be set properly
Ken
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- 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
Ok donc sans chargeur outil c'est pas possible
Ou Alors je peux lui faire croire que j'ai un chargeur outil
Ou Alors je peux lui faire croire que j'ai un chargeur outil
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- 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
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
(Note: Liking will "up vote" a post in the search results helping others find good information faster)