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 12-24-2010, 10:20 AM
 
Join Date: Oct 2009
Location: USA
Posts: 26
T_Brown is on a distinguished road
Switches and wiring

I finally have my first gantry style router up and running and am starting to focus on the wiring and fine tuning of it. I have done some searching on the zone but can't find many tips or info about wiring. One of my biggest questions is in regards to wiring the home/limit switches. I plan to have 2 limits on each axis with one of the limits also acting as a home switch. Should these be wired in series or parralel? Each axis will be connected to its own input on my G540, whats the best way to splice these wires to eachother? Terminal blocks inside my enclosure? Any thoughts, tips or just pictures of how you wired your machine would be very helpful.

I am also looking for some switches. I am planning on using some of the concepts from Phomann's wiring diagram including the enable switch but am not sure what i should be looking for. Obviously, electronics are not my strong suit. I am also thinking i would like to add a push button switch to control my router, just thinking i will make a switched outlet that the router plugs into, but would like a push button switch versus a standard light toggle switch. Any help on this would be very much appreciated again. Thanks everyone!
Reply With Quote

  #2   Ban this user!
Old 12-24-2010, 11:29 AM
 
Join Date: Mar 2010
Location: US
Posts: 363
brtech is on a distinguished road

There are several schools of thought about this, and it's very dependent on how many inputs your controller/bob has. I think the most common wiring has one input per axis, two switches per axis, combined home/limit. The most extreme is separate home switch and separate limit switches for each end of travel on each axis, but no one does that.

If you go with the combined home/limit, one input per axis, and you use mechanical switches (microswitches), you normally wire the two switches per axis in series. You tie one end of the switches in series to the power supply ground, and the other wire goes to the input on the controller/bob.

Many of us like the "electronic home switches made easy" hall-effect switches. Wiring for that is somewhat different because you have 3 wires per sensor and they can't be wired in series or parallel.

One easy way to use them is to put the sensor on the moving axis and have two magnets - one at each end of travel. Then you have one 3 conductor cable per axis, all the red (power) wires get connected to a suitable power supply +, all the black wires get connected to power ground (which is tied to your motor power ground also) and then each of the green (or whatever your 3rd conductor color is) are the inputs to the bob. I'd use a terminal block for that.

Some use the magnetic switches only for the home, and then use mechanical switches for limits. You can, if you want to, tie ALL of the limit switches in series and have one input that carries them all. That would have one input per axis for home, and one other input for all limits.

If you do that, you can use a single conductor shielded cable running around your gantry, running through each switch, using the "Normally Closed" or NC connection. You go "in" (from the prior switch) through the common connection and "out" (to the next switch) through the NC connection. The first and last switch would have wires that go to your controller. Tie one of them to power supply ground and the other to the BOB input.

Another way would be to run a two conductor cable from one end of an axis, where you connect the two wires to the common and NC connections, up to the other end, where you basically break into the cable, pull out one conductor, cut it, attach the ends to the common and NC connections of the switch, leave the other conductor alone, and continue the wire to your BOB. You do that for each axis, so you would have 3 (or 4) such cables.

If you are using combined home/limit, wire all of, say the black wires to power supply ground, and the remaining red wires are the inputs to the bob, one for each axis.

If you are using separate limits, connect each of the cables to a terminal block. Then connect, say, the red wire of one axis to the black of the next, the black of that to the red of the last axis, which leaves you with black of the first and red of the last. You connect the black to power supply ground, and the red is the limits input to the bob.
Reply With Quote

  #3  
Old 12-24-2010, 12:53 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?

Many of us like the "electronic home switches made easy" hall-effect switches. Wiring for that is somewhat different because you have 3 wires per sensor and they can't be wired in series or parallel.
Yes they can. I have my Y and Z home switches paralleled together.
http://www.cnczone.com/forums/850924-post164.html
__________________
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

  #4   Ban this user!
Old 12-24-2010, 12:59 PM
 
Join Date: Mar 2010
Location: US
Posts: 363
brtech is on a distinguished road

