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 > Granite Devices


Granite Devices Discuss about servo & stepper drives made by Granevices and get direct support!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 07-20-2010, 03:13 AM
 
Join Date: Jul 2010
Location: UK
Posts: 16
theshed is on a distinguished road
Arc cutting problem

I have completed a retrofit on my cnc lathe junking about 20kg of transistors for a wonderful little dual drive - Everything has gone well even for an idiot like me.

Where I am having some difficulties is with cutting arcs repeatedly in a subroutine using Mach3. After about 30 cuts the tool point has drifted by about 1mm. I have checked and double checked the G code and do not believe that that is the problem. I have done a physical tune up of the lathe adjusting gibs backlash in the drive belts and lubricating everything I can think of. I do not think this is noise because it is repeatable every time (and anyway I followed the instructions on shielding).

I was wondering if the drives were loosing counts. My encoders are 2000 line encoders and I am using 4x multiply.

Could I need to retune the motors after all of my adjustments? Would a minor tuning issue cause position drift?

Can I spy on the encoders with a dual drive or does that only work for the single drive software?

I am very pleased indeed with my drive it was excellent value for money.
Reply With Quote

  #2   Ban this user!
Old 07-20-2010, 09:09 AM
 
Join Date: May 2009
Location: usa
Posts: 159
Montabelli is on a distinguished road

Are you using backlash compensation in Mach3? are you using a counting board like smoothstepper? and one last question, is the drift in one or two axies?

all of the problems I had with Mach 3 and my conversion were attributable to windows counting ability. or perhaps more accurately its interruptibility. since I put on a smoothstepper, I have been able to run at full resolution and have had no more great lurching kachunks from windows getting distracted. I am not however running the dual dc drive.
Reply With Quote

  #3   Ban this user!
Old 07-20-2010, 09:19 AM
 
Join Date: Jul 2010
Location: UK
Posts: 16
theshed is on a distinguished road

Hi,

it drifts on both axis by about 0.8mm in 50 moves. I do not have smoothstepper. I rather suspect it might be tuning - I will have a play this evening.
Reply With Quote

  #4   Ban this user!
Old 07-20-2010, 05:19 PM
 
Join Date: Jul 2010
Location: UK
Posts: 16
theshed is on a distinguished road

I am finding this tuning business tricky! I have 140v SEM servos. Having had a good long play I end up with


P 1650 I 5700 D 3000 on the x axis giving 11 encoder count error and 36ms settling time

P 1850 I 5700 D 3000 on the Z giving 14 count error and 41ms settling time

These figures are much higher than what I used before but with no huge changes.

One worry is using the graph function the current on one axis does not settle on zero - it flatlines just below.

Am I in the ball park?
Reply With Quote

  #5   Ban this user!
Old 07-26-2010, 05:03 AM
Xerxes's Avatar  
Join Date: Sep 2004
Location: Finland
Posts: 1,162
Xerxes is on a distinguished road

Losing of the position with drive could be caused by:
-Interference in step/dir lines. Maybe direction signal is not set early enough before step pulse comes.
-Interference in encoder signal.

Also do you use step multiplier? Have you tried setting it to 1x? Or 4x for example? Does the amount of drifting change when you change multiplier?

It's not probably tuning issue if the Integral gain is high enough which will zero all error eventually. You can try rotating motor shaft by hand and see if it fights back to the original position. The tuning results sound ok to me.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 07-26-2010, 05:52 AM
 
Join Date: Jul 2010
Location: UK
Posts: 16
theshed is on a distinguished road

Hi

What scope is there for adjusting the step/direction signals? I have set the step pulse to 5 microseconds in Mach3. My parallel port cable is quite long (3M or so) but shielded in the usual way.

The encoders are shielded but are close to the DC wiring. However the Z axis wires are only 0.75M and that is the worse axis.

I have also been adjusting the mechanical parts. The Z axis is heavy whereas the X is very light. There might be some friction in the ballnut - could that cause this problem?

This only happens in arcs a test program running 50 rapid square movement showed no position loss at all.

Many thanks
Reply With Quote

  #7   Ban this user!
Old 07-27-2010, 04:45 AM
Xerxes's Avatar  
Join Date: Sep 2004
Location: Finland
Posts: 1,162
Xerxes is on a distinguished road

How long is the "dir pulse" setting in Mach3? Try increasing it anyway to see if it affects. Also please try changing step multiplier from DCtool to see if it has any effect (helps to locate problem).

