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 > Gecko Drives


Gecko Drives Discuss all Gecko drives here and get direct support!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-24-2004, 11:12 PM
*Registered*
 
Join Date: Jul 2003
Location: longmont, CO
Posts: 67
Noah is on a distinguished road
Steps per inch formula, What I am doing wrong?

I am trying to determine my steps per inch for servos with a 1024 ppr encoder, but my calculation seems to be off. The screw has a 13/64" lead and I have the motors geared down using 32 and 20 tooth pulleys. I was using this...

1 inch /((1/ppr encoder count)*(Motor Pullet Tooth Count/ Ballscwew Pulley Count)*(Screw Lead)

Is this wrong? The software is Mach 1. One thing I am uncertain of. I am assuming G320's will count 1024 steps from the pulse source as one rotation of the motor, right?
Tweet this Post!Share on Facebook
Reply With Quote

  #2  
Old 05-24-2004, 11:45 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,823
HuFlungDung is on a distinguished road

Thread lead is 13/64 = .203125

1024 / .203125 = 5041.2307 pulse per inch at one to one ratio

But, at 20/32 ratio

5041.2307 / 20/32 = 8065.9689 p/inch

Question: are you sure about this lead? It wouldn't be a metric screw would it? 5mm = .19685 inch

BTW, if the controller reads the encoder as a quadrature encoder, you will know because the movements will be out by a factor of 4.
__________________
First you get good, then you get fast. Then grouchiness sets in.

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

Last edited by HuFlungDung; 05-24-2004 at 11:52 PM.
Tweet this Post!Share on Facebook
Reply With Quote

  #3  
Old 05-25-2004, 12:18 AM
*Registered*
 
Join Date: Jul 2003
Location: longmont, CO
Posts: 67
Noah is on a distinguished road

Ah, thats probably it. Quadrature encoder, forgot about that. I think I am off by a factor of four. I will have to check that. Screw lead is actually 13/64". Did not believe it myself till I took it off their website.
Tweet this Post!Share on Facebook
Reply With Quote

  #4  
Old 05-25-2004, 12:19 AM
*Registered*
 
Join Date: Jul 2003
Location: longmont, CO
Posts: 67
Noah is on a distinguished road

Thats the same number I got by the way so at least I know I don't have to go back 2nd grade.
Tweet this Post!Share on Facebook
Reply With Quote

  #5  
Old 05-26-2004, 03:57 PM
*Registered*
 
Join Date: Jul 2003
Location: longmont, CO
Posts: 67
Noah is on a distinguished road

Yup, it was the quadrature encoder. I will remember that.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 05-26-2004, 04:30 PM
balsaman's Avatar  
Join Date: Mar 2003
Location: Canada
Posts: 2,139
balsaman is on a distinguished road

1024 count encoders may limit your max speed because you need 4096 steps per revolution. That is a lot. You may want to go down to 250 or 300 count encoders for gecko 320 drives. gecko also sells the 340 which is made to hook to high count encoders.

Eric
__________________
I wish it wouldn't crash.
Tweet this Post!Share on Facebook
Reply With Quote

  #7  
Old 05-26-2004, 05:44 PM
*Registered*
 
Join Date: Jul 2003
Location: longmont, CO
Posts: 67
Noah is on a distinguished road

Yeah, I might do that later on. I am thoroughly enjoying this ultra high resolution though. The machine is certainly not unbearably slow, I would say 50-75 IPM rapids; Obviously I would prefer 200-300, but I can live with 75. I know Mach 2 is supposed to have a much higher maximum pulse rate. Do you know what that is? One other question. I bought a very fast PC with a nice 17" LCD as my CNC computer because I wanted to be able to surf the web, play games, listen to music, and watch movies while the machine ran. It seems though that Mach 1 is very picky about what programs it will let run in the background though. I can't seem to get WMP 9 running with Mach 1 and I am trying to locate a compatible DVD player with Mach 1. Any ideas? I have not tried Mach 2 yet. Is it any more compatible?
Tweet this Post!Share on Facebook
Reply With Quote

  #8  
Old 05-26-2004, 07:31 PM
*Registered*
 
Join Date: Apr 2004
Location: Norway
Posts: 678
ESjaavik is on a distinguished road

Mach2 and any other program that runs a CNC machine really needs the full attention of the PC. One job is run in realtime, the one that sends out step and direction pulses. But this job is dependent on the non-realtime task feeding it with data. If another realtime task (like playing music or video) is competing with Mach2, it is not easy to say which of these will win if both needs the CPU at the same time. This probably was never tested as it is not a common scenario. It is also not easy to tell if the Mach2 non-realtime task will get enough CPU time to calculate all the trajectory data in time when it's needed. Windows have no mechanism for setting up task priorities and preempting less important tasks.

So to be on the safe side, let Mach2 be the one and only job run by the PC when running the CNC machine. This is valid for any program doing a job like this, Mach2 is just mentioned because it seems that is what you are using. And if you run into trouble and need to call on Mach2 support, make sure you tell him what other tasks you were running at the same time.

I am in no way affiliated with Mach2 or Artsoft, I write this based on 20 years of experience working with realtime system support.
Tweet this Post!Share on Facebook
Reply With Quote

  #9  
Old 05-26-2004, 07:45 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,823
HuFlungDung is on a distinguished road

That is good advice, ESjaavik.

I still think that an "outdated PC" is plenty good enough for a cnc controller. Say a P500 or so is lots of computer for the task. Maybe not, if running a full software servo loop on High speed machining applications, but I don't see many guys trying to do that around here.

Keep the high powered PC for your CAD programs, and games, music, etc.
__________________
First you get good, then you get fast. Then grouchiness sets in.

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

  #10  
Old 05-26-2004, 08:20 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 19,570
ger21 is on a distinguished road
Buy me a Beer?

You have to remember Hu, that Mach2 is generating the step and direction pulses in software, not through a PCI or external hardware generator. And, it runs in Windows. I've heard that a 500 is about the minimum to run Mach2, and I'm not sure if a 500 is fast enough to use Mach2's 46khz step rate. You might be limited to around 25khz.
__________________
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)
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11  
Old 05-26-2004, 10:42 PM
*Registered*
 
