Page 1 of 1

XY Probe script?

Posted: Mon Jan 10, 2022 3:07 pm
by johannes
Hi,
Does anyone happen to have a macro/script for finding part positions using a probe?
I already have a code for finding tool height offsets, but was looking for examples of simple part probing routines.
E.g. Edge, Web, Boss, etc.

Re: XY Probe script?

Posted: Mon Jan 10, 2022 3:32 pm
by IAW
This is a copy of the macro I stored to find the bottom left corner of my work piece using a triquetta block with 1/4" end mill. When I first started with my Newcarve 7510 I found it very helpfull to add comments to aid in understanding the moves. I also have a similar Macro button modified to handle an 1/8" diameter bit along with a Macro to find the Z height only. Hope this helps.

XYZ-1/4" Dia Endmill
G20
M0 (MSG, Click 'continue' bit in position top right of block and ground on.)
M70 (Save modal mode)
G92 X0
G92 Y0
G92 Z0
G38.2 X-1 F2 (Probe x axis toward the left side of the block)
G91 G1 X0.125 F10 (Linear move the x axis right .125" at feed rate of 10 in/min)
G91 G1 Y1 F10 (Linear move the y axis 1" toward the back of the machine)
G91 G1 X-0.625 F10 (Linear move the x axis .625" toward the left)
G38.2 Y-1 F2 (Probe y axis toward the front side of the block)
G91 G1 Y0.125 F10 (Linear move the y axis away from block .125" at feed rate of 10 in/min)
G91 G1 X0.625 F10 (Linear move the x axis .625" toward the right at a feed rate of 10 in/min)
G91 G1 Y-0.625 F10 (Linear move the y axis -.625" toward the the front at a feed rate of 10 in/min)
G38.2 X-0.5 F1 ( Probe x axis toward the left side of the block)
G92 X2.2370 (Set x to the measured value of the x axis of the block + 1/2 of bit dia)
G91 G1 X0.125 F10
G91 G1 Y0.625 F10
G91 G1 X-0.625 F10
G38.2 Y-1 F1 (Probe y axis toward the front side of the block)
G92 Y2.2445 (Set y to the measured value of the x axis of the block + 1/2 of bit dia)
G91 G1 Y0.125 F10
G91 G1 Z0.8 F10
G91 G1 Y-0.625 F10
G38.2 Z-0.8 F3 (Probe z axis at a feed rate of 3 in/min)
G91 G1 Z0.05 F3
G38.2 Z-0.2 F1 (Re-probe z axis at a feed rate of 1 in/min)
G92 Z0.8605 (Set z to the measured value of the z axis of the block)
G91 G1 Z0.125 F10
G91 G1 X1 F30 (Move the x axis over 1 in away from block)
G91 G1 Y1 F30 (Move the y axis back 1 in away from block)
M0 (MSG, Click 'continue' after removing the Triqurtra Zeroing Block)
G90
G0 Z2 F5
G0 x0 F10
G0 Y0 F10
M72 (restore modal mode)
M30

Re: XY Probe script?

Posted: Thu Jan 13, 2022 9:16 am
by johannes
Awesome, really appreciate it