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 05-10-2009, 04:54 PM
 
Join Date: May 2009
Location: Portugal
Posts: 5
oinquer is on a distinguished road
Documentation about commands or protocol used by drives/parallel port

Hello, been interested about CNC machines for 2 or 3 months and have been looking into information and understood that i need a drive and a breakout board to drive the motors and communicate with the computer respectively....however i haven't seen any info about the protocol or commands the parallel port send to the drive.

What i would like is to have a look at some documentation since i would like to develop some programs with PIC's....
is it feasible? i have done some extensive electronics which used serial port to communicate with computers and it would be nice to develop or at least try it.
Help me out here please.
Reply With Quote

  #2   Ban this user!
Old 05-10-2009, 05:07 PM
 
Join Date: Aug 2007
Location: Turkey
Posts: 10
selimoztunc is on a distinguished road

Hi there,

It's not space technology, really. Pins are either high or low referenced to ground, which means 1 or 0. There are no intricate communication standards here. You can take a look at http://www.pminmo.com/ as I did. If you're into PIC programming, you will find some good documented controllers there and by any means build one just for the fun of it. I have made my own controller at first, but later bought a 4-axis one.
Reply With Quote

  #3   Ban this user!
Old 05-10-2009, 06:15 PM
 
Join Date: May 2009
Location: Portugal
Posts: 5
oinquer is on a distinguished road

hmm getting it...
what i cant seem to understand is, if its either pin up or down...how does the computer knows the drill has reached its spot? is there any kind of answer from the drive?

looking at link you gave there seems to be some kind of answer.... will check the link thoroughly
Reply With Quote

  #4   Ban this user!
Old 05-10-2009, 07:49 PM
 
Join Date: Sep 2007
Location: USA
Posts: 740
BobF is on a distinguished road

Most of the machines you find here in DIY use stepper motors. They take step and direction instructions, and give no feedback. You have to take it on faith that they did what you want.
Reply With Quote

  #5   Ban this user!
Old 05-10-2009, 07:51 PM
 
Join Date: Jul 2008
Location: Canada
Posts: 216
analogman is on a distinguished road

Servos will give feedback through encoders. Steppers wont (other than limit or home switches).
Reply With Quote

Sponsored Links
  #6  
Old 05-10-2009, 08:00 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,446
ger21 is on a distinguished road
Buy me a Beer?

Originally Posted by analogman View Post
Servos will give feedback through encoders.
But most Step/direction servos only feedback to the drive, not the PC.
__________________
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

  #7   Ban this user!
Old 05-11-2009, 12:53 AM
 
Join Date: Aug 2007
Location: Turkey
Posts: 10
selimoztunc is on a distinguished road

What you are referring to is called a closed loop system. Even with a system driven by steppers, you can still use linear position encoders along the axes to get feedback. Not a cheap solution, though. I wonder if someone around the zone tried to build something along these lines?
Reply With Quote

  #8   Ban this user!
Old 05-11-2009, 04:26 AM
 
Join Date: May 2009
Location: Portugal
Posts: 5
oinquer is on a distinguished road

hmm understood...what im missing here is...how do you know that one step has been done so the computer can send another step to the stepper? stepper speed configurable in software?
cause lets say...stepper is at x=0 y=0 and needs to do a marking at x=20 y= 19 , how does software knows the stepper is at those coords already?

thanks for your time guyz
Reply With Quote

  #9   Ban this user!
Old 05-11-2009, 05:50 AM
 
Join Date: Aug 2007
Location: Turkey
Posts: 10
selimoztunc is on a distinguished road

Let's think that you have a 5 TPI (turns per inch) ballscrew driving the gantry directly coupled to the stepper. Your speed is configureable in software, so the software knows when the motor completes a full turn (usually 200 step, higher if your controller supports microstepping), the gantry will move 1/5 inches (25.4 / 5 = 5.08 mm. in metric units). Divide that number by 200 and you will find travel per step. There is no feedback in most DIY systems, so if you loose steps, your work is mostly gone.
Reply With Quote

  #10   Ban this user!
Old 05-11-2009, 06:44 AM
 
Join Date: May 2009
Location: Portugal
Posts: 5
oinquer is on a distinguished road

ok thats what i needed to know

Just ordered a new programmer last week, will look into this in a few days, maybe im actually able to do something.

Thanks for you time guyz
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 05-11-2009, 08:10 AM
 
Join Date: Jul 2008
Location: Canada
Posts: 216
analogman is on a distinguished road

Originally Posted by ger21 View Post
But most Step/direction servos only feedback to the drive, not the PC.
Definitely. The difference here is he is planning on building his own drive with a PIC processor. Saves from him getting linear position encoders and combining with a stepper. It that is what he wants to do.

Oinquer - for your PIC, make sure you have lots of treatment for noise. Also if your processor handles any switches make sure to have debounce code. What language will you be using?
Reply With Quote

  #12   Ban this user!
Old 05-11-2009, 08:17 AM
 
Join Date: Jul 2008
Location: Canada
Posts: 216
analogman is on a distinguished road

Do a google on "basic stamp stepper". LOTS of hits. It will give you some good tips from other peoples experience, even if you are using a PIC. Stamp Basic is easy to decipher and recode into the language of you choice.
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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
parallel port or parallel universe bruno34 Taig Mills & Lathes 5 04-15-2009 10:58 AM
parallel port wantsout General Electronics Discussion 15 09-23-2008 11:49 PM
Electro Craft BRU Servo Drives Protocol PittsburghMick General Electronics Discussion 5 08-15-2008 11:26 AM
Where's the parallel port? cdlenterprises Mastercam 23 01-20-2007 05:23 PM
Second parallel port? essa LinuxCNC (formerly EMC2) 11 04-12-2006 02:18 AM




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