Usually this is a mechanical issue.
Note that there is a troubleshooting video: https://youtu.be/tnWFB9iW8Sg?si=5MtGVaj7N-O51_ab
Per the machine operating checklist: Machine Operating Checklist , the basic points of adjustment for a machine are:
- (for belt drive machines) Pulley set screws — verify that these are in-place and secure — be sure to check all axes/pulleys (including Z on machines w/ belt-drive Z-axis, for an HDZ, check both coupler screws).
- (for the SO3/4, X- and Y-axes, and the belt-drive Z-axis on Launch and summer 2016 SO3s) V wheels / eccentric nuts (per assembly instructions)
- (for the Pro, Pro 5, HDM, and Z-Plus and HDZ Z-axis) Lubrication of the linear rails: CNC Machine Maintenance and the video https://youtu.be/SE-36MmjrMQ?si=i3zgKQbyx7VlJMBU
- (for belt drive machines) Belt tension (see the relevant step in your instruction manual, Note that the X-axis motor is held in place on standoffs and if those bolts are loose this can cause belt tension issues. Also, belt tension for the Y-axis stepper motors needs to be even/equivalent on each side — a significant difference can cause skipping on one side eventually resulting in lost steps on both. Measuring belt tension, squaring and calibration
Naturally, this assumes that all the wiring is in good condition and all connectors secure per the Machine Operating Checklist. Verify that all wiring is in good condition and all connectors are secure, and that all wiring leading into connectors are properly in place and are secured so that the wiring leading into and away from connectors will not shift.
A good video overview on setup:
Tramming the Z-Plus: https://youtu.be/rGOGlNurglE
Ensure that all screws are in place and secure, esp. on the linear rails on a Pro.
The best check for a machine is to install a probing pin, power up, jog to the center of all axes, and then grab the tip of the pin and try to shift it in all directions — it should be rock solid — investigate any shifting and address what allows it to occur.