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 01-18-2011, 03:49 PM
 
Join Date: Jun 2009
Location: USA
Posts: 59
Barefootboy4 is on a distinguished road
Faulty Limit switch warning??

For some reason I'm getting a warning on my Mach 3 which says "limit switch activtated" . It's a faulty warning. No limits are being hit. All conections are good. Does anybody have any ideas or heard of this happening on Mach 3??
It stops the program run. The machine has been running fine for months now with NO problems. Could the vectric 3D be a problem?
Any ideas out there??
Reply With Quote

  #2  
Old 01-18-2011, 04:12 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,445
ger21 is on a distinguished road
Buy me a Beer?

Noise on the switch lines. Some have fixed it by installing capacitors at the terminals.
__________________
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

  #3   Ban this user!
Old 01-18-2011, 07:11 PM
ZOB ZOB is offline
 
Join Date: Aug 2003
Location: Cincinnati OH
Posts: 28
ZOB is on a distinguished road

Had same thing happen to me, it was my Z limit switch went bad, replaced it and no more false triggers. bring up the last screen in MACH 3 that show the input LED's and tap/play with the switches.
Reply With Quote

  #4   Ban this user!
Old 01-18-2011, 07:19 PM
 
Join Date: Jun 2009
Location: USA
Posts: 59
Barefootboy4 is on a distinguished road

You could be right about this. It just started for some reason. The machine has been great. I'll check all limits and get get back to you on the results.
Thanks for the idea. I found if i run the program with the off and just run air it works fine. If I mill wood with the router it has a limit alarm. Your idea of a bad limit makes total sense. The vibration could cause the problem
Thanks again
Steve
Reply With Quote

  #5   Ban this user!
Old 01-18-2011, 07:23 PM
 
Join Date: Mar 2010
Location: US
Posts: 363
brtech is on a distinguished road

It sounds like noise.

First up is shielded wire. If your wire is shielded, then do you have a pullup resistor on the circuit? Your BoB may provide this, or you may need to add one. It goes between the input and + of the power supply for the switches. Then set some debounce in your general configuration, 1000 is a good start. Then capacitors (try .1uf between the input and ground).

It CAN be a bad switch, for sure, but you should have shielded wire and a pullup resistor anyway.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-19-2011, 04:13 PM
 
Join Date: Jun 2009
Location: USA
Posts: 59
Barefootboy4 is on a distinguished road

I have had problems before so I ran a two conductor Shielded wire with a seperate ground and grounded each end of all 6 limits. Still having a problem. I also changed our 1 limit on the Z axis. Does anyone have a drawing for fixing this problem. I'm not grasping this "PULL UP RESISTOR " idea.What kind is it, Where does it go. I think this will solve the problem if I do it correctly. Ity all works fine until the 3.25 HP porter cable router loads up. The power cable for the router runs in the track with everything else. Could this be a problem?
thanks for the help.
PS: Should I do my limits in a STAR wired instead of a series setup?
Reply With Quote

  #7  
Old 01-19-2011, 04:24 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?

Are you going into the parallel port direct with the switches?
Did you just ground the shield or did you ground the common conductor of the switch?
See this thread.
http://www.cnczone.com/forums/phase_...se_issues.html
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

  #8   Ban this user!
Old 01-19-2011, 04:31 PM
 
Join Date: Mar 2010
Location: US
Posts: 363
brtech is on a distinguished road

Start with shielded wire. Do that first.

Separate wires to each switch probably didn't help you. It didn't hurt, but it did nothing.

An input needs to be in one of two states ("high" or "low") with fast transition between them. "Low" is close to 0 volts. "High" depends on the input. In most BoB's, it's a couple of volts, but it could be 3/4 of the power supply voltage.

One way to get a good low is to connect one side of the switch to ground, and the other to the switch input. That's great, and most switches are wired that way.

But now, what makes the input go high? The switch is connect/no connect. Typically, the switch is normally closed, which means in this case it's normally connecting the input to ground. That is fine. What happens when you trip the switch? The input is connected to ........ nothing!

Not good. You want to connect it to some positive voltage.

So, what you do is, connect the input to the power supply voltage through a resistor. A value of, say 220 ohms is pretty good.

Now, when the switch is connected (not tripped), you have the resistor trying to pull the input to the power voltage ("pull up"), but you have the switch pulling it down to ground. Since the switch is metal, the wires are metal, and ground is really ground, the switch "wins". What this means is that there is a current through the resistor, which has one end connected to power + and the other connected to power - as long as the switch is closed, which it is, normally.

When you trip the switch, the connection to ground is opened. Now the pullup resistor is pulling the input to power +, and nothing is pulling it down. Voila, a "high", and a good high it is.

So that's what the pullup resistor does, provide a good "high" voltage when nothing else is providing an input, meaning when the switch is tripped.

WARNING: although most BoBs allow inputs to go as high as the main power supply, SOME of them only allow it to go up to 5 volts (although I thought I read a spec sheet that limited the input to 12 V, but I can't find that now). That means the pullup has to go to a +5V supply, not the motor supply for those BoBs.

You connect a 220 ohm resistor from power + (or +5 if your BoB won't allow an input to go over 5 volts) to the input. You can do that at the BoB. One resistor per input, no matter how many switches.

Many BoB's have the pullup resistor built in. Check your documentation.
Reply With Quote

  #9   Ban this user!
Old 01-19-2011, 04:47 PM
 
Join Date: Aug 2008
Location: Canada
Posts: 390
Phife is on a distinguished road

Just add 400-1000 to the debounce setting in Mach3. Should fix that issue right up.
Reply With Quote

  #10   Ban this user!
Old 01-20-2011, 09:03 AM
 
Join Date: Mar 2010
Location: US
Posts: 363
brtech is on a distinguished road

Adding debounce fixes the symptom, not the problem. It seems to work, and very often does, but because it doesn't fix the problem, you can get in trouble at a time you least want it (in the middle of a big job for example).

Better to fix the problem. The problem is noise; get rid of the noise.

Debounce is valuable for a different problem - mechanical switches don't make clean transitions from off to on or on to off. Debounce, with a small value, is the appropriate solution for that.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 01-20-2011, 04:42 PM
 
Join Date: Jun 2009
Location: USA
Posts: 59
Barefootboy4 is on a distinguished road

Guys, Thanks for the ideas. I'm going to pick up a resistor tomorrow and create a commom STAR ground for everything and install the resistor and try it out. Thanks for the help and I will get back to you. Just to make sure I don't do damage I have a Keling C10 breakout. This has a standard 5VDC input to the Board. You are saying to add a SEPERATE power supply to the limit circuit?? with the Pull down resistor. This is correct?? A drawing would be great!!
Steve
PS. I tried the debounce to 1200 and it helped but did not fix the problem.

Last edited by Barefootboy4; 01-20-2011 at 05:05 PM.
Reply With Quote

  #12  
Old 01-20-2011, 05:59 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,445
ger21 is on a distinguished road
Buy me a Beer?

You can crank the Debounce up to 10,000 or even more to get up and running. What it does, though, is delay the activation of the switch.
__________________
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

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 switch replacement with proximity switch? Normsthename Bending, Forging,Extrusion... 3 07-11-2009 10:38 AM
limit switch and home switch setup Runner4404spd General Electronics Discussion 0 12-15-2005 07:58 AM
Is it possible to use the home switch as the limit switch as well? Darc Mach Software (ArtSoft software) 2 10-23-2005 12:50 AM
Limit Switch / Home Switch in Software Sanghera General Electronics Discussion 6 11-01-2004 05:58 PM




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