Build Thread Mach3 to Acorn
Moderator: cnckeith
-
- 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
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
I think 9043 is where I am asked if I want to subtract the tool height in the wizard. I say yes.
Not sure how that is read, but 9043 has a value of zero (0) --- 0 is wrong 9043 is reading 3.000
Then the [[#9043 - 1] % 2 == 0] expression does not make sense to me.
I think it should be [#9043 == 0] ; just zero nothing more than that
Can someone explain this to me.
For that matter ---
G92 Z[#9071] ; without the IF THE ELSE --Seems even simpler still
I cannot forsee my personal use NOT subtracting the tool height ------ 9043 being set to no
what am I missing
G92 Z[0-[#106]] ;Set Z position to 0 + detector height stored in parameter 71
I think 9043 is where I am asked if I want to subtract the tool height in the wizard. I say yes.
Not sure how that is read, but 9043 has a value of zero (0) --- 0 is wrong 9043 is reading 3.000
Then the [[#9043 - 1] % 2 == 0] expression does not make sense to me.
I think it should be [#9043 == 0] ; just zero nothing more than that
Can someone explain this to me.
For that matter ---
G92 Z[#9071] ; without the IF THE ELSE --Seems even simpler still
I cannot forsee my personal use NOT subtracting the tool height ------ 9043 being set to no
what am I missing
Last edited by Leo Voisine on Mon Jan 13, 2025 1:12 pm, edited 2 times in total.
(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 was wrong 9043 has a value of 3.0000
My G92 = 9071 didn't work either
My G92 = 9071 didn't work either
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Community Expert
- Posts: 3046
- 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
This macro is already written for you in another topic. There are a couple of variations with easy to follow menus for new users. There are a few variables to up like the location of your fixed tool touch off and it works right out of the box. Not sure why you are trying to reinvent the wheel.
Did you read this topic:
https://centroidcncforum.com/viewtopic.php?p=9150#p9150
Did you read this topic:
https://centroidcncforum.com/viewtopic.php?p=9150#p9150
(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 tried the macro without changes.
When the tool goes to measure during a program it returns to the workpiece but is cutting above the workpiece at about the height of the tool touch off.
If I just do Auto Measure and manually move the tool to the top of the workpiece all is well. The tip of the tool is on the workpiece. So that sent me off trying to figure out why.
I am not into reinventing any wheels, just trying to solve my problem.
When the tool goes to measure during a program it returns to the workpiece but is cutting above the workpiece at about the height of the tool touch off.
If I just do Auto Measure and manually move the tool to the top of the workpiece all is well. The tip of the tool is on the workpiece. So that sent me off trying to figure out why.
I am not into reinventing any wheels, just trying to solve my problem.
(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
sounds like one is subtracting the height of the TT the other is not.
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: 849
- Joined: Fri Nov 30, 2018 1:04 pm
- 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
- Location: Thorp WI
Re: Build Thread Mach3 to Acorn
3 is a bit-mapped parameter value. If you look at the parameter screen and specifically parm 043 (click on it), you'll see that it is - Add 1 to subtract height and add 2 to use TT1 input... This makes the parameter 3.Leo Voisine wrote: ↑Mon Jan 13, 2025 12:41 pm
I think 9043 is where I am asked if I want to subtract the tool height in the wizard. I say yes.
Not sure how that is read, but 9043 has a value of zero (0) --- 0 is wrong 9043 is reading 3.000
Really don't need this line, since it is set in the wizard. Guess you could have a warning if not, but...
IF [[#9043 - 1] % 2 == 0] THEN #106 = #9071 ELSE #106 = 0 ;Check parameter 43 for subtract height option
You were subtracting the plate height, so yes, G92 Z[#9071] or [ABS[#9071]] works.
Once you get to saving the offset, look at the use of #159 in the examples and/or the macro I posted previously.
Scott
1 user liked this post
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Community Expert
- Posts: 3046
- 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
Correct, there's a slider to move to "yes" on the tool touch off setup page in the wizard to fix this simple issue.
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Community Expert
- Posts: 3046
- 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
There's a slider in the wizard that you slide to "yes" to fix this.Leo Voisine wrote: ↑Mon Jan 13, 2025 2:37 pm I tried the macro without changes.
When the tool goes to measure during a program it returns to the workpiece but is cutting above the workpiece at about the height of the tool touch off.
(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 set that to YES a while ago when I was manually using auto measure to move axis. around and watching machine position to verify that the wizard setting is correct as yes.
Tomorrow is another day!

Tomorrow is another day!

(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.. custom macros copied from this forum posted by users do not necessarily "listen" to the Wizard settings. it would be up to the author/editor of the macro to make sure the "subtract' the height of the TT is in the macro, if desired etc..
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)