Dear All Hello
I made my own homemade 5 axis cnc. But I need help.
I create a tool path in solid cam successfully as you can see at the photo1.

But as you can see at the next photo toolpath looks wrong in Mach3.

I attach the Gcode file that you can see and test.
Mach3 also gives "Cannot use two g codes that both use axis values , Block = N21478 G00 G28 G91 Z0." error at the lines below
N21478 G00 G28 G91 Z0.
N21480 G00 G28 G91 X0. Y0.

What can be the reason and How can I fix those problems?
Best regards everyone