Page 1 of 1

ProbeCloud plugin

PostPosted: Sat Apr 27, 2019 8:46 pm
by eabrust
Here's my first crack at a probing plugin for UCCNC. Thanks to Dezsoe for the mini-tutorial on using codesync and ismoving without hanging UCCNC by threading... I finally made some progress after spinning my wheels for quite a while :D

This is mainly a 3D surface digitizing routine (bed of nails type), but offers the following:
• Ability to define a perimeter that is used to filter probing areas to cover. Ability to Preview probing area, and define the probe areas as inside or outside of the perimeter. This can greatly reduce wasted probing time collecting points you don’t want or need.
• Ability to stop and re-start probing at a position and continue writing to the same file. Probing >100,000 points can take a long time, now you can break your probing up into several sessions, and restart if something stopped you in the middle of the run.
• Adaptive retracting. The probing routine doesn’t just probe from a set ‘safe Z’ plane height, but rather tracks as closely to the surface of the part as you choose, only retracting to a higher Z level when necessary. This is an attempt to speed up the probing.
• Ability to have the plugin send you an email (or a text if you set it up to email to a special address that forwards to your cell number). Now you don’t have to wonder if the probing has stalled or hit a snag, the plugin will notifiy you if it has an error or an EStop event occurs before the finish!

The output is a standard text file, with comma separated X,Y,Z points you can import into mesh lab, etc.

A few notes:
-The probing seems fairly robust, I think I've worked out the bugs and implemented a number of checks to stop if something goes awry, but test at your own risk
-If you set it up to email, I will tell you up front that your email server login/password are saved as plain text in the settings xml file. If you don't like that, don't set it up and use it, or better yet, setup a spare junk email address to use.
-The plotting of points gets ridiculously slow, so I'll be looking into alternative plotting in the future. I recommend turning 'update plot during probing' off if you have more than 25,000 points to probe, as it just slows the probing down.
-This is tested with UCCNC 1.2109, windows 7 (32 bit) and a UC300eth. Let me know if you have issues on your different setup.
- I've only tested this in 'INCHES' units, you will have to set all values for your default units if using metric.
-the attached 'sample' zip contains sample files for a project called 'spart001' and a project called 'quarter', to give an idea of the input and output files generated.

Comments and suggestions welcome, the plugin definitely needs some refinement to make it more user friendly.

Thanks
Eric
ProbeCloud.PNG
snapshot01.png
spart001 rendered in meshlab

Re: ProbeCloud plugin

PostPosted: Mon Apr 29, 2019 12:52 am
by Vmax549
Hi Erik, What type of point file display are you doing. Inside of the plugin or using the toolpath display in UCCNC ? It does not take much to use teh UCCNC toolpath display to display teh progress of teh scan as a shape file.

Just a thought, (;-) TP

Re: ProbeCloud plugin

PostPosted: Mon Apr 29, 2019 12:58 am
by Vmax549
Hi Erik, Have you tried a high definition scan of a relief with a lot of Z elevations. Something with about an inch or so of elevation change.

(;-) TP

Re: ProbeCloud plugin

PostPosted: Mon Apr 29, 2019 1:11 am
by eabrust
Vmax549 wrote:Hi Erik, What type of point file display are you doing. Inside of the plugin or using the toolpath display in UCCNC ? It does not take much to use the UCCNC toolpath display to display teh progress of teh scan as a shape file.

Just a thought, (;-) TP



Hi Terry,

My next plan was to look at embedding an OpenTk window in the plugin.

Can you please explain more how you loaded the x/y/z points into the UCCNC toolpath display?

regards
Eric

Re: ProbeCloud plugin

PostPosted: Mon Apr 29, 2019 2:04 am
by Vmax549
Simply output teh points as a text file formated as such

Xx.xxx Yx.xxx Zx.xxx

Then load teh file as a gcode file

With Mach3 it auto inserts teh probed points in teh toopath display but UCCNC does not so you never get to see teh shape as it is created.

I did this and appended teh points file about every 100 points or so just to see teh progress and teh shape evolve.

I have a creepy crawler surface routine as well that can do extreme elevation changes across teh surface.

Just a thought, (;-) TP

Re: ProbeCloud plugin

PostPosted: Mon Apr 29, 2019 2:13 am
by eabrust
Thanks Terry,

Great info, I'll give it a whirl.

Regards
Eric