417
« on: January 26, 2022, 05:36:56 AM »
Hmmm. Well for several reasons I don't think the use model is very good for this. So you have to first manually touch the setter to the end of the tool, then get it in position, hoping that the macro gives you enough time. So the tool has to be high enough to get the setter underneath, then it moves down quite fast so you aren't waiting all day. For an ordinary end mill that could work, but for a fine point engraving cutter you have two hazards - when you touch the plate to the point and when the point hits the plate on the probing move.
I have an alternative macro, which is really just a copy of one I found on here, that works well and is triggered by pressing Auto Tool Zero on the Mach run screen. My "touch plate" is an isolated spring-loaded button at a known height above the table mounted in a block with a magnet on the bottom that sticks it to the table. The working macro is on the shop PC so I'll have to search for it but will send you a copy. It has similarities but differences to the code you posted. In use I jog the tool just above the centre of the button using an XBox controller, hit the Auto button, the tool moves down rather slowly until it touches, then lifts a little bit, probes down much more slowly until it touches again, sets the Z DRO to the actual setter height, and moves up to Z=50mm.