XY Probe script?

Post technical questions about the Buildbotic Controller here.
Forum rules
No profanity, no gambling, no illegal activity, so sexual or pornographic material.

Posts not related to the Buildbotic CNC Controller are likely to be moved or deleted.
Post Reply
johannes
Posts: 8
Joined: Wed Jun 02, 2021 11:39 pm

XY Probe script?

Post by johannes » Mon Jan 10, 2022 3:07 pm

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.

IAW
Posts: 1
Joined: Thu Apr 23, 2020 6:33 am

Re: XY Probe script?

Post by IAW » Mon Jan 10, 2022 3:32 pm

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

johannes
Posts: 8
Joined: Wed Jun 02, 2021 11:39 pm

Re: XY Probe script?

Post by johannes » Thu Jan 13, 2022 9:16 am

Awesome, really appreciate it

Post Reply