Rack ATC Macro Help
Moderator: cnckeith
-
- Posts: 64
- Joined: Wed Sep 18, 2019 4:46 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: A81087B53034-0710192235
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Rack ATC Macro Help
—- I deleted my original post and setup as a new thread - didn’t want to hijack another thread—
This video explains it all: https://share.icloud.com/photos/0qiGY1X ... 7cQyQ#Home
This forum is great place to learn and a huge thanks to people for sharing their knowledge and to CNCKeith in particular for his help. I need to ask again for guidance. I have just finished building a rack tool holder and I am struggling with the operation of it.
The Problem: When I select tool No 8 (allocated in my tool library to bin 5) the macro operates using the tool number and not bin number. It goes to bin 8 and not bin 5. I have parameter 160 set to 1 (non random) so that shouldn't happen should it?
In my ATC Macro (mfunc6.mac) variable #4120 appears to be referring to the tool bin number and not the requested tool number as I understood it to be from the various posts and guides, including the new tool rack ATC macros posted recently for 4.20. I have attached my main src file, macro file and log.
I didn’t want to upgrade to 4.20 because I have 4.18 working how I like it (less the ATC) but I may have to. I’m sure it will be better in the long run anyway.
Happy New Year!
This video explains it all: https://share.icloud.com/photos/0qiGY1X ... 7cQyQ#Home
This forum is great place to learn and a huge thanks to people for sharing their knowledge and to CNCKeith in particular for his help. I need to ask again for guidance. I have just finished building a rack tool holder and I am struggling with the operation of it.
The Problem: When I select tool No 8 (allocated in my tool library to bin 5) the macro operates using the tool number and not bin number. It goes to bin 8 and not bin 5. I have parameter 160 set to 1 (non random) so that shouldn't happen should it?
In my ATC Macro (mfunc6.mac) variable #4120 appears to be referring to the tool bin number and not the requested tool number as I understood it to be from the various posts and guides, including the new tool rack ATC macros posted recently for 4.20. I have attached my main src file, macro file and log.
I didn’t want to upgrade to 4.20 because I have 4.18 working how I like it (less the ATC) but I may have to. I’m sure it will be better in the long run anyway.
Happy New Year!
- Attachments
-
- report_A81087B53034-0710192235_2020-01-02_12-55-54.zip
- (575 KiB) Downloaded 167 times
-
- mfunc6.mac
- (5.16 KiB) Downloaded 206 times
-
- acorn_mill_plc.src
- (187.39 KiB) Downloaded 169 times
-
- Posts: 412
- Joined: Thu Feb 08, 2018 7:57 am
- Acorn CNC Controller: No
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC11: No
- CPU10 or CPU7: No
Re: Rack ATC Macro Help
Interesting post, would like to get something like this working on my larger mill if I do convert it to Acorn. Will be good to see this solved.
-
- Posts: 64
- Joined: Wed Sep 18, 2019 4:46 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: A81087B53034-0710192235
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: Rack ATC Macro Help
---Update---
I upgraded to 4.20 without a hitch. It was much easier than I expected and I did not lose any of my custom PLC but still no luck with the rack ATC.
Ch11 of the Centroid Mill operator manual lists all of the system variables and I believe that #150 and #4120 will only ever show the tool number and not bin numbers. I could easily write the macro to achieve what I want but I need to access system variables #17000-17200 (tool bin numbers) & #18000-18200 (putback locations). Sadly it appears that my macros cannot read those system variables. I can read plenty of other variables but not those.
Does anyone know if there is a way to read them or are they limited on the Acorn in the same way that #4203 only work with Oak & Allin1?
If not, I will be constantly changing my tool numbers (on CNC12 and in my CAD/CAM) which will increase the risk of running the wrong tool or offset.
edit--- I have just thought of a way to hack it - I could use tool diameters to hold the tool bin values because my macros can read those variables (#13000-13200) but it would mean that I could not easily use intercon or tool wear compensation (which I don't really use anyway).
I upgraded to 4.20 without a hitch. It was much easier than I expected and I did not lose any of my custom PLC but still no luck with the rack ATC.
Ch11 of the Centroid Mill operator manual lists all of the system variables and I believe that #150 and #4120 will only ever show the tool number and not bin numbers. I could easily write the macro to achieve what I want but I need to access system variables #17000-17200 (tool bin numbers) & #18000-18200 (putback locations). Sadly it appears that my macros cannot read those system variables. I can read plenty of other variables but not those.
Does anyone know if there is a way to read them or are they limited on the Acorn in the same way that #4203 only work with Oak & Allin1?
If not, I will be constantly changing my tool numbers (on CNC12 and in my CAD/CAM) which will increase the risk of running the wrong tool or offset.
edit--- I have just thought of a way to hack it - I could use tool diameters to hold the tool bin values because my macros can read those variables (#13000-13200) but it would mean that I could not easily use intercon or tool wear compensation (which I don't really use anyway).
-
- Posts: 7411
- Joined: Wed Mar 03, 2010 4:23 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: Yes
- Oak CNC controller: Yes
- CNC Control System Serial Number: none
- DC3IOB: Yes
- CNC11: Yes
- CPU10 or CPU7: Yes
- Contact:
Re: Rack ATC Macro Help
i've asked Chris our in house macro programmer to help you out, he will be back on monday. in mean time post a fresh report.zip please.
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
and here viewforum.php?f=61
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
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html
-
- Posts: 64
- Joined: Wed Sep 18, 2019 4:46 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: A81087B53034-0710192235
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: Rack ATC Macro Help
Ok. I have made it work using the 13001-13200 variables. Not ideal loosing tool diameters but the ATC works perfectly - I’ll post a video tomorrow.
-edit. Thanks Keith will upload in the morning.
-edit. Thanks Keith will upload in the morning.
-
- Posts: 64
- Joined: Wed Sep 18, 2019 4:46 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: A81087B53034-0710192235
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: Rack ATC Macro Help
All working but in a very 'hacky' way. I set parameter 160 to 0 (non-enhanced ATC) and wrote some very long and code inefficient macros (couldn't figure out how to use a system variable to make up the name of another system variable). I am using the tool diameter variables (#13001-13200) rather than the bin variables (#17001-17200). If there is a way for macros to use those variables then everything would be perfect. In the mean-time this works for me but I won't be able to use intercon or tool wear.
I have attached the latest report, mfunc6.mac, plcmacro3.mac (manual tool change) and links to a few videos.
Video explaining the solution:
https://www.dropbox.com/s/2gbyt805tv286 ... n.MOV?dl=0
Video showing tool library checking:
https://www.dropbox.com/s/ifyg1x6yv5zoz ... y.MOV?dl=0
Video showing the ATC in operation including catching my mistakes:
https://www.dropbox.com/s/hx2j3hwxd14bd ... n.MOV?dl=0
I have attached the latest report, mfunc6.mac, plcmacro3.mac (manual tool change) and links to a few videos.
Video explaining the solution:
https://www.dropbox.com/s/2gbyt805tv286 ... n.MOV?dl=0
Video showing tool library checking:
https://www.dropbox.com/s/ifyg1x6yv5zoz ... y.MOV?dl=0
Video showing the ATC in operation including catching my mistakes:
https://www.dropbox.com/s/hx2j3hwxd14bd ... n.MOV?dl=0
- Attachments
-
- report_A81087B53034-0710192235_2020-01-04_18-56-38.zip
- (560.58 KiB) Downloaded 165 times
-
- mfunc6.mac
- (141.1 KiB) Downloaded 198 times
-
- plcmacro3.mac
- (103.03 KiB) Downloaded 170 times
-
- Posts: 349
- Joined: Wed Jan 03, 2018 10:04 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 38D2695C8301-0122180576
- DC3IOB: No
- CNC11: No
- CPU10 or CPU7: No
- Location: NW Arkansas
Re: Rack ATC Macro Help
I've just started to look at the "more tools than tool locations" problem. I really like your solution and that you can place any tool in any location and CNC12 will automagically keep up with it all, very nice. It will be interesting if Chris can come up with a more elegant solution and use the actual bin locations.hebs wrote: ↑Sat Jan 04, 2020 3:15 pm All working but in a very 'hacky' way. I set parameter 160 to 0 (non-enhanced ATC) and wrote some very long and code inefficient macros (couldn't figure out how to use a system variable to make up the name of another system variable). I am using the tool diameter variables (#13001-13200) rather than the bin variables (#17001-17200). If there is a way for macros to use those variables then everything would be perfect. In the mean-time this works for me but I won't be able to use intercon or tool wear.
Great Job!
Clint in NW Arkansas
The more I learn, the more I realize I don't know...
The more I learn, the more I realize I don't know...
-
- Posts: 349
- Joined: Wed Jan 03, 2018 10:04 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 38D2695C8301-0122180576
- DC3IOB: No
- CNC11: No
- CPU10 or CPU7: No
- Location: NW Arkansas
Re: Rack ATC Macro Help
Have you had any feedback on using the bin location variables?
From re-reading the manual it appears that Parameter 160 needs to be set to 1 in order to access the bin fields.
Both show that you should have Read/Write access. The only difference is that the 17000 variables are floating-point. (Is this a mistake in the documentation?) From re-reading the manual it appears that Parameter 160 needs to be set to 1 in order to access the bin fields.
*Note: If enhanced ATC features are not on, the cursor cannot be moved into the bin column and the message "Bin Felds are locked." will appear where the tool in spindle display is located. In addition, the F1 - Clear Bin and F2 - Clear All keys only appear if enhanced ATC features are on
Clint in NW Arkansas
The more I learn, the more I realize I don't know...
The more I learn, the more I realize I don't know...
-
- Posts: 2208
- Joined: Sat Nov 18, 2017 2:32 pm
- Acorn CNC Controller: Yes
- Plasma CNC Controller: No
- AcornSix CNC Controller: Yes
- Allin1DC CNC Controller: No
- Hickory CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: Acorn 238
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Bergland, MI, USA
- Contact:
Re: Rack ATC Macro Help
Since you are using a rack, (I assume straight rack?) why are you using BIN locations? They do not seem to be needed.
-
- Posts: 349
- Joined: Wed Jan 03, 2018 10:04 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 38D2695C8301-0122180576
- DC3IOB: No
- CNC11: No
- CPU10 or CPU7: No
- Location: NW Arkansas
Re: Rack ATC Macro Help
Explaining the problem: https://www.icloud.com/photos/#0qiGY1XQ ... uJoZr7cQyQhebs wrote: ↑Sat Jan 04, 2020 3:15 pm Video explaining the solution:
https://www.dropbox.com/s/2gbyt805tv286 ... n.MOV?dl=0
Gary is there a better way?
Clint in NW Arkansas
The more I learn, the more I realize I don't know...
The more I learn, the more I realize I don't know...