Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: m8298 on March 21, 2013, 08:36:05 PM

Title: Help with digitizing/probing
Post by: m8298 on March 21, 2013, 08:36:05 PM
Hello, I am somewhat new to CNC and I am probably trying to run before learning to walk. I have a home-built 4 axis router table which I have been using for a little while now. I have the 2010 screen set and I have added the laser crosshair xy zero and a z axis zero plate. Now I want to learn all that I can about digitizing. I made the probe and I kinda have it working. I have been trying to use it with the 4th axis digitize wizard. One problem I noticed is it occasionally does a arbitrary point without actually touching. I put a stiffer spring inside the probe, thinking git was from vibration. But it still does it. I also noticed that when this happens it doesn't light up the probe led on the screen like it does when it actually touches. I am sharing port 13 between the tool zero plate and the touch probe(inverting the signal when needed.)  Any ideas what's wrong?  I would also like some idea on how to work with the resulting point clouds.  I would like to be able to take something I turned on my wood lathe, probe the surface on my 4th axis, then convert the point cloud to something I could work with to cut and decorate the surface of the wood turning.  Any help you all could offer is greatly appreciated. 

Title: Re: Help with digitizing/probing
Post by: ger21 on March 22, 2013, 08:57:49 AM

It sounds like noise could possibly be triggering your probe. Adding a capacitor across the input should help, if noise is the culprit.

I've never done any probing, but here's how I'd go about probing your turning.
Rather than probing the entire turning, which will take a considerable amount of time, I'd probe a single pass along the length of the turning, to get the profile. I'd then bring those probed points into a CAD program, draw a line through the points, and revolve it.
Then you'd have a model of your turning in your CAD program, to do whatever you want with.

Be aware that this will probably require writing your own probe routine, and figuring out some way to bring the points into your CAD programl. Then, you''ll need to figure out how to program whatever you want to do without having to go over the entire turned surface.
This will probably not be a trivial task. It would probably be much easier to just have the CNC do the entire turning from start to finish. But I'm sure that's not really what you want.
Title: Re: Help with digitizing/probing
Post by: m8298 on March 22, 2013, 10:27:26 AM
Thanks for the response Gerry. BTW, I still love the screenset.

I don't think I can use a cap. My tool zero plate is active low, and there is a pull-up resistor holding the signal high until the plate is touched. My touch probe, which is using the same input, is active high. If I use a cap the signal would remain high longer, right?  Should I do this a different way?

I have already been thinking about taking a single line of point on my rotary axis.  Then maybe extruding the results and maybe making a wrapped rotary design. At least as a starting point, until I could learn a better way.
Title: Re: Help with digitizing/probing
Post by: BR549 on March 22, 2013, 11:34:19 AM
(;-) There are routines to probe on a lathe.  I have a routine to import the points to a dxf. You should be able to import a CSV point file directly into cad.

The tools are out there, (;-) TP
Title: Re: Help with digitizing/probing
Post by: JohnHaine on March 22, 2013, 12:06:12 PM
If you use a cap, yes it will stay high longer, but whether that is significant depends on how fast your probing move is.  One approach is to move until probe triggers, then withdraw a tiny bit and move much slower until it triggers again.  The significance of any delay the second time will be much less.
Title: Re: Help with digitizing/probing
Post by: m8298 on March 24, 2013, 09:20:15 AM
I am a little confused.  When I am probing, the signal is active high (probe triggers when 5v is present.) The leads inside the probe hold the signal grounded until probe touches. So when I get these "phantom points", it must be seeing 5v.  I understand how this could be noise, but if I put a cap across the input, it'll stay high longer. If it stays high longer, won't the routine fault?  And how would I size the cap to try it?  I keep think I need something inside the probe to hold the signal low better, like pull down resistors.  I just don't know how to wire it.
Title: Re: Help with digitizing/probing
Post by: JohnHaine on March 24, 2013, 11:58:35 AM
Sorry, I misunderstood.  I though the spurious trigger was on your active low touch plate, but re-reading the OP I see it is on the active high probe.  This is probably noise from the x or y drives getting in through an earth loop.  The fact that you don't see it with the touch plate suggests that the z drive is not the problem.  Needs attention to single point earthing perhaps?

