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 08-01-2006, 02:35 AM
 
Join Date: Dec 2003
Location: UK
Posts: 218
UKRobotics is on a distinguished road
Inputs/Outputs

I've been starting to design the electronic system which will control my CNC mill and already I have hit a potential problem. My problem it seems is the number of inputs and outputs available through a parrallel port. I'm designing a four axis machine so that will be 1 limit switch for each end of each axis = 8 limit switches !.

8 inputs just for limits seems a little excessive, even for a 3 axis, by my reaconing 6 would be required.

Is there an error in my thinking here or is this normal and accepted ?
__________________
Dom
http://www.ukrobotics.com/projects
Reply With Quote

  #2  
Old 08-01-2006, 02:45 AM
*Registered*
 
Join Date: Mar 2006
Location: Boston
Posts: 1,628
lakeside is on a distinguished road

here a link to a Bobcad thread kind of on the same line as your question http://216.117.147.20/bobcadsupport/...read.php?t=799
Reply With Quote

  #3   Ban this user!
Old 08-01-2006, 03:57 AM
 
Join Date: Dec 2003
Location: UK
Posts: 218
UKRobotics is on a distinguished road

Thanks for the quick reply but are you sure that is the right link ? " RS-232 Communications and Pinout" - I've had a read through and I cant find anything relevent.
__________________
Dom
http://www.ukrobotics.com/projects
Reply With Quote

  #4   Ban this user!
Old 08-01-2006, 04:27 AM
 
Join Date: Aug 2004
Location: Greece
Posts: 145
CNCgr is on a distinguished road

Originally Posted by UKRobotics
I've been starting to design the electronic system which will control my CNC mill and already I have hit a potential problem. My problem it seems is the number of inputs and outputs available through a parrallel port. I'm designing a four axis machine so that will be 1 limit switch for each end of each axis = 8 limit switches !.

8 inputs just for limits seems a little excessive, even for a 3 axis, by my reaconing 6 would be required.

Is there an error in my thinking here or is this normal and accepted ?
You could use one home switch per axis (and use it as limit also, in TurboCNC you can do that, probably in other programs) and on the other side wire all the limit switches in series.

If your machine limits out it will stop no matter which axis overtravelled. Then you can look at the position display to determine which axis it was.

This would only take 5 inputs for a 4-axis. Another option is of course to add another parallel port.

Nikolas
Reply With Quote

  #5   Ban this user!
Old 08-01-2006, 04:30 AM
 
Join Date: Jul 2005
Location: UK
Age: 29
Posts: 441
daedalus is on a distinguished road

dom: actually you probably want three inputs per axis, two limits and a home. Now if your running out of io you could always add a second parallel port card, and use that. What software are you running? Things like rs232 input depend on your package, and how much work you want to put into it.

PS: it really is a small world, just checked your webpage out, didnt expect to find anyone else from reading uni here.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 08-01-2006, 07:59 AM
 
Join Date: Dec 2003
Location: UK
Posts: 218
UKRobotics is on a distinguished road

Originally Posted by daedalus
PS: it really is a small world, just checked your webpage out, didnt expect to find anyone else from reading uni here.
Indeed it is. What are you studying & what year are you in ? - I'm guessing eng/cyb cause of the CNC connection but you could prove me wrong.

Do you have msn messenger or anything like that ?

CNCGR - I'm running Mach 3 through a parrallel port. My plan was already to have x-, y- and z+ as combined home and limits. As for having + and - limits for each axis also on the same pin, it is a possibility but I would have liked to have done it 'properly'.

Do you know if mach has an option to automatically reverse off a limit once hit or does it always have to be done manually. If the former is true then it would make sense to have separate inputs for + and - otherwise i might was well stick +, - and home all on one pin.

