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! > Electronics > Stepper Motors and Drives


Stepper Motors and Drives Discuss stepper motors, drivers and related topics here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 12-27-2010, 05:52 AM
 
Join Date: Jun 2007
Location: Denmark
Posts: 81
CNCDevil is on a distinguished road
Stepper gains steps

Hi all.

A couple of days ago when tried to cut a relief in Artcam for the first time, I experienced some problems with the Z-axis. It's not returning to zero.

I pulled the stepper off the Z-axis assembly to do some tests. I wrote some code to make the stepper shift direction around 50 times and noticed that the coupling on the stepper had increased its position in the turning direction with 1/8 of a full turn.

G21
G00 Z0
G00 Z1
...and the code continous like 50 times...
G00 Z0
M30

I can conclude that the stepper is gaining som extra steps everytime it shifts direction. I have tried to change a lot of settings in Mach3 to locate the problem, but nothing helps (Velocity, acceleration, kernel speed...)

Maybe it's a hardware issue, but please guide me in the right direction to whatever the problem could be.


WinXP SP3
Mach 3, 45,000 Hz
Centent CN0162 drive, 10 microsteps
Hobby CNC 425oz/in stepper, bi-polar, 400 steps/rev.


Best regards,

Brian

Happy New Year
Reply With Quote

  #2   Ban this user!
Old 12-27-2010, 02:19 PM
 
Join Date: Apr 2004
Location: Oakland CA USA
Posts: 935
awerby is on a distinguished road
There's a host of things that can cause this

It could be a mechanical problem, like your coupler slipping. If it's the type that depends on a set-screw to hold it in position, that's the first thing I'd suspect (the clamping type is more reliable).

It could be a computer problem - are you trying to run Mach3 off a laptop? (You don't say much about your computer, but that won't work). If nothing else seems to work, you can try optimizing your desktop computer using the instructions on the Machsupport site.