Friction is no problem.
Reply With Quote

  #8   Ban this user!
Old 08-27-2010, 06:14 AM
 
Join Date: Jul 2010
Location: UK
Posts: 16
theshed is on a distinguished road

Hi

Sorry I have been on holiday - I have changed the DIR and step pulse without any noticeable change. I have changed the multiplier from 4x to 8x and 16x all no real change.

I am beginning to suspect my computer. The longer the program the greater the error so the problem is linked to time. The computer is elderly, slow and has not got much memory - it also has an onboard graphics card.

I will upgrade the memory and see what difference that makes.

thanks for all the help so far

John
Reply With Quote

  #9   Ban this user!
Old 09-06-2010, 04:54 AM
Xerxes's Avatar  
Join Date: Sep 2004
Location: Finland
Posts: 1,162
Xerxes is on a distinguished road

Hi John,

If you changed the multiplier from drive and it drifts still same amount, then the problem may be caused by lost encoder counts (but could be also some PC problem, though).

You may try disconnecting motors cables of all but one axis of machine and then try if the drifting still occurs. If it stops drifting, it would mean that problem is electrical interference. Also the fact that running square moves doesn't drift supports the interference theory (only one motor active at a time).

Detailed photos of cabling & machine may be helpful for me to see if there's some apparent problem.
Reply With Quote

  #10   Ban this user!
Old 09-07-2010, 02:27 AM
 
Join Date: Jul 2010
Location: UK
Posts: 16
theshed is on a distinguished road

I think I have been stupid.....I had bought and fitted encoders with A+ A- B+ B- outputs but assumed for reasons I cannot now recall that these were single ended - following the instructions (for once) I used only the A+ and B+ connections. The cables are well shielded but do run close to unshielded motor cables at 100v. Am I right in thinking that if I have A- and B- outputs I must have a differential encoder? I take it that might help prevent encoder counts loss? Before you tell me I will also try and shield the DC motor cables...
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 09-08-2010, 04:25 AM
Xerxes's Avatar  
Join Date: Sep 2004
Location: Finland
Posts: 1,162
Xerxes is on a distinguished road

Yes, leave A- and B- unconnected if you have single ended encoder. Unshielded motor cable and floating motor case are the major sources of interference, so shielded cable is a good idea.
Reply With Quote

  #12   Ban this user!
Old 09-20-2010, 10:08 AM
 
Join Date: Jul 2010
Location: UK
Posts: 16
theshed is on a distinguished road

I have still not solved this one. Many thanks for your help so far. The symptoms remain the same. A regular and repeatable error whenever I run a program where 2 axis move at once. No error when the program is one axis at a time.

My PC is elderly 950Mhz PIII 256MB Ram running windows 2000. Mach3 set to 25,000Hz - any higher and life slows up.

Servos are SEM 140v brushed DC.

PSU is 100v DC

Separate PSU for logic. All limits and e-stop are mechanical relays with 24v coils.

I think I have eliminated velocity and acceleration settings - the slower the speed and the longer the program the worse the error.

I have had a real go at reducing noise. Encoders are differential and high quality with shielded cable - shield connected to earth (frame ground) at drive end. Motor cables now replaced with good quality shielded cable connected to frame ground.

100v PSU is just 15cm from the drive the DC cables are twisted.

Whilst rewiring the motors I reversed two wires - I switched the encoder to suit - the error in turn swopped from positive to negative on that axis - this must be significant but I can't work it out.

I am very happy with the motor tuning - the motors run quietly with no dithering.

Servos are fitted with high quality industrial encoders with 2000 lines. Multiplier is set to 4 but I have tried 8 and 16 - no difference.

I have varied step and direction pulse from 1 - 5 - 15 and back again with no real difference.

I have switched of cv mode and gone for exact stop - no difference

I have on direction pin on active high and one on active low - could that be it?

I guess noise is the most likely culprit - the axis are talking to each other - where should I look next?

I will try and borrow a more modern computer so I can rule that out but that will take some time.

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
xy cutting problem melzer Fadal 17 08-25-2010 08:27 AM
Newbie- Problem with cutting plastic mahmoudtsh WoodWorking 3 03-19-2009 02:11 PM
Problem with 3d paths for cutting vinot Composites, Exotic Metals etc 6 11-30-2008 09:44 PM
Newbie- Thread cutting problem wab0372 Hand Tooling 4 07-21-2008 11:20 PM
Problem cutting arc with lathe. mudwhump G-Code Programing 9 05-23-2004 12:19 PM




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