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 01-26-2010, 08:41 AM
 
Join Date: Apr 2007
Location: New York, NY
Posts: 419
will gilmore is on a distinguished road
multiple solid state home/limit switches on one input

I'm building a small lathe (http://cnczone.com/forums/showthread.php?t=92337) and I'm now trying to figure out home/limit switches. Lathe will have Mach3, steppers and most likely G540 or less likely G203v drivers.

I'd like to admit upfront that I'm not very knowledgeable about electronics. Please feel free to correct or advise in anyway, I won't be offended.

Repeatability and reliability are my main concerns. I plan on having one home switch for each axis and using software limits. For this reason I would like my home switch to act as normally closed.

Solid state seems to offer the best repeatability. I'm considering the following for home switches.

Optical: digikey 365-1234-ND http://search.digikey.com/scripts/dk...me=365-1234-ND
Hall effect: digikey 480-1993-ND http://search.digikey.com/scripts/dk...me=480-1993-ND

If I understand their function both switches normally (slot unblocked) conduct from the output wire to the ground wire. If the slot is blocked the circuit opens. This functions the same way as a NC mechanical switch.

My question is how do I connect two (or more) of these switches to one input pin?
Reply With Quote

  #2   Ban this user!
Old 01-26-2010, 10:10 AM
BobWarfield's Avatar  
Join Date: May 2005
Location: USA
Posts: 2,396
BobWarfield is on a distinguished road

Diodes, my friend, that's future! (Appologies to The Graduate which referred to Plastics).

See here: http://www.cnccookbook.com/CCMillCNCHomeSwitches.htm

Crude diagram at top of page for wiring together some IH optical switches. There's probably better ways than the diodes, but they are cheap and cheerful.

Also, you don't want to wire all the homes together. Mach3 wants to see each axis on its own. Wire the limits together if you like.

Best,

BW
__________________
Try G-Wizard Machinist's Calculator for free:
http://www.cnccookbook.com/CCGWizard.html
Reply With Quote

  #3   Ban this user!
Old 01-26-2010, 03:30 PM
 
Join Date: Apr 2007
Location: New York, NY
Posts: 419
will gilmore is on a distinguished road

The way I read that diagram is that pin 2 (sig) is held low by the resistor. When a switch is activated it sends a high voltage which brings sig to high. The diode allows the high voltage to get to pin 2 but does not allow it to travel back to the other switch because the output of the non activated switch would be low. If I'm reading this correctly (BIG if) the switches are acting as NO and if there was a failure you wouldn't know until your axis over traveled.

I thought it was common practice to have all home switches on one pin? I figured mach would know which switch it hit.
Reply With Quote

  #4   Ban this user!
Old 01-27-2010, 10:05 AM
BobWarfield's Avatar  
Join Date: May 2005
Location: USA
Posts: 2,396
BobWarfield is on a distinguished road

Will, the Mach3 Mill manual has a good discussion of how to wire the homes and limits and of how Mach3 treats them. You have a lot of good choices.

Let's start with Limits. It's ok to wire them all together, because a limit is a limit and you just want the machine to stop if any limit is hit.

This is not true of a Home switch. Home is all about the machine finding it's reference coordinates in a highly accurate and repeatable way. You walk up to the machine, boot it up, and "Ref" the axes. Now Mach3 knows exactly where it is on the DRO.

Let's say you crash, have a power failure, or otherwise cause your machine to get "lost". Your part is still in the vise and you want to continue. Without home switches, the best you can do is use an edgefinder or similar tool to find a known location on the part. With Home switches, you REF the axes and the machine knows where it is again.

So what happens if we wire all the Home switches together? Well, it means we have to REF each axis independently, because if we move them all at once, we have no idea which one triggered the Home. This is perfectly ok, but it just means REF'ing requires 3 operations if you wire things up that way. If you provide Mach with 3 inputs, one per axis, you can use a "RefAll" function and one touch of a button will reference all three axes automagically.

That's pretty cool!

OK, now here is another thing to note about my Home switches. They are combined Home/Limit, and that is why those particular diodes are shown that way. I've not yet decided which configuration I want, and I may even leave out the diode approach so I can do simultaneous Home. In that case, each of my axes has 2 switches. One is a limit for one end, and one is a combined home/limit for the other end.

Lots to think about. Grab the Mach3 reference and ponder it. Let us know if you have more questions.

Best,

BW
__________________
Try G-Wizard Machinist's Calculator for free:
http://www.cnccookbook.com/CCGWizard.html
Reply With Quote

  #5   Ban this user!
Old 01-27-2010, 11:39 AM
 
Join Date: Apr 2007
Location: New York, NY
Posts: 419
will gilmore is on a distinguished road

Bob, you are a true asset to the DIY CNC community. I've spent hours reading and learning from your website. Thanks for taking the time to help.

This is going on a lathe so only 2 axes to home. Also, I'm planning on having gang tooling so I would want the Z to home first anyway. I wasn't planning on using limit switches. I'm planning on using a G540 so only 4 inputs. One for spindle speed sensor. If I use two separate inputs for homes I only have one left.

I'll go back to read all the Mach3 and Gecko docs again tonight. If I was using 2 NC mechanical home switches I would wire them in series and home one axis at a time. I'm new to solid state electronics and trying to figure out how to make the solid state switches (transistors?) act like NC mechanical switches in series.
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
Solid-State limit switch experiment Swede General Electronics Discussion 44 01-08-2010 01:20 PM
THC300 Input Pins and Home Switches krazycnc CNC Plasma and Waterjet Machines 2 09-05-2005 09:36 PM
The relationship of limit switches to home switches. MikeAber General Electronics Discussion 4 11-04-2004 01:28 PM
Home switches and limit switches. ynneb General Electronics Discussion 5 04-08-2004 05:32 PM
Solid state limit switches Swede General Electronics Discussion 0 01-03-2004 06:22 PM




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