G30 is supposed to be a "hard home" which moves the machine until the home switches trigger. It doesn't do that. It does do it when you press the "HOME" button in Manual Mode, so how do I access the routine the button executes? Any ideas?
I want to use that function to create a poor-man's torch height controller (THC) and home the Z-axis between cuts, maybe even between each move.
Could use G38.2 to probe instead?
You could hook your height/home switch to the probe input. The manual says it will set variables 5061 through 5066 to the coordinates of the contact point. You could then use 5063, the Z value, to recalculate your offset.
G10 P1 Z[#5223 + #5063]
Variable 5223 should be the Z offset for coordinate system 1.
I've never actually used the probe, but it seems it may do what you need.