hexagon logo

Outputing Flatness and Parrellism to file

Hi Everyone

I'm very new to PC-DMis and trying to output some data to a txt file. What I want to do is include the Flatness and Parrellism values of a plane in the file. Here is a sample of the code.


DIM LOC1= LOCATION OF PLANE PLN2 UNITS=MM ,$
GRAPH=OFF TEXT=OFF MULT=100.00 OUTPUT=BOTH
AX MEAS NOMINAL +TOL -TOL DEV OUTTOL
Z 18.496 18.556 0.025 0.025 -0.060 0.035 <-------
END OF DIMENSION LOC1
DIM FLAT1= FLATNESS OF PLANE PLN2 UNITS=MM ,$
GRAPH=OFF TEXT=OFF MULT=100.00 OUTPUT=BOTH
AX MEAS NOMINAL +TOL -TOL DEV OUTTOL
M 0.015 0.000 0.012 0.000 0.015 0.003 ------->
DIM PARL1= PARALLELISM OF PLANE PLN2,RFS TO PLANE PLN3,RFS UNITS=MM ,$
GRAPH=OFF TEXT=OFF MULT=100.00 OUTPUT=BOTH
AX MEAS NOMINAL +TOL -TOL DEV OUTTOL
M 0.030 0.000 0.020 0.000 0.030 0.010 ------->
FPTR =FILE/OPEN,"C:\data.TXT",WRITE
FILE/WRITELINE,FPTR,PLN3.Z
FILE/WRITELINE,FPTR,PLN2.Z
FILE/WRITELINE,FPTR,FLAT1.M
FILE/WRITELINE,FPTR,PARL1.M
FILE/CLOSE,FPTR,KEEP

I am trying to output the Faltness in the line FILE/WRITELINE,FPTR,FLAT1.M and the Parallelism in the the line FILE/WRITELINE,FPTR,PARL1.M but I am just getting 0 for both lines.

I assume that the .M is the problem in both lines.

Would be grateful if anyone could help.

Thankyou

Matt
Parents Reply Children
No Data