Quote Originally Posted by jolyonjenkins View Post
I think it may have been a lubrication issue, since the axis is now moving freely.

However, I still have a problem. Both the X and Y axes will occasionally miss steps. I can run it overnight and find it still in the right place next morning, or I can leave it for a few hours and find it has shifted 1 or 2 cm. Which is no good.

All the cables to the steppers and from the BOB to the drivers are shielded

The hal and ini files are attached. I didn't change them much from when I was using the Denford drivers (when everything worked fine).

I have tried various microstepping settings since to be honest I don't really understand the issue. The ones that have worked best are 400 pulse/sec, described as 2A and 2B on the drivers.
I don't see much wrong but I would try changing

setp stepgen.0.dirhold 150000 to 35000
setp stepgen.0.dirsetup 150000 to 50000

for all axis.

Also on another note why do you have the Z home at -40

It should be -ve going down and +ve going up .

If you have it like that its fine but it means that when you home the Z it will move down 40mm and if there is something on the bed it could crash.

What voltage are you supplying the drives with and what current setting do you have