¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: Tool set switch


dchristal2
 

another keeper
--- In mach1mach2cnc@..., Art <fenerty@a...> wrote:
Mike:

What you need is a probe command and a probe input (Digitize).
In a macro
button, you would put a

code( " G32 Z -10 " ) // set the Z number to the max you want to
drop in
case of error. If the switch is hooked to the digitize input, the Z
drop
will stop when the switch gets activated. Make sure you have room
for a
deceleration of the axis. Then you need a
code( "G92Z0") to set the Z axis to zero, then an
code( "G0Z3") to move to 3 inches up, then a
code( "G92Z0") to set it back to zero.

So the whole macro button would be similar to:

code "G32Z-10"
code "G92Z0"
code" G0Z3"
code "G92Z0"

I haven't tested this , but it should do the job. Just make sure
your
switch is triggering the digitize input else it won't work and
you'll drive
into the table..

Art
www.artofcnc.ca

Join [email protected] to automatically receive all group messages.