Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: Raymondo on August 27, 2025, 07:04:22 AM

Title: probe gcode for MDI
Post by: Raymondo on August 27, 2025, 07:04:22 AM
Hi I am having trouble wrtting a Gcode to set the Z axis in the MDI  I feed down and set it using a G92  but then when resetting Z latter on its currupted 
This works sort of
G90
G49
G91
G31 Z-1.0 F4
G90
#5223 = -3.85
G91 G0 Z0.1
G90
G43 H1
But the height is 1.866  but have to add 1.984  to it to get it to read right and set the Z axis and have no idea why
What I want it to be able to set a tool using the probe to 1.866 the height of my setting block  but what ever tool I use  and they mostly have offsets so a H3 for tool 3 need to be in the mix
The probing built in to mach4 sets only when there is a zero offset t