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 > General Electronics Discussion


General Electronics Discussion Discuss basic electronics, power supplies and anything else electronic related here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 04-06-2004, 01:10 AM
rimcanyon's Avatar  
Join Date: Mar 2004
Location: Salinas, CA
Posts: 14
rimcanyon is on a distinguished road
interpolation

Hi, I'm still a beginner, same as last week, but I've moved on from trying to figure out what the SloSyn single axis controllers were capable of to a more general question: how do current controllers handle interpolation?

e.g. how does a command like this:

G02 X1.8206 Y.5364 R18.7759

get executed in the case of dual controllers, one per axis? If there are as many answers as there are controllers capable of interpolated motion, then the next question would be, what works best and why?

-Dave
Reply With Quote

  #2  
Old 04-06-2004, 08:56 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,454
ger21 is on a distinguished road
Buy me a Beer?

Most people here use systems with a software controller capable of handling multiple simultaneous axis moves. For example, use Mach2 ( http://www.artofcnc.ca ) , load in your g-code file, and Mach2 will output step and direction signals for up to 6 axis of movement. Each motor has a driver, one example of which would be the Gecko ( http://www.geckodrive.com ) which takes these step and direction signals and supplies current to the motors. To use your single axis controller, you'd need software to interpret the g-code, do the interpolation, and send that info to each controller. I doubt if this software exists.

The easiest thing to do would be to use either Mach2 or TurboCNC, and get some drivers that take step and direction signals to run your motors. Any other way is much more complicated, and you'd be pretty much on your own, in my opinion.
__________________
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

  #3   Ban this user!
Old 04-07-2004, 01:04 AM
rimcanyon's Avatar  
Join Date: Mar 2004
Location: Salinas, CA
Posts: 14
rimcanyon is on a distinguished road

Ger21, thanks for the explanation. What are the step and direction signals like that go to the motor driver? Are they also G codes, or are they standardized in some other way, so that Mach2 is capable of talking to any brand of driver that follows the standard?

-Dave
Reply With Quote

  #4   Ban this user!
Old 04-07-2004, 02:11 AM
abasir's Avatar  
Join Date: Apr 2003
Location: Malaysia
Posts: 361
abasir is on a distinguished road

Dave,
The step/dir signal are electrical signals from your controller (PC+software in most cases) to your driver (which control your motor). For every transition of the step signal (eg. 0 to 5V), the driver will move the motor one step. The direction, either clockwise or anti-clockwise, will depend on the DIR signal. For every axis, there will be one pair of STEP/DIR signal.
__________________
Stupid questions make me smarter...
See how smart I've become at www.9w2bsr.com ;-P
Reply With Quote

  #5   Ban this user!
Old 04-07-2004, 07:25 PM
rimcanyon's Avatar  
Join Date: Mar 2004
Location: Salinas, CA
Posts: 14
rimcanyon is on a distinguished road

OK, thanks everyone. I guess that the capability for CAD/CAM to talk to multiple controllers and keep them synchronized is not common if it exists at all.

I'll look more closely at the parallel port capabilities of the SloSyn controller; perhaps it can be used as a simple driver only.

How do half-steps or fractional steps get signalled to the driver?

-Dave
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 04-07-2004, 07:51 PM
abasir's Avatar  
Join Date: Apr 2003
Location: Malaysia
Posts: 361
abasir is on a distinguished road

CAM ability to synchronise multiple axis is VERY common. TurboCNC can sync upto 8 axis!

For half/fractional steps, the CAM software will still send a single STEP/DIR signal to the driver. The driver will move the motor half/fractional step as required. In setting up the CAM, you would configure it to say that the driver is half/fractional driver and the CAM will send the needed number of steps, i.e., if the driver is set to half step, set the CAM to half-step as well, then the CAM will send two step/dir signal to make a full step. Make sense?
__________________
Stupid questions make me smarter...
See how smart I've become at www.9w2bsr.com ;-P
Reply With Quote

  #7   Ban this user!
Old 04-07-2004, 08:51 PM
rimcanyon's Avatar  
Join Date: Mar 2004
Location: Salinas, CA
Posts: 14
rimcanyon is on a distinguished road

i.e. CAD/CAM synchronizes multiple axis systems from a single point of control.

I work on distributed systems that synchronize state and have multiple points of control, so I was looking at those SloSyn controllers with daisy-chained rs-232, and thinking, this is a distributed system. And it could be. What is missing is a way to extract the CAD/CAM commands that require interpolation and re-interpret them for each controller, then synchronize the motion in small increments...

Dave
Reply With Quote

  #8  
Old 04-07-2004, 08:53 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,454
ger21 is on a distinguished road
Buy me a Beer?

CAM ability to synchronise multiple axis is VERY common. TurboCNC can sync upto 8 axis!
Abasir, he doesn't have step and direction drivers. He has single axis "controllers" that each need their own "directions how to move". Not a simple task.

Dave, to elaborate a litlle on what abasir said. Controller software (or g-code interpreters) basically are set up to output a certain number of step pulses per inch of movement. For example, a 200 step motor with a 10 tpi leadscrew would need 2000 steps per inch. if, for example, you're driver is set to 1/8 step mode, you need 8 times as many steps, or 1600 steps per inch.

And this really is not related to CAM. CAM software generates the g-code. Controller software interprets that g-code and converts it into the step and direction pulses that the motor drivers need.
You might want to download the Mach2 manual from the link I listed above. It's an excellent source of information
__________________
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

  #9   Ban this user!
Old 04-08-2004, 12:04 AM
abasir's Avatar  
Join Date: Apr 2003
Location: Malaysia
Posts: 361
abasir is on a distinguished road

Just pop over to slosyn website just now. The slosyn controller will OUTPUT, not input, STEP/DIR signals. Thanks to gerry for correcting me.

I guest, if Dave need multiple axis, then Slosyn multi-axis motion controller fits the bill. As alternative, use a PC & Mach2 instead and no more problem with G-code interpolation, etc.
__________________
Stupid questions make me smarter...
See how smart I've become at www.9w2bsr.com ;-P
Reply With Quote

  #10   Ban this user!
Old 04-08-2004, 01:10 AM
rimcanyon's Avatar  
Join Date: Mar 2004
Location: Salinas, CA
Posts: 14
rimcanyon is on a distinguished road

Abasir, thanks for checking on the SloSyn controller. It won't handle STEP/DIR input, so it looks like it is not compatible with Mach 2. I learned a lot from this exercise, even if it didn't yield the results I was hoping for.

Gerry, the Mach2 manual is a *great* resource. Thanks for suggesting it.

There is still one remaining possibility - the 3180 PI uses Step/Direction between the PI board and the 3180 driver internally. SloSyn has a base unit called the 3180-PT (I just visited the website and looked at the manuals), that takes external step/direction signals. I may be able to convert the PI to the PT just be disconnecting the PI board internally (the 3180 PI already has the "translator" port that the PT uses for step/direction input, but it is not described in the PI manual).

Dave
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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Biesse Machine and MeshCam - HELP nem3 GRZ Software- MeshCAM 11 09-28-2007 08:57 AM
Help teach G-code for rookie HighOctane G-Code Programing 16 03-16-2006 09:18 AM
Need Bridgeport EZ-Track G-Codes to build post soweebee Bridgeport and Hardinge Mills 13 01-28-2006 01:10 AM
involute interpolation utengineer04 G-Code Programing 0 04-26-2005 12:17 PM
Helical Interpolation dbcoop11 Bridgeport and Hardinge Mills 4 12-31-2004 10:15 AM




All times are GMT -5. The time now is 08:50 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 354 355 356 357 358 359 360 361