Hello Guest it is October 08, 2025, 08:59:15 AM

Author Topic: Mach4 turn. auto update tool offset  (Read 8495 times)

0 Members and 3 Guests are viewing this topic.

Mach4 turn. auto update tool offset
« on: September 22, 2025, 06:21:18 PM »
hi, could do with some help. Been going round in circles for days.

i am trying to get a macro to update the tool offset for the X and Z axis on probe contact.

Basically. Say for the X axis. When the probe hits, it puts the current X axis DRO value in the tool table under the current tool number.
i thought of getting the macro strait from the "set x offset" button. But this does work. The macro works if you just touch the button, bit if you copy and past the script in to a blank macro and save it in the normal way. Then run it from the editor or MDI. it doesn't work. it will only work if you push the button.

any help with this would be a great help.
Re: Mach4 turn. auto update tool offset
« Reply #1 on: September 26, 2025, 05:52:47 PM »
well.... i got it working. on contact, the macro will update the tool offset table. then, getting into it, i found out mach4 doesn't work like mach3 in the tool offset department. so i have gone back to mach3 and done it all in there.