Work with probe

More
11 years 3 months ago #60949 by verser
Replied by verser on topic Work with probe

lerman wrote: I've implemented some probe calibration code.

This is a very useful feature, it is very interesting to look at the source code.

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

More
11 years 3 months ago #60954 by thor44
Replied by thor44 on topic Work with probe
I have two configs one is axis and the other is gmoccapy I followed the instructions and everything works in axis except the screen it's cut off at the bottom but only the tab screen shows up in gmoccapy no icons.

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

More
11 years 3 months ago #61002 by lerman
Replied by lerman on topic Work with probe

verser wrote:

lerman wrote: I've implemented some probe calibration code.

This is a very useful feature, it is very interesting to look at the source code.


Verser -- you asked for it, you got it.
See:
www.se-ltd.com/~lerman/files/safe_probe_init_for_verser.ngc

Notes:
1 -- Some of the code relies on the MPG software that I'm using -- so don't expect it to work without more information
2 -- Some of the code has never been debugged -- so don't expect it to work
3 -- Some of the comments are out of date -- so don't expect the code to work as described

I'm rather proud of the o<safe_probe_xyz> subroutine.
It is a single subroutine that:
1 -- can probe in any direction
2 -- is safe in that all moves STOP if the probe hits something
3 -- adjusts for the diameter of the ball (with the assumption that the ball touched in the direction of motion)
4 -- adds a calibration offset to the returned value
Please note that its probe algorithm is:
1 -- advance at search speed until a probe hit (a maximum of -- as configured -- one inch)
2 -- back off at low speed until the probe releases

The "edge" routine looks at the last direction the MPG moved the probe and probes for an edge in that direction. I use the "probe-z" button on the MPG for that purpose.

Use this code at your own risk. Feel free to use any ideas in it. It would be nice if you give credit for anything of great value, but that's up to you.

Please let me know what bugs you find and any suggestions you might have.

Regards,

Ken
The following user(s) said Thank You: verser

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

More
11 years 3 months ago #61004 by thor44
Replied by thor44 on topic Work with probe
Wow that's alot of code. Do I put it in the macros folder as one file? Sorry I'm still new to all of this.

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

More
11 years 3 months ago #61010 by verser
Replied by verser on topic Work with probe

lerman wrote: Verser -- you asked for it, you got it.
See:
www.se-ltd.com/~lerman/files/safe_probe_init_for_verser.ngc

Enormously grateful.

lerman wrote: I've added "wings" to my probe to let it be rotated 180 degrees against a stop.

I apologize for the excessive curiosity, сould you show this "wings"?

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

More
11 years 3 months ago #61017 by lerman
Replied by lerman on topic Work with probe

verser wrote:

lerman wrote: Verser -- you asked for it, you got it.
See:
www.se-ltd.com/~lerman/files/safe_probe_init_for_verser.ngc

Enormously grateful.

lerman wrote: I've added "wings" to my probe to let it be rotated 180 degrees against a stop.

I apologize for the excessive curiosity, сould you show this "wings"?


No need to apologize.

See: www.se-ltd.com/~lerman/files/wings.jpg and www.se-ltd.com/~lerman/files/wings2.jpg

In use, a 5/16 inch diameter rod is mounted on the head of the milling machine oriented vertically so the part of the wing most aligned with the axis of the probe is against the rod. That's for the "A" position. Then the probe is rotated 180 degrees so the face of the opposite wing is against the rod. That's the "B" position.

The wings have been cut so that the line they define is 5/32 (half of 5/16) offset from the center of rotation of the probe. That makes the two positions exactly 180 degrees apart.

Unfortunately, the mounting I have for the rod is no precisely vertical (parallel to the spindle). I'm working on making an alternative mount. When that is done, I will inset magnets into the edges of the wings to hold the probe in contact with the rod.

I've looked, but have been unable to find any reference to the technique of rotating the probe 180 degrees to provide automatic offset calibration. It is certainly easy to do and accurate.

Regards,

Ken
The following user(s) said Thank You: verser

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

Time to create page: 0.972 seconds
Powered by Kunena Forum