Log in

View Full Version : Custom cut file



Keith Larrett
12-18-2016, 09:11 PM
The first three tools on my ATC are all drill bits. A brad point and two boring bits. Because of the geometry of the tips, I don't get an appropriate measurement when I zero the bits. The bits are zeroed to the very tip and so they never cut as deep as they need to. i.e they need to be zeroed to the "flat" section of the bit.

My workaround for this has been to open the “C:\Sbparts\Custom\ATC_Local_Data\
ATC_tool_variables.sbc” file and manually change the z value for tools 1 through 3 by 0.125 or 0.0625

For example if, after zeroing, the z value for tool 1 is -3.125 I will manually change it to -3.250 in the file and then save the file, effectively cheating the z value of the drill bit.

It doesn't take very long to do this but it seems like I should be able to write a custom cut file to automate the process. Ideally it would open the ATC_tool_variables.sbc, change the z values where necessary and then save the file.

Is this possible to do? Would it be relatively simple or is it super complicated? I don't have much experience with code. Any help or pointers would be appreciated. Thanks!

Gary Campbell
12-18-2016, 09:33 PM
Keith...
I did just that for mine. I don't have all the code, but basically you add the option to adjust the tool length during the tool measure file.

Abbreviated block code:

MSGBOX "adjust length?"
if msganswer is no then skip adjust section
id msganswer is yes...
INPUT "How much to adjust?" &z_adjust
then a line similar to: &Zheight = &zheight + &z_adjust

then continue as normal.

That allows you to enter an adjustment each time you need to

disclaimer: these may or may not be the correct variables or commands, as they are from my foggy memory

Keith Larrett
12-19-2016, 05:41 AM
Lol. Thanks, Gary! I followed you right up to Keith . . . :D

Good to know that it is doable. I will start studying the ShopBot Command Reference manual and see if I can get it figured out.

I use the attached file to zero all the tools. It allows me to zero them all without any input like "check clip is on bit shank". I use a pressure plate to zero. I assume that the block of code you are talking about would go in this file? Would I insert it after:

If &Tool = 1 Then &Tool1_Z = &zHeight

and then again after:

If &Tool = 2 Then &Tool2_Z = &zHeight

etc.

I appreciate your advice. Thanks!

barrowj
12-19-2016, 07:00 AM
I just adjust the depth of the cut by adding the appropriate difference. If you already know the bit is a a drill bit and what the difference is for each bit you can add that to the cut depth.

Joe

bleeth
12-19-2016, 07:11 AM
Keith:
You can also set the depth in your design file for the bit to drill a little deeper!

Gary Campbell
12-19-2016, 08:53 AM
Keith...
Sorry... hard to recite a Greek poem without speaking Greek :)

In your case, if your bits stay in the same position, add your adjustments to that file as needed.

Example for drill in Tool1 position: If &Tool = 1 Then &Tool1_Z = &zHeight +0.080

Just remember that amount will be added to that bit EVERY time

Repeat for each tool number you need to adjust

Keith Larrett
12-19-2016, 07:24 PM
I just adjust the depth of the cut by adding the appropriate difference. If you already know the bit is a a drill bit and what the difference is for each bit you can add that to the cut depth.

Joe


Keith:
You can also set the depth in your design file for the bit to drill a little deeper!

Yes. I thought of that. But then I would have to make multiple adjustments and I'd be sure to forget some of them. I've been trying to just make the one time adjustment at the machine.


Keith...
Sorry... hard to recite a Greek poem without speaking Greek :)

No problem Gary. I'm at fault for my poor understanding on the coding. I realize the more I study it and the deeper my understanding, the more useful the CNC will be. However, part of me wishes it was like my table saw where I just flip a switch and start making sawdust :)


In your case, if your bits stay in the same position, add your adjustments to that file as needed.

Example for drill in Tool1 position: If &Tool = 1 Then &Tool1_Z = &zHeight +0.080

Just remember that amount will be added to that bit EVERY time

Repeat for each tool number you need to adjust

Yes! That's simple enough even I can handle it!

I took my custom file Z_all_tools and saved it as a different custom file number with the description Z_all_tools_with_adjustments. That way on the rare occasion that I have a different bit in one of those three tool holders I can just run the original file. I ran a couple tests and the modification works perfect. I did have to change the plus to a minus though.

Thanks again!!

myxpykalix
12-20-2016, 03:56 PM
Not exactly sure how you would do it, but when you do a C2 using your metal plate it automatically adds in the thickness of your plate when calculating the surface.?

BoilermakerAndy
08-22-2025, 11:58 AM
Lol. Thanks, Gary! I followed you right up to Keith . . . :D

Good to know that it is doable. I will start studying the ShopBot Command Reference manual and see if I can get it figured out.

I use the attached file to zero all the tools. It allows me to zero them all without any input like "check clip is on bit shank". I use a pressure plate to zero. I assume that the block of code you are talking about would go in this file? Would I insert it after:

If &Tool = 1 Then &Tool1_Z = &zHeight

and then again after:

If &Tool = 2 Then &Tool2_Z = &zHeight

etc.

I appreciate your advice. Thanks!


I know this post is almost a decade old, but I came across this by accident and now it saves me 20 minutes! Thank you!