Thanks for your reply.
My model is very simple (100x100x30mm), and my program includes 30 commandlines. I don't know how to use C++ . I am trying make small program after reading Help.
Sub Main ()
Open "c:\TESTFILE.txt" For Output As #1 ' Open to write file.
While IsMoving ()
x = GetOEMDRO (800)
y = GetOEMDRO (801)
z = GetOEMDRO (802)
Write #1, x , y, z
Wend
Close #1
End Sub
And i received x,y,z coordinates but they are repeated many times.
60.263,-66.377,-1
60.263,-66.377,-1
60.263,-66.377,-1
60.263,-66.377,-1
60.263,-66.377,-1
....,....,....
60.064,-66.445,-1
60.064,-66.445,-1
60.064,-66.445,-1
60.064,-66.445,-1
60.064,-66.445,-1
...,....,....
59.856,-66.516,-1
59.856,-66.516,-1
59.856,-66.516,-1
59.856,-66.516,-1
59.856,-66.516,-1
................
Could you help me?