Thank for a very useful reply.
I could just come up with two ideas. But I am not sure if they are right or they work.
To make the problem simplify path can be considered consisting of only right angle turns (no circular motion)
1…
From the measured tool path [time X Y Z]
If some how the “change in directions” (right angle turns) could be detected in all X, Y and Z vectors of measured tool path. Numbers at those points would be then used to generate new command lines of CNC code.
Could it be a way to generate a reliable and comparable CNC code?
2…
If I do not go for comparing CNC code, rather I go for comparing two tool paths (Measures tool path and reference tool paths)
Now reference tool path would be generated from Orignal CNC code by interpolation and splines smoothing in my computer (Matlab).
Now both tool paths can be compared. But I see two problems here.
Reference tool path generated should be very good approximation of the one that Machine controller (simumerik 840D in my machine) do. Any idea how?
To compare both paths may only be possible if I could some how find the corresponding points. Any idea how?
I would be thankful for some further assistance.
Thanks |