Modified Tool Length Measurement

More
11 years 2 days ago #64500 by LearningLinuxCNC
Modified Tool Length Measurement was created by LearningLinuxCNC
I am getting ready to implement the tool length measurement in gmoccapy. However I don't want to use the block height feature that is built into the standard gmoccapy procedure. I have been looking at the change.ngc file and I believe the only thing that I need to change is the following line
Code:
G10 L1 P#<tool> Z[#<touch_result> - #<_hal[gmoccapy.probeheight]> + #<_hal[gmoccapy.blockheight]>]

to
Code:
G10 L1 P#<tool> Z[#<touch_result> - #<_hal[gmoccapy.probeheight]>]

However as I am typing this I guess I could just leave the blockheight parameter set to 0 and it would have the same effect.

Am I on the right track here?

Also when running a program I will not always want to remeasure every tool, so I was thinking that I would use M64 P0 and M65 P0 to turn on and off the gmoccapy.toolmeasurement pin therefore enabling or disabling the automatic tool measurement. I can set up my post processor to turn on the tool measurement when I do a "manual toolchange" or turn it off for automatic tool changes (still manual for me but tool length is preset)

Does this sound like a good method?

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

More
11 years 1 day ago #64513 by LearningLinuxCNC
Replied by LearningLinuxCNC on topic Modified Tool Length Measurement
I also think that I need to change the following line:
Code:
G91 G38.2 Z #<_ini[TOOLSENSOR]MAXPROBE> G0 Z2

to
Code:
G91 G53 G38.2 Z #<_ini[TOOLSENSOR]MAXPROBE> G0 Z2

This will make the tool length measurements independent of the work coordinate system. Does this seem correct?

I am trying to think all of this out before I try it.

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

More
10 years 11 months ago #65353 by thor44
Replied by thor44 on topic Modified Tool Length Measurement
I think I have everything set to work correctly with the tool touch off in gmoccapy but I am struggling between a touch off pad or a button, what is your opinion?


Thanks

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

More
10 years 11 months ago - 10 years 11 months ago #65362 by newbynobi
Replied by newbynobi on topic Modified Tool Length Measurement
@Nitro,
Just write your own change.ngc, and do not use the gmoccapy probe and blockheight hal pin, than you can do what ever you want.
As I have not done it your way, I will not be able to help.


@Thor,
Button, no question for me ;-)

Norbert
Last edit: 10 years 11 months ago by newbynobi.

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

More
10 years 11 months ago #65370 by LearningLinuxCNC
Replied by LearningLinuxCNC on topic Modified Tool Length Measurement
Norbert,

I am working on the modified change.ngc but I have not had much time to devote to it yet. I will post my finished results here along with a video showing it working. Thanks for the response.

Jim

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

More
10 years 11 months ago #65372 by LearningLinuxCNC
Replied by LearningLinuxCNC on topic Modified Tool Length Measurement
Thor,

I would use a tool height sensor that has the following features.
1: Has an integrated switch so that it does not require hooking up a signal cable to the tool.
2: Has some spring loaded give to it so that you can do a relatively rapid initial probe to find the rough length and then re-probe for the final length at a slower speed.

The key is that the switch has to be very repeatable so you get the same reading each time. It also needs to trip the same at different locations on the touch pad otherwise tools with different points of contact will trip at different positions.

I am using a second touch probe from my videos as my tool height sensor. It is not perfect for this application but it appears that it will work within about +-0.0005". I will be trying other methods in the future (I like to tinker with things!).

Jim

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

Moderators: newbynobi, HansU
Time to create page: 0.194 seconds
Powered by Kunena Forum