CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > WoodWorking Machines > DIY-CNC Router Table Machines


DIY-CNC Router Table Machines Discuss the building of home-made CNC Router tables here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 07-08-2010, 02:36 PM
 
Join Date: Jul 2010
Location: US
Posts: 4
bbristow is on a distinguished road
Z Axis Drift......

Please HELP! I am pulling my hair out…
I have been having this problem now for a while, but have been able to avoid it until now. It seems that my Z-Axis is drifting or loosing steps. What makes it more difficult to figure out is that it seems to be a math error of some kind as the results I can duplicate accurately.

I am thinking this is a Mach 3 issue since I can duplicate the results.

Here is an example…. I am cutting a 3d part, I can let it cut the file out and when it is finished, it thinks the z axis is at 0.0, when it is actually at 0.25. I can cut the part again after re-zeroing it and I end up at pretty much the same offset. I am doing parallel finishing; I can see the bit is gradually and smoothly cutting lower and lower. There is no big jump; it just seems to smoothly drift.
I can also zero the machine and toggle the head up and down about 15-20 times and will check zero and it will be off again. I can do this at any speed setting and I let it completely stop before changing direction and I still produce the same results.
This is what I have tried so far with no change….
Tried changing frequencies to 3 or 4 different settings.
Tried the shirline ½ step mode.
Tried setting the pulses under motor tuning to 5, then to 15, then to 20.
Tried changing the number of pulses per inch from 3200 (Setting I was running at) to 2000, to 1600, to 1000 and I still see the same results.

I am running the Joes 4x4 hybrid machine. You can see it here
http://www.saberfire.com/gallery/Projects/CNCMachine/

I am Running Mach 3 with the Hobby CNC Pro kit with the 305/oz motors. I have the jumpers set to quarter step.
I am not sure what else to do here?

Thanks,
Bobby
Reply With Quote

  #2   Ban this user!
Old 07-08-2010, 02:53 PM
 
Join Date: Jan 2008
Location: canada
Posts: 572
PaulRowntree is on a distinguished road

Could the Z drive electronics be picking up spurious pulses ?

Does the Z drift when you are not activating the Z motion, (ie just moving in the XY plane)?

Does the Z drift when you are not activating any motion (not X, nor Y nor Z) ?

Does it drift if the Z motor is unplugged (ie an air carving?)

Could it be an accidental short between the PP and drive components?

If it is not electronic, perhaps it is mechanical : Does it drift if the Z motor is unplugged (ie doing an air carving?)

Good luck!
Reply With Quote

  #3   Ban this user!
Old 07-08-2010, 03:18 PM
 
Join Date: Jul 2010
Location: US
Posts: 4
bbristow is on a distinguished road

-Could the Z drive electronics be picking up spurious pulses ?

-Does the Z drift when you are not activating the Z motion, (ie just moving in the XY plane)?

Yes. It can be off just by moving the head up and down as little as 10-20 times an any speed by itself. It is always off by the same amout. i.e. If I move the head up and down 20 times, 2 inches up, 2 inches down, it will be off .035 (not auctual number, I forgot since I ran the test). When I do the same test I will end up with the same results. If I cut a part out and zero after every part, all the parts will be identical with the exact same slow z cutting further and further into each part.


- Does the Z drift when you are not activating any motion (not X, nor Y nor Z) ?

No, it holds it position without any problem when just sitting.

- Does it drift if the Z motor is unplugged (ie an air carving?)

Yes it does.

- Could it be an accidental short between the PP and drive components?

- If it is not electronic, perhaps it is mechanical : Does it drift if the Z motor is unplugged (ie doing an air carving?)

Nope. It holds it poisition just fine.

Thank you for your help!
Reply With Quote

  #4   Ban this user!
Old 07-08-2010, 03:42 PM
 
Join Date: Jan 2008
Location: canada
Posts: 572
PaulRowntree is on a distinguished road

I don't quite follow : you say that it drifts in Z when the Z motor is unplugged, then you say it is holding position just fine.

What about the test where you hold Z constant and move in the XY plane?

BTW : I am very impressed by your build documentation and the final machine. I should be so lucky ...

Cheers!
Reply With Quote

  #5   Ban this user!
Old 07-08-2010, 03:44 PM
 
Join Date: Apr 2004
Location: Oakland CA USA
Posts: 933
awerby is on a distinguished road
If it's a math error, the z should come back to zero

