- Posts: 78
- Thank you received: 69
Work with probe
- verser
- Offline
- Senior Member
-
This is a very useful feature, it is very interesting to look at the source code.lerman wrote: I've implemented some probe calibration code.
Please Log in or Create an account to join the conversation.
- thor44
- Offline
- Senior Member
-
- Posts: 53
- Thank you received: 2
Please Log in or Create an account to join the conversation.
- lerman
- Offline
- Junior Member
-
- Posts: 24
- Thank you received: 5
verser wrote:
This is a very useful feature, it is very interesting to look at the source code.lerman wrote: I've implemented some probe calibration 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
Please Log in or Create an account to join the conversation.
- thor44
- Offline
- Senior Member
-
- Posts: 53
- Thank you received: 2
Please Log in or Create an account to join the conversation.
- verser
- Offline
- Senior Member
-
- Posts: 78
- Thank you received: 69
Enormously grateful.lerman wrote: Verser -- you asked for it, you got it.
See:
www.se-ltd.com/~lerman/files/safe_probe_init_for_verser.ngc
I apologize for the excessive curiosity, сould you show this "wings"?lerman wrote: I've added "wings" to my probe to let it be rotated 180 degrees against a stop.
Please Log in or Create an account to join the conversation.
- lerman
- Offline
- Junior Member
-
- Posts: 24
- Thank you received: 5
verser wrote:
Enormously grateful.lerman wrote: Verser -- you asked for it, you got it.
See:
www.se-ltd.com/~lerman/files/safe_probe_init_for_verser.ngc
I apologize for the excessive curiosity, сould you show this "wings"?lerman wrote: I've added "wings" to my probe to let it be rotated 180 degrees against a stop.
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
Please Log in or Create an account to join the conversation.