Join Date: Jul 2003
Location: longmont, CO
Posts: 67
Noah is on a distinguished road

I think you guys hold mach 1 mill in a bit too high of respect. Windows is quite capable of dealing with this sort of thing. How is blasting 1.5 Mb/s through a firewire port, getting pics from a USB digital camera, watching a movie, and simultaneously surfing the web any different from pulsing 25 kHz to a parallel port? I am not familiar with just how mach 1 gets rights to the parallel port during these operations, but I don't think it is that different from a basic printing program. While I have had problems with music and DVD's, I have been able to play games and surf the web while my mill is cutting no with no problems.
Tweet this Post!Share on Facebook
Reply With Quote

  #12   Ban this user!
Old 05-27-2004, 08:53 AM
 
Join Date: Apr 2003
Location: UK
Posts: 1,080
kong is on a distinguished road

Noah, the firewire/usb example can withstand a break in data transfer of a few tenths of a second I am sure, plus the pc can read what it has written to the camera/card to verify the integrity of the data. You don't that luxury with cnc. A break in data transfer can cause stuttering of the tool, which can lead to ruined work. This is why Mach2 excells, as it has a higher priority than almost all windows drivers/apps if it wants to send a pulse to the parrallel port, it is sent instantly, not queued. Hope this helps
Tweet this Post!Share on Facebook
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
units per inch math gearcut Mechanical Calculations/Engineering Design 4 05-29-2005 02:02 PM
need help fet3 driver motor is choppy and slow at low steps per inch mike10 Stepper Motors and Drives 7 01-02-2005 03:41 PM
DRO - Metric or Inch DJ Morrow General Electronics Discussion 2 11-15-2004 03:06 PM
Turns per inch to metric conversion sixpence DIY-CNC Router Table Machines 1 08-28-2004 03:19 AM
Lost Steps How does it Happen? High Seas General Electronics Discussion 1 01-30-2004 09:57 PM




All times are GMT -5. The time now is 10:52 PM.





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