Within the probe, I assume that the signal is held low by a short to earth, so a pull down resistor will not help.  Since there is a spurious signal even when there is a low impedance to earth through this short, it indicates more inductive noise pickup from the stepper drive wiring.
Title: Re: Help with digitizing/probing
Post by: m8298 on March 24, 2013, 12:12:09 PM
After reading different areas on this forum, I realized that I have never done the Windows XP Optimization and I had a bunch of startup processes running. After killing all of the unneeded processes I was able to run Art's 4th Axis Digitizing Wizard without a single error (hopefully not just a coincidence.) Now I have new questions:

The resulting file is a triplet text file with CSV data. I probed a round piece on my A axis using center of workpiece as Z zero. What I get are X, Y, and Z values that are all positive. How would that relate to a three dimensional round object?  Also, if I open the file in MachCloud, I don't see anything?  Are there any instructions for MachCloud or any of the wizards?
Title: Re: Help with digitizing/probing
Post by: ger21 on March 24, 2013, 01:58:28 PM
Quote
The resulting file is a triplet text file with CSV data. I probed a round piece on my A axis using center of workpiece as Z zero. What I get are X, Y, and Z values that are all positive. How would that relate to a three dimensional round object?

Not sure what kind of relationship your looking for? All your getting is points in 3D space. There's nothing that says that the shape is round. As I said before, you probably just want to probe along a single line along the axis of rotation.

As for Machcloud, I don't know of any tutorials. I played with it once, and it took me a while to get anything to work. I think the difference was whether the point cloud file contained actual X, Y and Z letter. It would work either with or without them, but not the opposite. Can't remember which was which, though.
Title: Re: Help with digitizing/probing
Post by: m8298 on March 24, 2013, 02:24:01 PM
I am not sure what relationship I am looking for. I just thought that a 4th axis digitize wizard would somehow mathematically calculate points such that the resulting point cloud would resemble a 3d object, round or otherwise. Because this object is round, I end up with duplicate sets of points for every rotation.  I guess I thought that there would be a way to calculate Y points based on degrees of rotation. How would I use a point cloud with only X and Z values for a three dimensional object?

I understand what you are saying about probing one line along a single axis, and i plan on trying that if I can find a wizard that will let me.
Title: Re: Help with digitizing/probing
Post by: BR549 on March 24, 2013, 02:30:32 PM
Probing on the 4th is basically the same as probing on Y(flat Plane) the difference is the Point values are angular not Cartesian.

So you may have to convert the values back to cartesian for the program that deals in points clouds to be able to use them.

Then when you are ready to POST the gcode it has to be converted BACK to angular values for the A axis to use.

I am assuming that you want to probe engraving on a post or something similar?

Just a thought, (;-) TP
Title: Re: Help with digitizing/probing
Post by: m8298 on March 24, 2013, 02:34:58 PM
How would I convert from angular to Cartesian?
Title: Re: Help with digitizing/probing
Post by: BR549 on March 24, 2013, 02:37:39 PM
Just a thought but it IS possible to trick MACh3 into using the A axis as Y so you could do the process directly as a standard XYZ plane instead of angular thrown in the mix.

You could also engrave on the A axis the same way. Mach3 will think that  A is Y.  There is a subject here on the site that deals in it

(;-) TP
Title: Re: Help with digitizing/probing
Post by: BR549 on March 24, 2013, 02:48:59 PM
Here is the subject
http://www.machsupport.com/forum/index.php/topic,23216.0.html

(;-) TP
Title: Re: Help with digitizing/probing
Post by: m8298 on March 24, 2013, 03:28:35 PM
TP you have given me food for thought.

All I really want to do is take it we ms that I turn on my wood lathe, probe them on my rotary axis, then design something that can be cut on the surface.  As Gerry mentioned I can use a single line of points for this, once I figure out how.

It would be nice if there was a program that could convert raw data points from angular to Cartesian and/or vise versa.
Title: Re: Help with digitizing/probing
Post by: BR549 on March 24, 2013, 05:27:34 PM
OH there probably is (;-) Somewhere. I'll take a look. Most cams can take Cart (XY)and convert to Angular(XA) on posting. It is a wrapping feature.

Yes Gerry HAS the right approach(;-) BUT that just gives you a LATHE solution for the profile.  IF you are wanting to carve a design into the profile it is another matter.

Just a thought, (;-) TP