Thank you all for your reply.
I attach here the xml.
I'm using a modified screenset from Franco CNC on youtube:
https://youtu.be/0R2JI__YhF4I ran the drivertest.exe program, and the result is very good, 25065 pulses, I attach a screenshot. Moving the mouse is ok, nothing strange happens.
The version I'm using is R3.043.062
I tried the threading wizard, in G76 and also in G32, and I tried also with a CAM postprocessor, the gcode is also in G32, but nothing changes, the problem is the same.
The stepper drivers aren't the TB6600, at this moment I don't remember exactly the model, but they are the standard black chinese drivers for Nema 34, I think DM856 or similar, I will confirm tomorrow.
Thank you for your time.
Christian