SUre,
If Isactive(input1) then
Open "M:\digitize\currentproject.txt" For Append As #1
X = GetDRO(170)
Y = GetDRO(171)
Z = GetDRO(172)
Print #1, X,",",Y,",", Z
Close #1
End If
End
But there MAY be an easier way, Let me check back through some notes when I was working on a MACH3 CMM Machine. What I did was use the M40 function to open the Points FIle and then use a G31 call to nowhere to force MAch3 to write the point values to the file for me. Then move to where ever is next and make the call again. It worked well back then just not sure of the call I created .
(;-) TP