Re: Perimeter Probe Routines
Hi gishere
Below is a program I wrote for doing exactly what you want. All you do is manually jog the probe to the centre of the work and press cycle start. You can change the feed rate, number of probe points, start radius and incremental probe depth so it can be used for most things. The results are logged in a file called "probe-profile-results.txt" which can be found in your machines config folder. Hope this helps.
(probe a profile)
(Configuration section)
G21 (Metric)
F3000 (probe speed)
#1=72 (Number of probes)
#2=30 (Incremental Radius of Probing)
#4=-10 (Incremental Z probe Depth)
(End configuration section)
(PROBEOPEN probe-profile-results.txt)
G10L20P1X0Y0
#1005=0 (ZERO COUNTER)
#1010=#5420 (Record Current X Position)
#1011=#5421 (Record Current Y Position)
G0 G90 X#2
G0 G91 Z#4
o100 while [#1005 LT 360]
G90
g0^#1005
#1001=#5420 (Record Current X Position)
#1002=#5421 (Record Current Y Position)
G90G38.2X#1010Y#1011
G0X#1001Y#1002
#1005=[#1005+[360/#1]]
o100 endwhile
G0G91Z[#4*-1]
G0G90X0Y0
(PROBECLOSE)
M2
Re: Perimeter Probe Routines
The code below may come with LinuxCNC's installation in the nc_files directory. It wasn't in mine, but pulled from thier online source code. The file name is smartprobe.ngc. Modify as necessary.
HTH
Paul
( Rectangular Probing )
( )
( This program repeatedly probes in a regular XY grid and writes the )
( probed location to the file 'probe-results.ngc' in the same directory )
( as the .ini file )
( increment x count = probe area )
(Configuration section)
G20 (Inches)
F20 (probe speed)
#1=-1 (X start)
#2=.04 (X increment)
#3=51 (X count)
#4=-1 (Y start)
#5=.04 (Y increment)
#6=51 (Y count)
#7=1.1 (Z safety)
#8=-.1 (Z probe)
(End configuration section)
(LOGOPEN,probe-results.ngc)
#9=0 #10=0
G0Z#7
O1 while [#9 lt #6]
#10=0
G0 Y[#4+#5*#9]
O2 while [#10 lt #3]
O3 if [[#9/2] - fix[#9/2] eq 0]
#11=[#1+#2*#10]
O3 else
#11=[#1+#2*[#3-#10-1]]
O3 endif
(#11 is X target)
#5070=1
O4 while [#5070 NE 0]
G38.5 z#7
G38.3 x#11
O4 endwhile
G38.2Z#8
(LOG,G1 X#5061 Y#5062 Z#5063)
#10=[#10+1]
O2 endwhile
G0Z#7
#9=[#9+1]
O1 endwhile
(LOGCLOSE)
G0Z#7
G0X#1Y#4
M2
Re: Perimeter Probe Routines
Thanks Lomach, I think this is what I'm after, but will have to do some playing to see how it works.
Also thanks to urbnsr, Correct me if I'm wrong but I think from how I see what you posted is that this is more a grid style probing routine?? I will still give it a try and see what I get at some stage.
Like I said I'm a wee way off yet as I have only just started looking into developing/building one of these.
Anyway thanks again and if anyone else out there has any information on what they might think I'm after it would be nice to know.
Thanks to everyone again.