Re: Wandering Y Axis.....
Seen something like this on my own machine. In my case, it was on Z and the more direction changes, the worse it became. It was because the Z stepper driver wiring between the motion controller (integrated with breakout board in my case) and stepper driver had its polarity switched. The stepper driver interprets a level change to generate a step to the motor. If it steps on the wrong pulse edge, you effectively lose one step (microstep, in practice) on every direction change. With only a few direction changes, this might not show up but adaptive clearing generates a lot of direction changes.
Exactly how you fix this will depend on how the breakout board is wired to the stepper driver (in mine, this was a differential connection which has a lot of advantages but is a bit unpredictable from the polarity point of view) but the fix is likely to be as easy as s swapping a couple of wires, or changing the pulse polarity setting on the step port/pin for the Y axis. Can't help directly with that as I do not use UCCNC.
Re: Wandering Y Axis.....
Quote:
Originally Posted by
Neale
Seen something like this on my own machine. In my case, it was on Z and the more direction changes, the worse it became. It was because the Z stepper driver wiring between the motion controller (integrated with breakout board in my case) and stepper driver had its polarity switched. The stepper driver interprets a level change to generate a step to the motor. If it steps on the wrong pulse edge, you effectively lose one step (microstep, in practice) on every direction change. With only a few direction changes, this might not show up but adaptive clearing generates a lot of direction changes.
Exactly how you fix this will depend on how the breakout board is wired to the stepper driver (in mine, this was a differential connection which has a lot of advantages but is a bit unpredictable from the polarity point of view) but the fix is likely to be as easy as s swapping a couple of wires, or changing the pulse polarity setting on the step port/pin for the Y axis. Can't help directly with that as I do not use UCCNC.
Cheers for the help Neale, that sounds very similar to my issue.
Think my wiring would be in a 'single ended'/common anode config at the moment. Whats the benefit to the differential connection?
I know where the pulse polarity setting is so can try to change that later, not sure if i can see why one axis would be different to the other two (if my wiring is correct.......).
Re: Wandering Y Axis.....
Differential wiring, if the hardware allows, is much more noise-resistant, which can help avoid false stepping and other interference issues. In practice, standard single-ended connections usually work OK, but I would always go differential if it's possible. Why the step pulse polarity is different on one axis (if it is...) is a question only you can answer! But more seriously, it's so quick to check that it's worth having a look.
I found this a frustrating fault. I had been using my CNC router very happily with no problem until I did a bit of detailed 3D engraving with it, and found that the cutter slowly seemed to sink further into the work. All the time, Mach3 was recording the correct depth. Obviously, the fault had always been there but with simple profiling cuts where Z is over-depth anyway, a tiny drift was never going to show up but with lots of direction changes, it was a different story. What you have shown looks very familiar but in Y.
Re: Wandering Y Axis.....
Quote:
Originally Posted by
Neale
If it steps on the wrong pulse edge, you effectively lose one step (microstep, in practice) on every direction change.
Just a minor correction. You actually lose 2 steps on the direction change, as the drive first moves one step in the wrong direction, so it takes another second step to get back to where it was before the direction change.
It's also worth noting that some drives (Leadshine in particular) require a relatively long direction setup time, which some controllers might not be able to do.
Re: Wandering Y Axis.....
Quote:
Originally Posted by
Lester
I know where the pulse polarity setting is so can try to change that later, not sure if i can see why one axis would be different to the other two (if my wiring is correct.......).
This is a common issue and happens with lots of drives/controllers and never gets noticed by most as they don't run toolpaths with a high number of direction changes like adaptive or 3D work.
The reason it can be different on one drive to another is often that it's set that way in software at the factor. The polarity switch just flips the state.
There is an easy test just knock up a test file that runs 200 lines of short back n forth G0 moves with last move back to Zero, 10mm is plenty. Then Zero axis and Mark the spot. If all is correct it will return to mark. Do this on all Axis.
Re: Wandering Y Axis.....
Quote:
Originally Posted by
Lester
Was worried I was loosing steps because I was trying to run too quickly approx 2500mm/s rapids (with a 1000mm/s cuttuing speed and a small DOC),
Pretty sure you must mean 2500(mm/min), not (mm/s) if not then that's your problem right there...Lol
Re: Wandering Y Axis.....
Quote:
Originally Posted by
JAZZCNC
Pretty sure you must mean 2500(mm/min), not (mm/s) if not then that's your problem right there...Lol
Whoops, of course.
Ps. To all of you, you absolute legends. Tried jazz's test after adjusting the step polarity. Seemed OK... Attempted the same pocket, absolutely perfect!
Few mins later and we have half a chain adjuster!
Over the moon, cheers guys!
https://uploads.tapatalk-cdn.com/201...07419a5124.jpghttps://uploads.tapatalk-cdn.com/201...7aab3d7e5a.jpg
Sent from my Mi MIX 2 using Tapatalk
Re: Wandering Y Axis.....
Good stuff - nice to know that that was the problem! One of those things that can really worry you but with a trivial fix - once you know what it is... I lost a lot of sleep over that one when it happened to me, until eventually I discovered that the error was exactly equal to the size of one microstep times number of direction changes (I think, with apologies to m_c if my memory is playing tricks - I think I only lost one step per direction change).