Originally Posted by bbristow View Post
Please HELP! I am pulling my hair out…
I have been having this problem now for a while, but have been able to avoid it until now. It seems that my Z-Axis is drifting or loosing steps. What makes it more difficult to figure out is that it seems to be a math error of some kind as the results I can duplicate accurately.

[If it's a math error, the z should come back to zero, when you give it a MDI move: G00Z0. Does that happen? Lost steps are pretty random; you won't see the axis end up in the same place twice. If it does go back to the zero-point you started from, then you need to check the steps/unit setting for Z - even a small error will accumulate. The math works like this: multiplying the steps for a full revolution of the motor (usually 200) times the micro-stepping factor (4) times the pitch of your screw in threads/inch or gearing (?) equals the number of microsteps it takes for the axis to move one inch.]

I am thinking this is a Mach 3 issue since I can duplicate the results.

Here is an example…. I am cutting a 3d part, I can let it cut the file out and when it is finished, it thinks the z axis is at 0.0, when it is actually at 0.25. I can cut the part again after re-zeroing it and I end up at pretty much the same offset. I am doing parallel finishing; I can see the bit is gradually and smoothly cutting lower and lower. There is no big jump; it just seems to smoothly drift.

[If it's at .25 above the part when it thinks it's at 0, it's drifting upwards, not downwards. This can happen if it loses steps while plunging - are you sure you're using a center-cutting endmill? If not, that would account for this, since it would be hitting a lot of resistance on each plunge. But if it's really drifting lower, then it's something else. Did you mean to write -.25? ]

I can also zero the machine and toggle the head up and down about 15-20 times and will check zero and it will be off again. I can do this at any speed setting and I let it completely stop before changing direction and I still produce the same results.
This is what I have tried so far with no change….
Tried changing frequencies to 3 or 4 different settings.
Tried the shirline ½ step mode.
Tried setting the pulses under motor tuning to 5, then to 15, then to 20.
Tried changing the number of pulses per inch from 3200 (Setting I was running at) to 2000, to 1600, to 1000 and I still see the same results.

[You might be setting your velocity and accelleration too high. Due to the loads on them, Z axes typically need lower settings than the other axes. Go back to the original default frequency and pulse settings (or ones that seem to work on your other axes) and, in config/motor tuning, lower both the velocity and accelleration values for Z by about a third. Check to see the motor runs smoothly by pressing the up/down arrows on your keyboard. If so, click "save axis settings", and try jogging the Z axis up and down in the manner that produced the lost steps before.]

I am running the Joes 4x4 hybrid machine. You can see it here
http://www.saberfire.com/gallery/Projects/CNCMachine/

I am Running Mach 3 with the Hobby CNC Pro kit with the 305/oz motors. I have the jumpers set to quarter step.
I am not sure what else to do here?