It could be a bad driver, a bad motor, or a faulty cable. Try switching leads around (but make sure everything has shut down before unplugging anything, allowing time for the capacitors to drain), so you are trying the same thing with a different motor, or a different driver. (By the way, I doubt that your motor really takes 400 steps to revolve 360 degrees - that's pretty odd, since just about all of them, including all the ones on the Hobby CNC site, take 200 steps/rev.)

It can also be a motor-tuning issue. You say you've tried everything, but start again and try it some more. Make sure you've got the right steps/unit setting entered: (Screw pitch times motor steps/rev times microstepping factor) Drop back to 25k hz, go for a fairly low velocity like 20 ipm, and a low accelleration like 2. Press the up/down arrow keys and listen to the motor. If it sounds healthy and happy, try a little more speed. Notice when it starts to growl or hesitate, then back off 25% or so and try again. You want to find a sweet spot, where it goes fast, sounds zippy, and doesn't choke. When you get there, derate it about 10% as a safety margin, "Save axis settings" and try your Z-axis test again. It's best to tune your axis when it's assembled, not just on the bench, since motors act differently when they're loaded (don't we all?)...

Let us know if you get this licked, and if so, what the problem turned out to be, okay?

Good Luck;

Andrew Werby
ComputerSculpture.com — Home Page for Discount Hardware & Software





Originally Posted by CNCDevil View Post
Hi all.

A couple of days ago when tried to cut a relief in Artcam for the first time, I experienced some problems with the Z-axis. It's not returning to zero.

I pulled the stepper off the Z-axis assembly to do some tests. I wrote some code to make the stepper shift direction around 50 times and noticed that the coupling on the stepper had increased its position in the turning direction with 1/8 of a full turn.

G21
G00 Z0
G00 Z1
...and the code continous like 50 times...
G00 Z0
M30

I can conclude that the stepper is gaining som extra steps everytime it shifts direction. I have tried to change a lot of settings in Mach3 to locate the problem, but nothing helps (Velocity, acceleration, kernel speed...)

Maybe it's a hardware issue, but please guide me in the right direction to whatever the problem could be.


WinXP SP3
Mach 3, 45,000 Hz
Centent CN0162 drive, 10 microsteps
Hobby CNC 425oz/in stepper, bi-polar, 400 steps/rev.


Best regards,

Brian

Happy New Year
Reply With Quote

  #3  
Old 12-27-2010, 02:23 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,467
ger21 is on a distinguished road
Buy me a Beer?

Cut your accel in half and try it.
__________________
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

  #4   Ban this user!
Old 12-27-2010, 02:32 PM
M250cnc's Avatar  
Join Date: Sep 2007
Location: England
Age: 60
Posts: 359
M250cnc is on a distinguished road

Originally Posted by CNCDevil View Post

I pulled the stepper off the Z-axis assembly to do some tests. I wrote some code to make the stepper shift direction around 50 times and noticed that the coupling on the stepper had increased its position in the turning direction with 1/8 of a full turn.

G21
G00 Z0
G00 Z1
...and the code continous like 50 times...
G00 Z0
M30

I can conclude that the stepper is gaining som extra steps everytime it shifts direction. I have tried to change a lot of settings in Mach3 to locate the problem, but nothing helps (Velocity, acceleration, kernel speed...)

Best regards,

Brian

Happy New Year
Brian under ports & pins motors have you set the axis to be reversed ?

If so reverse the axis under homing/limits & try running your test code again

Phil

Sent from my HTC Desire using Tapatalk
Reply With Quote

  #5   Ban this user!
Old 12-27-2010, 03:48 PM
 
Join Date: Jun 2007
Location: Denmark
Posts: 81
CNCDevil is on a distinguished road

Currently I'm not at the place where my router is, but I will try to answer all your questions from what I have tried to do so far.

I have made sure the coupler is not slipping. If it was slipping, the z-axis should lower itself each time, but it actually rises. That's the way I realized there was a problem. I made the test with the stepper not mounted to the Z-axis.

I'm using an old laptop and I have used it before with a HobbyCNC board and there was no problem at all, but I will try to hook up a desktop to see if it helps.

I will try with another motor and driver. It is 400 steps/rev.
Stepper is 200 steps. 10 microsteps drive. 5 mm pitch/rev. => 200*10/5 = 400 steps/unit
Even if it wasn't correct, I would say that the drive shaft should return to where it was before I ran the Gcode (starting at Z0, ending at Z0), but the shafts position is shifting a fairly constant angle in the same direction everytime I run the code again.

I haven't tried to set it back to 25 kHz, but I have tried to lower the velocity and acceration.
V = 5000mm/min to 1000mm/min
A = 500mm/s/s to 50mm/s/s

Unfortunately it doesn't solve the problem. The motor sounds fine.

I will check out the Ports & Pins configuration and homing/limits.


I have read some other threads about noise causing this to happen, but all my cables are shielded. My power supply (20A) is located just above the drive, so maybe that's the problem.


Thanks for all the answers so far.


Brian
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 12-27-2010, 04:06 PM
 
Join Date: Jul 2005
Location: USA
Posts: 1,879
Torchhead is on a distinguished road

1. Noise tends to be random in nature so will not show up as consistent position shifts.
2. If it only occurs during DIR changes and appears to be the same amount it may have to do with the pulse timing. The Step and Dir have to fall at the right times. We had a problem creep up like this in one of our designs. It was because we were not turning the DIR signals ON/OFF fast enough (opto had too much 'storage' time. It was resolved by adding pullups on the opto transistor sides pulled up to +5 point in reference to the drive forcing the transistor to snap on/off faster. The main symptom was you could see the progression of the position shift by a small amount each direction change. To test we took the motors off, marked the coupler and ran a series of hundreds of back and forth tests. It was predictable in that after 100 moves it was off the same amount each time. That showed it was not noise.
Reply With Quote

  #7   Ban this user!
Old 12-27-2010, 04:25 PM
 
Join Date: Jun 2007
Location: Denmark
Posts: 81
CNCDevil is on a distinguished road

Originally Posted by Torchhead View Post
1. Noise tends to be random in nature so will not show up as consistent position shifts.
2. If it only occurs during DIR changes and appears to be the same amount it may have to do with the pulse timing. The Step and Dir have to fall at the right times. We had a problem creep up like this in one of our designs. It was because we were not turning the DIR signals ON/OFF fast enough (opto had too much 'storage' time. It was resolved by adding pullups on the opto transistor sides pulled up to +5 point in reference to the drive forcing the transistor to snap on/off faster. The main symptom was you could see the progression of the position shift by a small amount each direction change. To test we took the motors off, marked the coupler and ran a series of hundreds of back and forth tests. It was predictable in that after 100 moves it was off the same amount each time. That showed it was not noise.
It sounds much like my problem. I'm not sure that I understand what you are saying. I'm using a BOB with optocouplers. What should I do?


Thanks,

Brian
Reply With Quote

  #8   Ban this user!
Old 12-27-2010, 05:47 PM
M250cnc's Avatar  
Join Date: Sep 2007
Location: England
Age: 60
Posts: 359
M250cnc is on a distinguished road

Originally Posted by CNCDevil View Post
It sounds much like my problem. I'm not sure that I understand what you are saying. I'm using a BOB with optocouplers. What should I do?

Use a bob without optos if your drivers also have optos

Phil

Thanks,

Brian


Sent from my HTC Desire using Tapatalk
Reply With Quote

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Probing for setup and productivity gains 307startup Tormach PCNC 3 11-12-2010 06:10 AM
Gib quality - performance gains flick Tormach PCNC 22 07-06-2010 07:44 PM
Stepper Skipping Steps skartch General Electronics Discussion 2 10-27-2008 05:27 PM
Need Help!- What causes a stepper motor to jump steps erkiwi Stepper Motors and Drives 4 02-20-2008 01:26 PM
Losing X steps, stepper to small?? matth DIY-CNC Router Table Machines 20 09-06-2006 12:48 AM




All times are GMT -5. The time now is 11:29 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