manual tool length setting

More
02 Apr 2021 17:53 #204539 by matthewbagstad
Hello, I setup a tool probe using the gmoccapy wiki and it is working fine but it runs the tool change and length setting routine every time I run the program, even if the tool is already loaded. I understand this is important on some machine configurations but wanting the behavior to be like the industrial machines. I'm hoping to limit to this to loading different tools or maybe better only to run the length setting routine manually.

thanks

Please Log in or Create an account to join the conversation.

More
02 Apr 2021 18:59 #204546 by JohnnyCNC
In my remap of M6 If the length in the tool table is zero it goes through the tool measuring process. Otherwise it uses the value from the tool table. To do this when I touch-off with my 3D probe I store the touch-off point adjusted for the length of the probe in Parameter #4001 for G54 and #4002 for G55 and so on. This value would be the value if the spindle nose was sitting on the part. Then each tool length is added to the value from the appropriate #4001, #4002, etc depending on which coordinate system is active. I'm using QTDragon and LinuxCNC 2.8.

Please Log in or Create an account to join the conversation.

More
02 Apr 2021 19:33 #204549 by JohnnyCNC
In my remap of M6 If the length in the tool table is zero it goes through the tool measuring process. Otherwise it uses the value from the tool table. To do this, when I touch-off with my 3D probe I store the touch-off point adjusted for the length of the probe in Parameter #4001 for G54 and #4002 for G55 and so on. This value would be the value as if the spindle nose was sitting on the part. Then each tool length is added to the value from the appropriate #4001, #4002, etc depending on which coordinate system is active. I'm using QTDragon and LinuxCNC 2.8.

Please Log in or Create an account to join the conversation.

More
02 Apr 2021 20:42 #204556 by matthewbagstad
I had a look at the default gmoccapy ngc file used by the M6 remap and I now see it can be customized to any behavior. Great tip by the way. One more thing... Could you possibly share your M6 remap ngc file just to give me a leg up on the syntax?

thanks

Please Log in or Create an account to join the conversation.

More
02 Apr 2021 22:11 #204565 by JohnnyCNC
Yes, I won't be back at my machine until Sunday night. I can post the latest version then. I did make a prior post that contained my remap but I was chasing a bug where after the probing for a second part the offset would be off. I recently figured out what was going on and corrected that. My remap was a modification of another fellows work who I credited in my prior post. See the thread liked below for what I had posted so far. I will post the latest version of my work when I get back. I am using inches but I tried make it handle mm or inches.

mixed-tool-m6-remap

John

Please Log in or Create an account to join the conversation.

More
05 Apr 2021 01:43 #204840 by JohnnyCNC
matthewbagstad here are the files from my M6 remap. To use this the first thing to do is to add the following lines to the linuxcnc.var file. This will make these parameters persistent. These parameters store the probed Z values for G54 - G59.2 respectively. G59.3 is used for measuring the tool length. The modified probe_z_minus_wco.ngc is what saves the probed values to #4001-#4008.

4001 0.000000
4002 0.000000
4003 0.000000
4004 0.000000
4005 0.000000
4006 0.000000
4007 0.000000
4008 0.000000

File Attachment:

File Name: probe_z_minus_wco.ngc
File Size:3 KB

File Attachment:

File Name: m6remap_20...4-04.ngc
File Size:3 KB


I hope this helps
Attachments:

Please Log in or Create an account to join the conversation.

Moderators: newbynobi
Time to create page: 0.259 seconds
Powered by Kunena Forum