Hi everyone
first i want to thank you all for sharing your knowledge and helping newbies like me

my name is John and im from Orlando Florida
i put together a 5 axis cnc machine ,which i originally purchased it from china ,but later i had to replace the break outboard and every single stepper motor and also the power supplies...
i have a very big problem with mach3 ,i dont know if fusion 360 which i get my gcodes , when mach3 working on a gcode ,sometimes it misses and completely mess up the coordinates... it happens when the z axis is stepping down another level... for example if the machine is stepping down 0.1mm each time ,when the entire gcodes of -0.1 ,is completely done ,and (during that many times the z axis goes up and down...) everything is fine ,then suddenly for example ,if the z level is -0.5 and now its going to do the next pass of gcodes with -0.6 ,the coordinate system completely changes ,its like you move the X axis like 10 or 20 mm .... and it starts rest of the program from there... and that of course means complete messing up the work and sometimes the tool breaks... even in the visual toolpath of mach3 ,you can see the new path is being generated in a complete different location.... so this is something even the computer recognize... but i dont know what causes it ... i cant say its because of a gcode or not ,because some of the gcodes which have been running fine , i seen it happens to them...
i am very sorry that i introduce myself like this ,please let me know if i should write this in another topic ,and what should i write the subject to get the best help and of course the next person who may have the same problem ,could find it easier...
sorry again ,and thank you all for help and support ,if you guys want me to give more info ,i will ,i am a newbie... so forgive me if i am short and not explaining well