LOL - no worries - hopefully you'll make some progress.
You'll probably know enough about my attitude to software by now to know why I can't let this one go without comment:
this should put my system perfectly in line with Hood's proven working version
Working - yes - proven - no. It works for Hood on Hood's system - but I've been around Mach3 long enough to know it WILL fail on SOME other systems.
One suspect area is this:
Code "G90" & "G10" & "L1" & "P" & Tool &"Z" & Offset
DoOemButton(121)
You hopefully know enough by now about what the "code" call actually does to know why this can fail.
Does it matter? Not to Hood and not to me - might do to someone who comes across this thread sometime and copies it though.