Build Thread Mach3 to Acorn
Moderator: cnckeith
-
- Community Expert
- Posts: 3049
- Joined: Fri May 24, 2019 8:34 am
- Acorn CNC Controller: Yes
- Plasma CNC Controller: No
- AcornSix CNC Controller: No
- Allin1DC CNC Controller: No
- Hickory CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 7804734C6498-0401191832
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Clearwater, FL
Re: Build Thread Mach3 to Acorn
My plasma table homes the torch outside the water table and after it homes I have it move the torch just inside the water table and set X,Y and Z zero at this location. This is all I have for a homing file on the plasma table and it works every time:
M92/Z L1
M26/Z
M91/X L1
M26/X
M91/Y L1
M26/Y
g53 x4.5 y1 z0
M26/X
M26/Y
M26/Z
M92/Z L1
M26/Z
M91/X L1
M26/X
M91/Y L1
M26/Y
g53 x4.5 y1 z0
M26/X
M26/Y
M26/Z
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 120
- Joined: Fri Nov 19, 2021 10:26 am
- Acorn CNC Controller: Yes
- Plasma CNC Controller: No
- AcornSix CNC Controller: No
- Allin1DC CNC Controller: No
- Hickory CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: Build Thread Mach3 to Acorn
cnckeith wrote: ↑Thu Jan 09, 2025 4:10 pmto do this you edit the M6 with the actions you want.Leo Voisine wrote: ↑Thu Jan 09, 2025 2:07 pm Another issue I am running into.
At m6 I want the prompt to change tool. That does happen
THEN - I want the tool to go to Auto Measure. that does not happen
AFTER auto measure I want to return to G54 X0Y0 and continue program - Not going to auto measure so this is moot.
report_80F5B521CAF7-1109215356_2025-01-09_12-52-36.zip
I tried a few different mfunc6 formats from this thread - they all look similar
https://centroidcncforum.com/viewtopic.php?f=63&t=1493
do you have a fixed TT? or a moveable one?
FIXED
do you plan on retaining a tool library or do you always want to measure and remeasure at every tool change?
Remeasure every tool
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 120
- Joined: Fri Nov 19, 2021 10:26 am
- Acorn CNC Controller: Yes
- Plasma CNC Controller: No
- AcornSix CNC Controller: No
- Allin1DC CNC Controller: No
- Hickory CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: Build Thread Mach3 to Acorn
I will try thisSword wrote: ↑Thu Jan 09, 2025 4:11 pm On your homing issue, it's strange that I've never had that problem in 6 years of using a similar homing file. I tried yours on a small benchtop machine, and it happens to me as well. The only way I can get it to work consistently is to set the axes home with M26/ first, and then do the G91 followed with another set of M26 at the end. You could use this for both initial home and reset, or just use it for the reset macro (mfunc59.mac).
For your M6 question, there's no mfunc6.mac in your report to look at.
Code: Select all
;Perform Homing commands M92/Z L1 M91/Y L1 M91/X L1 M26/X/Y/Z G91 X.25 Y.25 Z-.25 G90 M26/X/Y/Z/A
mfunc6.mac is not in the main folder --- system? ATC folder
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 120
- Joined: Fri Nov 19, 2021 10:26 am
- Acorn CNC Controller: Yes
- Plasma CNC Controller: No
- AcornSix CNC Controller: No
- Allin1DC CNC Controller: No
- Hickory CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: Build Thread Mach3 to Acorn
So the homing workedLeo Voisine wrote: ↑Thu Jan 09, 2025 5:26 pmI will try thisSword wrote: ↑Thu Jan 09, 2025 4:11 pm On your homing issue, it's strange that I've never had that problem in 6 years of using a similar homing file. I tried yours on a small benchtop machine, and it happens to me as well. The only way I can get it to work consistently is to set the axes home with M26/ first, and then do the G91 followed with another set of M26 at the end. You could use this for both initial home and reset, or just use it for the reset macro (mfunc59.mac).
For your M6 question, there's no mfunc6.mac in your report to look at.
Code: Select all
;Perform Homing commands M92/Z L1 M91/Y L1 M91/X L1 M26/X/Y/Z G91 X.25 Y.25 Z-.25 G90 M26/X/Y/Z/A
mfunc6.mac is not in the main folder --- system? ATC folder
M92/Z L1
M26/Z ; needed to be here
M91/Y L1
M26/Y
M91/X L1
M26/X
G91 X.25 Y.25 Z-.25
G90
M26/X
M26/Y
M26/Z
M26/A
Reset home worked once, but I will test a few times tomorrow
It does make sense to rezero
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Site Admin
- Posts: 9047
- Joined: Wed Mar 03, 2010 4:23 pm
- Acorn CNC Controller: Yes
- Plasma CNC Controller: No
- AcornSix CNC Controller: No
- Allin1DC CNC Controller: Yes
- Hickory CNC Controller: No
- Oak CNC controller: Yes
- CNC Control System Serial Number: none
- DC3IOB: Yes
- CNC11: Yes
- CPU10 or CPU7: Yes
- Contact:
Re: Build Thread Mach3 to Acorn
- you have to create the mfunc6.mac file. by definition mfunc6.mac is a custom file.
if mfunc6.mac doesn't exist CNC12 performs the default M6 action.
and yes place mfunc6.mac in the cncm directory so CNC12 knows that you have a custom M6 set of instructions and will use it.
if mfunc6.mac doesn't exist CNC12 performs the default M6 action.
and yes place mfunc6.mac in the cncm directory so CNC12 knows that you have a custom M6 set of instructions and will use it.
Need support? READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Site Admin
- Posts: 9047
- Joined: Wed Mar 03, 2010 4:23 pm
- Acorn CNC Controller: Yes
- Plasma CNC Controller: No
- AcornSix CNC Controller: No
- Allin1DC CNC Controller: Yes
- Hickory CNC Controller: No
- Oak CNC controller: Yes
- CNC Control System Serial Number: none
- DC3IOB: Yes
- CNC11: Yes
- CPU10 or CPU7: Yes
- Contact:
Re: Build Thread Mach3 to Acorn
are you setting part zero with the TT? i.e. are you always setting the spoil board to Z0 or the top of the part?
here is some m6 code for Tool Touch Off, adjust it as needed.
if you configure CNC12 with the Wizard for Rack Mount ATC (with zero bins) the Wizard will generate this code for you in the M6. i use it to do most of the work and then edit the way i need for a particular workflow/customers request etc.. you can do the same. copy the mfunc.mac that it makes,
then just put the Wizard back to "None" in the ATC setup menu, write settings, and then go back in the ATC menu choose "Yes" to Custom (M6) in use. so it won't overwrite your custom M6.
;------------------------------------------------------------------------------
; Tool Touch Off Sequence
;------------------------------------------------------------------------------
;--Tool Touch Off Check Configuration Block 500
N500 ;Check to make sure a TT1 is correctly configured
G65 "C:\cncm\system\tt_check_configuration.cnc"
;--Tool Touch Off Cycle Block 550
N550
;Move to Tool Touch Off Reference Location or Prompt Operator to Move to Surface Plate
IF #9432 == 0 THEN G30 P3 G91 X0Y0Z0
IF #9432 == 1 THEN M201 "Jog to Surface Plate\nPress Cycle Start to Continue."
M115 /Z P[#33001] F[#33002] ;Move at fast probing rate until TT detected
M116 /Z P-[#33001] F[#33003] ;Retract at slow probing rate until TT clears
M115 /Z P[#33001] F[#33003] ;Move at slow probing rate until TT detected
IF [[#9043 - 1] % 2 == 0] THEN #106 = #9071 ELSE #106 = 0 ;Check parameter 43 for subtract height option
G92 Z[0-[#106]] ;Set Z position to 0 + detector height stored in parameter 71
G4 P1 ;Wait 1 second
M25 ;Move to Z-Home Position (Reference #1 Z)
G90
here is some m6 code for Tool Touch Off, adjust it as needed.
if you configure CNC12 with the Wizard for Rack Mount ATC (with zero bins) the Wizard will generate this code for you in the M6. i use it to do most of the work and then edit the way i need for a particular workflow/customers request etc.. you can do the same. copy the mfunc.mac that it makes,
then just put the Wizard back to "None" in the ATC setup menu, write settings, and then go back in the ATC menu choose "Yes" to Custom (M6) in use. so it won't overwrite your custom M6.
;------------------------------------------------------------------------------
; Tool Touch Off Sequence
;------------------------------------------------------------------------------
;--Tool Touch Off Check Configuration Block 500
N500 ;Check to make sure a TT1 is correctly configured
G65 "C:\cncm\system\tt_check_configuration.cnc"
;--Tool Touch Off Cycle Block 550
N550
;Move to Tool Touch Off Reference Location or Prompt Operator to Move to Surface Plate
IF #9432 == 0 THEN G30 P3 G91 X0Y0Z0
IF #9432 == 1 THEN M201 "Jog to Surface Plate\nPress Cycle Start to Continue."
M115 /Z P[#33001] F[#33002] ;Move at fast probing rate until TT detected
M116 /Z P-[#33001] F[#33003] ;Retract at slow probing rate until TT clears
M115 /Z P[#33001] F[#33003] ;Move at slow probing rate until TT detected
IF [[#9043 - 1] % 2 == 0] THEN #106 = #9071 ELSE #106 = 0 ;Check parameter 43 for subtract height option
G92 Z[0-[#106]] ;Set Z position to 0 + detector height stored in parameter 71
G4 P1 ;Wait 1 second
M25 ;Move to Z-Home Position (Reference #1 Z)
G90
Need support? READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 120
- Joined: Fri Nov 19, 2021 10:26 am
- Acorn CNC Controller: Yes
- Plasma CNC Controller: No
- AcornSix CNC Controller: No
- Allin1DC CNC Controller: No
- Hickory CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: Build Thread Mach3 to Acorn
Thank you Keith - that answers a lot.
I have a little job to do this morning and will try some stuff later today.
I have a little job to do this morning and will try some stuff later today.
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 120
- Joined: Fri Nov 19, 2021 10:26 am
- Acorn CNC Controller: Yes
- Plasma CNC Controller: No
- AcornSix CNC Controller: No
- Allin1DC CNC Controller: No
- Hickory CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: Build Thread Mach3 to Acorn
This is certainly a huge learning experience for sure.
Right now I don't have a problem ---yet --- but there is for sure a learning experience.
Right now I don't have a problem ---yet --- but there is for sure a learning experience.
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Site Admin
- Posts: 9047
- Joined: Wed Mar 03, 2010 4:23 pm
- Acorn CNC Controller: Yes
- Plasma CNC Controller: No
- AcornSix CNC Controller: No
- Allin1DC CNC Controller: Yes
- Hickory CNC Controller: No
- Oak CNC controller: Yes
- CNC Control System Serial Number: none
- DC3IOB: Yes
- CNC11: Yes
- CPU10 or CPU7: Yes
- Contact:
Re: Build Thread Mach3 to Acorn
fyi..that TT code is made so it works with any setup, yep looks intimidating..but you could of course 'hard code' those variable values for your particular setup, that makes the macro a little less scary. 
for others reading this. here a link to the Centroid macro programming guide. https://www.centroidcnc.com/centroid_di ... amming.pdf

for others reading this. here a link to the Centroid macro programming guide. https://www.centroidcnc.com/centroid_di ... amming.pdf
Need support? READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 120
- Joined: Fri Nov 19, 2021 10:26 am
- Acorn CNC Controller: Yes
- Plasma CNC Controller: No
- AcornSix CNC Controller: No
- Allin1DC CNC Controller: No
- Hickory CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: Build Thread Mach3 to Acorn
I have the macro programming guide.
I have created Family of parts macro programs before, so I am not too much intimidated. The language is a little different than in Fanuc but it is similar
I am working on my Mfunc6.MAC and so far it is working great - EXCEPT - it is not adjusting for the height of the tool setter variable 71. I can see the correst number in 71. Using the Auto Set to set the tool it works, but not in my Mfunc6.MAC
I don't know how to
1) Look at the Auto Set macro to compare the differences
2) Look at #106 - or any user variables
I have created Family of parts macro programs before, so I am not too much intimidated. The language is a little different than in Fanuc but it is similar
I am working on my Mfunc6.MAC and so far it is working great - EXCEPT - it is not adjusting for the height of the tool setter variable 71. I can see the correst number in 71. Using the Auto Set to set the tool it works, but not in my Mfunc6.MAC
I don't know how to
1) Look at the Auto Set macro to compare the differences
2) Look at #106 - or any user variables
(Note: Liking will "up vote" a post in the search results helping others find good information faster)