Thanks,
Bobby
[That's a pretty nice-looking machine you built! Another thing to try is to swap the motor leads from the axis that's misbehaving to one that works okay. Make sure you've turned everything off first and given the capacitors time to discharge. See if the error follows along. If that's the case, then it's probably a problem somewhere in that drive circuit. If the error stays with the Z-axis, look for bad settings, a fried motor, or a mechanical problem. Sometimes a loose coupling will mimic a lost step error, only letting go when turned in one direction.]

Let us know how it goes, okay?

Andrew Werby
www.computersculpture.com
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 07-08-2010, 03:47 PM
 
Join Date: Jul 2010
Location: US
Posts: 4
bbristow is on a distinguished road

- I don't quite follow : you say that it drifts in Z when the Z motor is unplugged, then you say it is holding position just fine.

Sorry, I thought you meant the auctual router being unplugged. If the z axis is not told to move, it is very ridged and does not loose height.

- What about the test where you hold Z constant and move in the XY plane?

Z is held just find with no movement.

- BTW : I am very impressed by your build documentation and the final machine. I should be so lucky ...

Thanks! I worked very hard on it.
Reply With Quote

  #7   Ban this user!
Old 07-08-2010, 03:59 PM
 
Join Date: Jul 2010
Location: US
Posts: 4
bbristow is on a distinguished road

[If it's a math error, the z should come back to zero, when you give it a MDI move: G00Z0. Does that happen? Lost steps are pretty random; you won't see the axis end up in the same place twice. If it does go back to the zero-point you started from, then you need to check the steps/unit setting for Z - even a small error will accumulate. The math works like this: multiplying the steps for a full revolution of the motor (usually 200) times the micro-stepping factor (4) times the pitch of your screw in threads/inch or gearing (?) equals the number of microsteps it takes for the axis to move one inch.]

[If it's at .25 above the part when it thinks it's at 0, it's drifting upwards, not downwards. This can happen if it loses steps while plunging - are you sure you're using a center-cutting endmill? If not, that would account for this, since it would be hitting a lot of resistance on each plunge. But if it's really drifting lower, then it's something else. Did you mean to write -.25? ]

Sorry, I was confused what to call it hear, since the end result is that it is auctually cutting lower and lower.

[You might be setting your velocity and accelleration too high. Due to the loads on them, Z axes typically need lower settings than the other axes. Go back to the original default frequency and pulse settings (or ones that seem to work on your other axes) and, in config/motor tuning, lower both the velocity and accelleration values for Z by about a third. Check to see the motor runs smoothly by pressing the up/down arrows on your keyboard. If so, click "save axis settings", and try jogging the Z axis up and down in the manner that produced the lost steps before.]

If I toggle the head up and down about 15-20 times and will check zero and it will be off again. I can do this at any speed setting and velocity setting. I let it completely stop before changing direction and I still produce the same results.


[That's a pretty nice-looking machine you built! Another thing to try is to swap the motor leads from the axis that's misbehaving to one that works okay. Make sure you've turned everything off first and given the capacitors time to discharge. See if the error follows along. If that's the case, then it's probably a problem somewhere in that drive circuit. If the error stays with the Z-axis, look for bad settings, a fried motor, or a mechanical problem. Sometimes a loose coupling will mimic a lost step error, only letting go when turned in one direction.]

I will try this....
Reply With Quote

  #8   Ban this user!
Old 07-09-2010, 08:35 AM
jsheerin's Avatar  
Join Date: Aug 2008
Location: US
Posts: 1,132
jsheerin is on a distinguished road

If swapping the z motor to another driver doesn't produce any results, then:

What is your acceleration setting in the mach 3 motor tuning screen for the Z axis?

What is the range of speeds you've been testing at?
Reply With Quote

  #9   Ban this user!
Old 07-09-2010, 09:44 AM
 
Join Date: Jan 2006
Location: USA
Age: 45
Posts: 605
stevespo is on a distinguished road

What type of screws/nuts are you using? Have you measured the backlash on the Z with a dial indicator? This procedure has been documented pretty well and amounts to moving the axis a defined amount and then actually measuring it to make sure that the values agree.

Does .01" really equal .01"? Is it the same in each direction? If not, you can enable backlash compensation in Mach and it should help.

At one point my Z was "drifting" downward and it was due to my Xylotex experiencing "thermal shutdowns" due to overheating. It would tend to (occasionally) lose a step when it was lifting the Z. I can see you have a nice enclosure with plenty of fans, so this seems unlikely - but I thought I would mention it.

Are your driver chips warm to the touch? Is there a heat sink attached? In some cases, if the motor/driver is stressed on the Z, a counterbalance might help as well.

Last thought. The 800Mhz dual CPU PIII might be another issue. I thought I read that Mach had issues with dual CPU machines. Can you disable one CPU in the BIOS? That machine can probably sustain a 25KHz kernel speed, but I found that my own 800Mhz PIII had timing issues at high feedrates. It was sensitive because there was so few CPU cycles to spare.

Could also be a flakey pin on the parallel port. I've been down that road as well. So you might try swapping leads if you haven't already. Do you have a decent breakout board with opto-isolation and filtering?

Just something to consider (try another computer) if everything else leads to a dead end.

Anyway, great looking build!

Steve
Reply With Quote

  #10  
Old 07-10-2010, 06:56 AM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,445
ger21 is on a distinguished road
Buy me a Beer?

Loss of Z position is frequently due to the acceleration being set to high. Cut it in half and try that.

Also, why is your machine so tall? It seems like it would be difficult to load at that height?
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

Sponsored Links
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help!- X, Y and Z Axis drift from Zero while running ATRepair DIY-CNC Router Table Machines 29 07-08-2010 03:56 PM
Y axis strange drift daanmuller Taig Mills & Lathes 2 03-18-2009 02:48 PM
Compensation for axis drift? justrack LinuxCNC (formerly EMC2) 2 12-11-2008 05:05 PM
V2XT Y axis drift Spin Bridgeport and Hardinge Mills 2 12-23-2006 03:37 PM
Z axis drift IainLGrant Benchtop Machines 1 03-12-2006 07:56 AM




All times are GMT -5. The time now is 02:20 AM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361