Hmm.  Not working.  Maybe I did something wrong? (I can't imagine that it is that complicated).
Did I comment it out incorrectly? 
	------------- Get current state -------------
	local CurFeed = mc.mcCntlGetPoundVar(inst, mc.SV_FEEDRATE)
	local CurZOffset = mc.mcCntlGetPoundVar(inst, mc.SV_ORIGIN_OFFSET_Z)
	local CurFeedMode = mc.mcCntlGetPoundVar(inst, mc.SV_MOD_GROUP_1)
	local CurAbsMode = mc.mcCntlGetPoundVar(inst, mc.SV_MOD_GROUP_3)
	local CurPlane = mc.mcCntlGetPoundVar(inst, mc.SV_MOD_GROUP_2)
	local CurXPosition = mc.mcAxisGetPos(inst, mc.X_AXIS)
	local CurYPosition = mc.mcAxisGetPos(inst, mc.Y_AXIS)
	
	--if (CurPlane ~= 170) and (RotateCoord == 1) then
	--	mc.mcCntlSetLastError(inst, "Probe: Invalid plane selection for coordinate rotation")
	--	do return end
	--end
	
	------------- Check Probe -------------
	rc = Probing.CheckProbe(1, ProbeCode); if not rc then; do return end; end
	
	------------- Check direction -------------
	if (CurXPosition > XPos) then
		BackOff = -BackOff
		OverShoot = -OverShoot
		ProbeRad = -ProbeRad
	end