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! > Machine Controllers Software and Solutions > TurboCNC


TurboCNC Discuss TurboCNC controller software here!


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 03-25-2008, 06:59 AM
 
Join Date: Jun 2007
Location: Brazil
Posts: 12
leandrot is on a distinguished road
connecting limit switches

Hello
when trying to figure out how to connect the limit switches I came out with a big concern: the pinout diagram shows just 'IN' pins for each switch, there is no 'commom out' so... from where should come the + current to close the contact?
Do I need a external +5V power supply for this? Or should the supply voltage for the switches come from somewhere in the controller board?

Thks
Reply With Quote

  #2   Ban this user!
Old 03-25-2008, 11:28 AM
The Blight's Avatar  
Join Date: Sep 2006
Location: Denmark
Age: 27
Posts: 563
The Blight is on a distinguished road

What breakout board are you using? Most boards have a +5V supply.
Reply With Quote

  #3   Ban this user!
Old 03-25-2008, 11:39 AM
 
Join Date: Dec 2007
Location: usa
Posts: 33
chester1957 is on a distinguished road

Use pin 10 and take it back to common, use normally closed switches and hook in series.
Set TCNC to active high, if a switch opens pin 10 to common is lost, stopping the machine.
Reply With Quote

  #4   Ban this user!
Old 03-25-2008, 02:19 PM
The Blight's Avatar  
Join Date: Sep 2006
Location: Denmark
Age: 27
Posts: 563
The Blight is on a distinguished road

Does pin 10 have a pull-up?
Reply With Quote

  #5   Ban this user!
Old 03-25-2008, 02:33 PM
 
Join Date: Jun 2007
Location: Brazil
Posts: 12
leandrot is on a distinguished road

thanks Blight, thanks Chester
I've looked carefully and the board really have a '5VLOG' output ...

Now my switch are simple open/close with no built-in resistor. I know the parallel port can safely handle 20mA input signals, much more current can burn the things out. So do I need to use some resistor in serial with the limit switch to limit the current of the input signal?
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 03-25-2008, 05:34 PM
The Blight's Avatar  
Join Date: Sep 2006
Location: Denmark
Age: 27
Posts: 563
The Blight is on a distinguished road

There is a better way to make this. Use a pull-up resistor between the +V and the input (about 10k), and mount the switch between the input and gnd (N/O). This way when the switch closes, the pin will be pulled to gnd (low). When the switch is open, it will be pulled high.

Take a look at this link: http://www.seattlerobotics.org/encod...97/basics.html

If you have a PMDX-122, all inputs have weak pull-ups and only needs to be connected to gnd.
Reply With Quote

  #7   Ban this user!
Old 03-25-2008, 06:00 PM
 
Join Date: Dec 2007
Location: usa
Posts: 33
chester1957 is on a distinguished road

I have a cnc4pc break out board, so I'm not sure if there is a resistor involved or not. Sorry I couldn't be more help. Good luck with your project.
Reply With Quote

  #8   Ban this user!
Old 03-26-2008, 05:52 AM
 
Join Date: Jun 2007
Location: Brazil
Posts: 12
leandrot is on a distinguished road

great, I will wire things that way, thanks!

One last question: can the limit and home switches be the same? TCNC can handle it?
Reply With Quote

  #9   Ban this user!
Old 03-26-2008, 06:41 AM
Bubba's Avatar  
Join Date: Mar 2004
Location: LaGrange, GA USA
Posts: 1,357
Bubba is on a distinguished road

Yes, it will work for "HomeAsLimit" when you set the function. HOWEVER, do one axis at a time and get it to working before you move on to the next one. Also, you will not set a limit switch for that position where you have the home switch. The software will treat the switch appropriately (home or limit) as needed.
__________________
Art
AKA Country Bubba (Older Than Dirt)
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
Limit switches and homing switches AeroKam Open Source CNC Machine Designs 16 01-05-2008 07:56 AM
Limit Switches Drakkn DIY-CNC Router Table Machines 1 08-10-2007 04:57 PM
The relationship of limit switches to home switches. MikeAber General Electronics Discussion 4 11-04-2004 01:28 PM
Limit switches and home switches viktorcnc TurboCNC 2 08-03-2004 06:11 AM
Home switches and limit switches. ynneb General Electronics Discussion 5 04-08-2004 05:32 PM




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