I have already considered another parrallel port card but even with that I worry about running out of inputs and outputs. In addition to the limit switches I also need inputs and outputs for charge pump, VDF, spindle reverse, estop, x,y,z,a axis motor encoders, x,y,x,a step/dir, an MPG, switches to jog each axis, power drawbar, ATC, suds pump, auto lube system, lights, vacuum table and no doubt more things I havent thought of.
__________________
Dom
http://www.ukrobotics.com/projects
Reply With Quote

  #7   Ban this user!
Old 08-01-2006, 08:33 AM
 
Join Date: Dec 2005
Location: USA
Posts: 3,319
NC Cams is on a distinguished road

Keep in mind that you can AND some of the limits together - that's what they do on my NC lathe.

My Bridgeport mill has softcoded limits in the program and only home switches on the X, Y and Z axis.

Or you could always add another parallel port.... (creative thought, no???)
Reply With Quote

  #8   Ban this user!
Old 08-01-2006, 09:42 AM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

Most software I have run across either relies on the limits being wired in an "AND" or "OR" configuration.

Here is one example of switch wiring:
http://www.pminmo.com/wiki/index.php...limit_switches
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com

Last edited by pminmo; 08-01-2006 at 10:04 AM.
Reply With Quote

  #9   Ban this user!
Old 08-01-2006, 10:22 AM
 
Join Date: Dec 2003
Location: UK
Posts: 218
UKRobotics is on a distinguished road

OK, So lets suppose that I need 4 pins for limt switches and one pin for an e-stop.

How many pins will I need for each servo drive/encoder ?

Is there some sort of wiring standard which suggests which pins should be used for which axis and which purpose or does it not matter at all .

I would be interested to see what pins/wiring setups other people on here have used successfully for a 3 or 4 axis machine.
__________________
Dom
http://www.ukrobotics.com/projects
Reply With Quote

  #10  
Old 08-01-2006, 11:41 AM
*Registered*
 
Join Date: Mar 2006
Location: Boston
Posts: 1,628
lakeside is on a distinguished road

Originally Posted by UKRobotics
Thanks for the quick reply but are you sure that is the right link ? " RS-232 Communications and Pinout" - I've had a read through and I cant find anything relevent.
I read this thread last night after work about 3am and your right it has nothing to do with you issue at first I thought you need info from controller to pc not pc to axis
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 08-01-2006, 04:25 PM
 
Join Date: Aug 2004
Location: Greece
Posts: 145
CNCgr is on a distinguished road

Originally Posted by UKRobotics
Do you know if mach has an option to automatically reverse off a limit once hit or does it always have to be done manually. If the former is true then it would make sense to have separate inputs for + and - otherwise i might was well stick +, - and home all on one pin.

I have already considered another parrallel port card but even with that I worry about running out of inputs and outputs. In addition to the limit switches I also need inputs and outputs for charge pump, VDF, spindle reverse, estop, x,y,z,a axis motor encoders, x,y,x,a step/dir, an MPG, switches to jog each axis, power drawbar, ATC, suds pump, auto lube system, lights, vacuum table and no doubt more things I havent thought of.
Haven't used Mach, sorry. TurboCNC just stops.

Two // ports will give you 24 outputs and 10 input, I think they should cover it, and you can still add a third.

You can use a keyboard controller to make a pendant instead of using up I/Os for jogging. Also, I don't think you'll ever need all these at the same time, you could reconfigure I/Os as needed.

As for wiring the motors, it's best that each motor has it's step and dir on the same port, preferably the data port (pin 2 to 9).

Nikolas
Reply With Quote

  #12   Ban this user!
Old 08-01-2006, 04:28 PM
 
Join Date: Aug 2004
Location: Greece
Posts: 145
CNCgr is on a distinguished road

Originally Posted by UKRobotics
How many pins will I need for each servo drive/encoder ?
The servo encoder feedback is done inside the servo, so you don't need an input to the PC. You could add an additional encoder (e.g. linear scale) as you could in a stepper system (Mach has encoder input, TCNC not) but it's not neccessary.
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





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