- Posts: 25
- Thank you received: 0
Work with probe
If I change xminus.ngc and friends so they do:
Still might be nice if this was built into probe_screen.py though. I'm sure I'm not the only cheapskate that'll baulk at the cost of a Renishaw and buy a cheapy probe.
[1] - I should know better than to give a moments credence to the silly thought that AtP gave bum advise on something mechanical :laugh:
Please Log in to join the conversation.
ruffle wrote: Can I suggest a modest but potentially very useful mod for this?
A probe tip offset/compensation method.
I've bought a probe (admittedly not a Renishaw!) and getting the tip centered to any reasonable accuracy is turning out to be a right pain.
Given that the probe would always be mounted in the same orientation (not unreasonable as the cable kind of dictates a natural place and I'd mark the front of the probe body and always use that facing the front of the machine), I know that probing in -X it measures 0.12 less than +X, +Y some 0.08 more than +X and -Y 0.04 less than +X.
It's easy to measure the offsets by turning the probe through 90 degrees and probing a known face in +X so if I could enter those differences into the probe routines (it doesn't even need to be in the GUI, editing the .pref file or setting a value in the machine's .ini file would be fine) and the calculations took account of the offsets I wouldn't need to worry that the probe tip is not 100% on centre.
Any chance of getting this added? or is it already there? I see references to 'tool_offset[]' in probe_screen.py but that array doesn't seem to be set to anything (warning my Python skills are less than my levitation skillsso I could be missing the blindingly obvious!).
Ruffle: You have it half right. -- no insult intended.
I've implemented some probe calibration code. I've added "wings" to my probe to let it be rotated 180 degrees against a stop. I call the two positions A and B. I use a round hole for calibration. I took a drill bushing and glued magnets to the bottom so that I could stick it to my table or vise. The diameter of the calibration hole doesn't matter.
Then:
1 -- Rotate the probe to the A position.
2 -- Find the center of the hole (I use a subroutine I call calibrateA)
3 -- Rotate the probe to the B position.
4 -- Find the center of the hole (I use a subroutine I call calibrateB)
The true center of the hole will be *exactly* the average of the two values -- exactly to the extent that the probe was rotated exactly 180 degrees.
You can then compute the offset necessary. My calibration routines do that and display the new computed offset and any previous computed offset. I use the A position for my measurements, so that's the offset I compute. My probing routines automatically add the offset. (It should be noted that the calibration routine also corrects for errors in the collet that is used to hold the probe.)
Some results (on an old Bridgeport Clone I converted with ball screws). The probe cost me $79 (new on ebay).
1 -- When I probe a center, it regularly repeats to 0.0002 inches on both axes.
2 -- I calibrated the probe, used it, and then removed the probe and calibration fixture from the machine. I later put the probe back on the machine (its not necessary to recalibrate it.) I forgot that it had already been calibrated and calibrated it again. The difference between the old and new offsets was zero (to four decimals) on the X axis and 0.0001 on the Y axis.
Since the probe had been driven into the table by bugs in the software
I'd like to be able to provide copies of my routines, but they probably aren't ready for prime time.
1 -- There is no documentation
2 -- They are integrated with the software I use for my MPG. That let's me do things like:
A -- Using the MPG move in some direction.
B -- Push the probe edge button. The probe will move in the same direction as the last move to find an edge.
C -- Push the set zero button. The last axis that was be probed will have the last probed position set to zero in the current coordinate system.
D -- Move somewhere else
E -- Push the probe edge button. The probe will find the new edge
F -- Push the half button. The current axis value will have zero as the half value of the new probed position. In other words, the axis was zeroed to the midpoint (line) between the two probed points on the axis.
Ken
Please Log in to join the conversation.
The following files from the archive are placed in:
your-folder-configuration/python
probe_screen.py
your-folder-configuration/your_subroutine_path
all from folder "macros"
your-folder-configuration/probe_icons
all from folder "probe_icons"
~/
.axisrc
Please Log in to join the conversation.
Hopefully, you do not perceive this folder name as literal (your-folder-configuration/your_subroutine_path).thor44 wrote: Can someone please help?
These names should be replaced by the name of your configuration folders.
Please Log in to join the conversation.
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 to join the conversation.
Please Log in to join the conversation.
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 to join the conversation.
Please Log in to join the conversation.
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 to join the conversation.
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 to join the conversation.
