manual tool length setting
- mb_cnc
- Offline
- Junior Member
Less
More
- Posts: 31
- Thank you received: 1
02 Apr 2021 17:53 #204539
by mb_cnc
manual tool length setting was created by mb_cnc
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
thanks
Please Log in or Create an account to join the conversation.
- JohnnyCNC
- Offline
- Platinum Member
Less
More
- Posts: 543
- Thank you received: 100
02 Apr 2021 18:59 #204546
by JohnnyCNC
Replied by JohnnyCNC on topic manual tool length setting
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.
- JohnnyCNC
- Offline
- Platinum Member
Less
More
- Posts: 543
- Thank you received: 100
02 Apr 2021 19:33 #204549
by JohnnyCNC
Replied by JohnnyCNC on topic manual tool length setting
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.
- mb_cnc
- Offline
- Junior Member
Less
More
- Posts: 31
- Thank you received: 1
02 Apr 2021 20:42 #204556
by mb_cnc
Replied by mb_cnc on topic manual tool length setting
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
thanks
Please Log in or Create an account to join the conversation.
- JohnnyCNC
- Offline
- Platinum Member
Less
More
- Posts: 543
- Thank you received: 100
02 Apr 2021 22:11 #204565
by JohnnyCNC
Replied by JohnnyCNC on topic manual tool length setting
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
mixed-tool-m6-remap
John
Please Log in or Create an account to join the conversation.
- JohnnyCNC
- Offline
- Platinum Member
Less
More
- Posts: 543
- Thank you received: 100
05 Apr 2021 01:43 #204840
by JohnnyCNC
Replied by JohnnyCNC on topic manual tool length setting
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
I hope this helps
4001 0.000000
4002 0.000000
4003 0.000000
4004 0.000000
4005 0.000000
4006 0.000000
4007 0.000000
4008 0.000000
I hope this helps
Please Log in or Create an account to join the conversation.
- mb_cnc
- Offline
- Junior Member
Less
More
- Posts: 31
- Thank you received: 1
04 Jul 2021 22:27 #213723
by mb_cnc
Replied by mb_cnc on topic manual tool length setting
JohnnyCNC, I'm finally getting to work on this. Could you please provide your ini file section that does the remap?
thanks
thanks
Please Log in or Create an account to join the conversation.
- JohnnyCNC
- Offline
- Platinum Member
Less
More
- Posts: 543
- Thank you received: 100
05 Jul 2021 02:08 #213733
by JohnnyCNC
Replied by JohnnyCNC on topic manual tool length setting
This is the line that activates the remap.
[RS274NGC]
PARAMETER_FILE = linuxcnc.var
REMAP=M6 modalgroup=6 ngc=m6remap
SUBROUTINE_PATH = /home/john/linuxcnc/nc_files/probe/basic_probe/macros
SUBROUTINE_PATH = ../../../../nc_files/probe/basic_probe/macros
SUBROUTINE_PATH = macros
[RS274NGC]
PARAMETER_FILE = linuxcnc.var
REMAP=M6 modalgroup=6 ngc=m6remap
SUBROUTINE_PATH = /home/john/linuxcnc/nc_files/probe/basic_probe/macros
SUBROUTINE_PATH = ../../../../nc_files/probe/basic_probe/macros
SUBROUTINE_PATH = macros
Please Log in or Create an account to join the conversation.
Moderators: newbynobi, HansU
Time to create page: 0.066 seconds