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 05-02-2008, 12:25 PM
 
Join Date: May 2006
Location: USA
Posts: 92
endgrainguy is on a distinguished road
limit switch wiring with shielded cable

I just finished wiring limit switches for my new DIY router and am having problems with the system tripping intermittently. I used two conducter 22 g. shielded cable, wiring the switches in series, twisting the two conducters together for each connection, treating them as one conductor. The wire starts at pin 15, of BOB, goes to a switch, then a new piece of wire goes from that switch, finally returning to the controller box after the sixth switch where its connected to the BOB's groung lug.I twist the grounding wire together at each junction, and twisted together all the grounding wires of the limit switches and the seperately wired home switches (3 of them, and they work perfectly) in the controller box, grounding to the box itself. I get no problems when I disenable the limit switches, but when I enable them, i get periodic unexplained trips, though they work properly when any of the switches is intentionally tripped. It seems like my technique might be at fault. There was one connection where if I handled the exposed connected pair of grounding wires with my fingers I could usually cause a trip.
I'm new to all this stuff, so I'm sure I could be making some fundamental error. Thanks!
Reply With Quote

  #2   Ban this user!
Old 05-02-2008, 04:31 PM
 
Join Date: Apr 2003
Location: US
Posts: 307
cbcnc is on a distinguished road

Ground loops?
Your shielding should be connected to ground in only one place. If your grounded shielding touches ground again you have just created a ground loop.

Chris
Reply With Quote

  #3   Ban this user!
Old 05-02-2008, 06:37 PM
 
Join Date: May 2006
Location: USA
Posts: 92
endgrainguy is on a distinguished road
limit switch problem

The grounding (shielding ground that is) wire isn't attached at its origin, but when I completed the circuit the grounding wire was attached to the single shielding grounding wires of the home switches. I didn't attach this to "signal ground " of BOB -just to the controller box itself.
Here's perhaps a clue to the problem I can't interpret: On one or two of the switches, all of which are wired normally closed, when I test with a continuity tester, the tester lights brightly, and when I hit the switch, it only fades about 80% -it doesn't go off completely the way it does on other switches. I actually don't see where this should create a problem. This circuit should only be tripped by a switch losing its continuity, and I have the reverse problem, right? But when I check with continuity tester, all switches seem closed at rest. As you can see, I don't know a lot about these things. Mayble I should try rewiring them normally open, though I see where that's less safe, because one isn't notified of a wire torn lose.
I have set up Mach3 soft limits and they work great, but I have so many hours into setting up the six limit switches it seems a shame to not get them working because of what's probably some minor wiring problem I can't identify. thanks!
Reply With Quote

  #4   Ban this user!
Old 05-02-2008, 11:39 PM
 
Join Date: Apr 2003
Location: US
Posts: 307
cbcnc is on a distinguished road

Which Break Out Board are you using?
This is just a stab at the problem but it sounds like you have a floating ground. Where it's not 0 volts and is floating too close to the trip point.
Here is a link to some grounding info:
pminmo.com

Chris
Reply With Quote

  #5   Ban this user!
Old 05-03-2008, 06:58 AM
 
Join Date: May 2006
Location: USA
Posts: 92
endgrainguy is on a distinguished road
proper grounding

Well, maybe my two problems, inability to start spindle with relay board, and constant false limit switch trips, are related. I know very little about grounding. Should I somehow be grounding the "signal ground" lug of my BOB to my shop's AC power supply? Is this what is shown here?:

http://pminmo.com/PMinMOwiki/index.p...=Image:Gnd.png

Does this mean running a wire from signal ground of BOB to connect to a bare "green" wire in the AC line supplying Ac power to the system? And then, how should I be grounding the bare shield grounding wires for the shielded cable used for my steppers and the bare wires in the shielded cable used for my home and limit switches? Right now I simply have them tied to the metal controller box which simply sits on a wooden shelf. Thanks, and please excuse my ignorance on these issues, but I've got too much invested in this router to abandon the project!
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 05-03-2008, 09:37 AM
 
Join Date: Apr 2003
Location: US
Posts: 307
cbcnc is on a distinguished road

The parallel port coming from your computer has several lines that are grounded. This is assuming you are using the proper power cables to your computer. And also that your power system that you are tying into has a proper ground. Old house wiring didn't include a ground at one time. Have you checked your wiring? I'm not an electrician, but I have one of those testers that has 3 lights and tells you if your wall outlet has the correct wiring between hot , neutral and ground.
Take it one step at a time and test each component in the chain. Does your computer case have continuity of the ground to your controller/BOB case?
I'm hoping that pminmo or someone else will chime in here because I am wondering myself if the shielding of the cable should be tied to the case ground or the power supply ground. I've had grounding issues with my machine too.

Chris
Reply With Quote

  #7   Ban this user!
Old 05-03-2008, 09:53 AM
 
Join Date: Dec 2004
Location: US
Posts: 84
mcyr is on a distinguished road