Huh. Didn't realize they were open drain. I read the data sheet multiple times looking for it and didn't see any spec either way.

Okay, I take it back; you can wire multiple sensors in parallel.

Gerry, why did you parallel Y and Z? Why not X and Y or X and Z? Mach seems to run its home routine for each axis separately, so in theory, you could have all three on one input. Is there a reason you didn't do that? Certainly, one input for all limits is okay.
Reply With Quote

  #5  
Old 12-24-2010, 01:08 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,536
Al_The_Man is on a distinguished road
Buy me a Beer?

Originally Posted by brtech View Post
Many of us like the "electronic home switches made easy" hall-effect switches. Wiring for that is somewhat different because you have 3 wires per sensor and they can't be wired in series or parallel.
Most, if not all hall effect sensors have open collector output, open collectors can be wired in parallel if used in a N.O. condition.
There are also 2 wire hall effect sensors with LED indication that can be used.
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

Sponsored Links
  #6  
Old 12-24-2010, 01:13 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?

Gerry, why did you parallel Y and Z? Why not X and Y or X and Z? Mach seems to run its home routine for each axis separately, so in theory, you could have all three on one input. Is there a reason you didn't do that? Certainly, one input for all limits is okay.
I had 3 inputs available, and needed two for my slaved axis. Mach3 can be configured to home in any order, or combination of axis that you want. So right now, I can home Z first, then X and Y simultaneously.

After I had it working, I realized I could have done it with two inputs, by wiring X, Y, and Z to one pin and the slave axis (A) to the other, and homed each axis separately. That would have given me one more input, but I don't need it on this machine.
__________________
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 12-24-2010, 01:33 PM
 
Join Date: Mar 2010
Location: US
Posts: 363
brtech is on a distinguished road

Got it.

Can you actually home X and A simultaneously? By default, it does it separately, which is pretty weird, since it actually bends the gantry a little doing it. Needs separate inputs for that to work of course, which as you observe would be only 2.

This helps me a bunch because I need at least one more input from my G540 to do autozero Z, and I'm using currently using all 4 inputs for X/Y/Z/A. I could get down to 2, even with separate sensors for the limits.
Reply With Quote

  #8  
Old 12-24-2010, 02:19 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?

Can you actually home X and A simultaneously? By default, it does it separately, which is pretty weird, since it actually bends the gantry a little doing it. Needs separate inputs for that to work of course, which as you observe would be only 2.
Sorry for the delay, had to run and get some wrapping paper.

Yes, if the X and A are slaved, they should home together. You may need to change the homing script. If the default is this:
DoButton( 24 )
DoButton( 23 )
DoButton( 22 )
DoButton( 25 )

You'll want to remove the DoButton(25), which is the A home command. If they are slaved, the X Home command (DoButton(22))will home them both.

Some people say they need to use RefCombination(9) instead of DoButton(22).

RefCombination(9) specifically tells Mach3 to home both together.

I've tried it both ways and both work fine.

One issue I ran across, is in the Homing/Limits screen, make sure both the X and A are set to the same homing speed. You'll have serious issues if they are not the same.
__________________
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 12-24-2010, 07:09 PM
 
Join Date: Nov 2006
Location: USA
Posts: 658
DonFrambach is on a distinguished road

I am a newbie but I like the idea of normally closed (NC) switches because if something goes wrong with the wiring you know about it before you need to use the switch (that would not be the case with a normally open switch). Normally closed switches can't be wired in parallel but they can be wired in series (which is what I have done).
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
limit switches fitting and wiring deannos DIY-CNC Router Table Machines 17 02-13-2010 05:26 PM
Wiring limits switches in series BOBINETTE Controller Cards 39 05-26-2009 04:02 AM
Wiring home and limit switches Hack General Electronics Discussion 7 01-24-2009 03:47 PM
Wiring For Proximity Switches Mcyoda General Electronics Discussion 3 08-04-2008 09:20 PM
Wiring IH limit switches Shepard Industrial Hobbies (Support forum) 10 03-20-2007 08:28 PM




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