Generating a CNC from measured 3D tool path
I want to generate a CNC code from the measured tool path. The tool path is generated by taking the measure from three encoders mounted in 3-axes milling machine. Measurement is saved in a Desktop PC for an offline analysis.
The tool path looks like this:
Path_Matrix =
Time X1 Y1 Z1
0.01 0.001 0 0.001
0.02 0.002 0 0.004
0.03 0.003 0 0.008
0.04 0.004 0 0.012
0.05 0.005 0 0.018
0.06 0.006 0 0.018
.
.
.
.
1.2 10.00 6.00 0.018 (may be upto 100000 rows)
Now, I want to generate the reference CNC code (originally used for the process) from this measured tool path. This generated CNC code later can be then compared with original CNC code.
How I can do this ? (Generating a CNC from measured 3D tool path)
Any software functions, resources, web links, literature or personal help could be really helpful to me.
I use Matlab but functions in other languages could also be possible to use.
Thanks
Sma