You might want to try using a small capacitor between the ground and the other input lug you use on your BOB. This will filter out the noise spikes that are causing the trip to occur. I had a similar problem and a 0.01uF cap soldered across these two leads solved the problem. Also, you can try playing with the debounce in Mach3 (setting it higher) although I wouldn't go crazy with stepping it up. BTW, I didn't use shielded wires for my limits/home switches all wired on one circuit in series.

Best of luck,
Mike
Reply With Quote

  #8   Ban this user!
Old 05-03-2008, 10:57 AM
 
Join Date: Apr 2003
Location: US
Posts: 307
cbcnc is on a distinguished road

Alright, after thinking about this a little more and looking at the pictures of your BOB, here's my guess.
The end of your limit switches should be connected to the signal ground since that completes the circuit to the negative side of your power supply. In other words, you want to go from the + side of the power supply thru the switches to the - side.
The shielding of the cable should go the the case ground.

Chris
Reply With Quote

  #9  
Old 05-03-2008, 11:13 AM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,543
Al_The_Man is on a distinguished road
Buy me a Beer?

Originally Posted by cbcnc View Post
The parallel port coming from your computer has several lines that are grounded. This is assuming you are using the proper power cables to your computer.
Unfortunately that is not always the case, the three cord supply cable coming into your computer is 120v line, 120v neutral, and service ground to the case.
The output of the PC switching supply is isolated and is not normally referenced (connected) to ground at the P.S. output.
It depends on the PC Manufacturer if any of the MB ground plane mounting holes are connected to chassis or just mounted on insulated stand-offs.
I use industrial style PC style units and I ensure they are mounted on metal stand offs so that the ground plane is at ground in all the mounting points.
So your Parallel port common is not always at ground potential.
It is your decision if you ground this at the port or at mounting or both.
In any case all grounding should be bonded to the service ground, shields and power suplly commons , if you wish.
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

  #10   Ban this user!
Old 05-03-2008, 11:36 AM
 
Join Date: Apr 2003
Location: US
Posts: 307
cbcnc is on a distinguished road

I'm so confused.
Not really, it just takes a lot of mental sorting out of the different parts of the problem. Since I'm not a electronics engineer I haven't been through it a bunch of times and therefore it takes me longer.
I think the main point is that the limit switches are part of a circuit where the + side of the supply should terminate at the - side of the power supply.
The AC ground to the case is different or maybe the same.

Chris
Reply With Quote

Sponsored Links
  #11  
Old 05-03-2008, 01:31 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,543
Al_The_Man is on a distinguished road
Buy me a Beer?

To start there should be a common ground point that has as a minimum, the service ground, cable shields and ground from any motors or servo's and spindle motors.
Whether you take any power supply commons to this point, depends on whether you are adopting complete ground bonding of all systems and power supplies, or are using the total isolation technique, where all interfacing uses opto isolation or equivalent.
Either method should be done methodically, any haphazard method usually results in spurious tripping of inputs or noise etc.
If using common ground bonding for all systems, the ground cannot be used as a conductor.
Where the supply neutral is grounded at the panel, you cannot ground the neutral at any other point.
Personally, if I found my PC's power supply was at ground potential, I would also ground the PC common where it leaves the parallel port.
As I have mentioned on many occasions before, I prefer the common grounding technique, even If I happen to use a isolated module, I will have the input and output commons, bonded to ground.
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

  #12   Ban this user!
Old 05-03-2008, 05:19 PM
 
Join Date: May 2006
Location: USA
Posts: 92
endgrainguy is on a distinguished road
limit switch puzzle clues

Well I'm afraid much of this is over my head. I did connect the shielding wires to 110 bare ground wire, with no discerniable improvement. Then I found and experimented with "debounce". That sure changed things! I had debounce interval at 0. I changed it to 500, and got no false trips, but one switch no longer trips the system at all , and another one or two only after a second or two. The others continue to work as before. I can set this number lower, and get the reluctant switches to work, but set low enough for all to work (20) I get some false trippings again. I left index debounce at 0 the whole time. How should "debounce interval" and "index debounce" be related?
But clearly there's some very relevant information obtained here, and that the switches behave differently also suggests problems that some of you electronic geniuses out there should be able to identiy! The most reluctant switch of all had three longish wires near it (two go to it), and I wired switches not to limit total distance of wire, but to simplify wire protection due to gantry movement. I made what is probably a mistake of putting my X limits at the ends of the axis rather than on the traveling head, which requires more wire. Total wire length is an issue, even with shielded cable, right? Best to minimize? Help! Thanks!
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
Home/Limit switch Cable HELP!!! planekrazie DIY-CNC Router Table Machines 18 04-27-2009 07:40 PM
Shielded versus not shielded cable.....? REVCAM_Bob General Electronics Discussion 1 05-23-2007 07:55 AM
Limit Switch Wiring The Speaker Guy General Electronics Discussion 1 01-07-2007 04:11 AM
Limit & Home Switch Wiring? Willyb Gecko Drives 0 10-17-2005 04:02 PM
Home limit switch wiring. DAB_Design Mach Software (ArtSoft software) 5 12-23-2004 05:48 AM




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