a blog of ideas and improvements for tormach cnc mills
articles | for sale | about | contact


THE Y BOSS PROBING ROUTINE

MAY 06 2023

 

This is the opposite of what I call the Y-vise probe, which is one of the built-in probing routines in PathPilot. They call it the Y-only routine. That routine is useful for finding the center of parts between two vise jaws. It's like the Pocket routine, but only in Y.

This is the opposite of that. It's for irregular bosses or pieces laying on their side, where you want the center of Y and don't care about X or Z.

I've been begging Tormach to release something like this for a couple years now, but they're reluctant because it would be difficult to program this for all potential situations.

This code will work, providing you're within an inch of your stock in Y+. It will probe, rise 1" and travel 1" from the limit switch in Y- and probe Y-. On my machine, that is plenty of distance past the fixed jaw. You can edit this script as necessary.

If you place this in     /home/operator/tmc/subroutines/yboss.nc     you can run the routine by typing into the MDI line:     o<yboss> call

o<yboss> sub
G38.2	F20 Y[#<_Y>+1  ]	(FAST PROBE UP TO 1" FROM STARTING POINT)
G1	F20 Y[#<_Y>-.05]	(BACK OFF BRO)
G38.2	F1  Y[#<_Y>+.1 ]	(SLOW PROBE)
G10   	L20 P0 Y0		(SET PROBED LOCATION TO Y0)
	#1 = #<_Y>		(SET A VARIABLE FOR DEBUGGING)	
G1	F20 Y[-.05     ]	(BACK OFF)

G1 	F50 Z[#<_Z>+1  ]	(RETRACT TO SAFETY HEIGHT)
G53 	G1 F50 Y-1		(TRAVEL TO 1" FROM LIMIT SWITCH (THIS CLEARS MY FIXED JAW NO MATTER WHAT))
G1 	F50 Z[#<_Z>-1  ]	(DESCEND)

G38.2	F20 Y[#<_Y>-10 ]	(FAST PROBE)
G1	F20 Y[#<_Y>+.05]	(BACK OFF)
G38.2	F1  Y[#<_Y>-1  ]	(SLOW PROBE)
	#2 = #<_Y>		(SET A VARIABLE FOR DEBUGGING)
G1	F20 Y[#<_Y>+.05]	(BACK OFF)

	(DEBUG, NUM1 IS #1 NUM2 IS #2)
        (FYI, NUM2 MINUS NUM1 MINUS YOUR EFFECTIVE PROBE DIAMETER IS THE WIDTH OF THE WORK)

G1 	F50 Z[#<_Z>+1  ]	(RETRACT TO SAFETY HEIGHT)
G1 	F50 Y[#2/2     ]	(MOVE TO CENTER OF WORK)
G10   	L20 P0 Y0		(SET CENTER OF WORK TO Y0)	
o<yboss> endsub