This piece of script will cause MAch3 to write the trip values each time it is activated AND the points file is OPEN. NOW this works on older version of MACH3 NEWER versions

?
Call the M40, assign a file name
Create a button script with this:
Code"G91 G31A0.1 F1000"
Code"G00 A-0.1"
Code"G90"
End
MOVE to a pos and push the button MAch3 will write the triplet fileXYZ to the file
MOVE and press button ,etc,etc,etc
(;-) TP