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  
Old 01-12-2009, 06:36 PM
Mr.Chips's Avatar
Gold Member
 
Join Date: Sep 2003
Location: USA Tucson AZ
Posts: 1,239
Mr.Chips is on a distinguished road
Question Home/Limit Resets without CNC Moving

Mach3:
I have configured my X, Y and Z limit and home switches all in one serial configuration. Using shielded wire and the shielding is grounded to the control box right before they connect to the BOB pin connections. The shielding is not grounded at the Limit/Home end of the wires.

The problem is within 30 to 75 seconds I will get a Reset condition without the machine even moving.

I have moved all the power cords (Control Box, PC, and Monitor) at lease 2’ away from the Limit/Home cable. This did not have any effect.

Inside the control box, the AC and DC lines are separated, not running parallel to each other.

What are the next steps to try.

Thanks
Reply With Quote

  #2   Ban this user!
Old 01-12-2009, 08:26 PM
 
Join Date: Dec 2006
Location: USA
Posts: 808
Cartierusm is on a distinguished road

First off it's best to know that there may be electrical noise in your system that would be hard to get rid of.

Next would be to diagnose your limit switches, are they cheap, how old are they?

Have you ever had a success full run?

I have a problem when it runs cutting aluminum all the vibration or extra electrical noise from metal to metal contact.

Also GOTO > Config > General Config > and in the upper right hand corner is a box call "debounce interval" change that to 2000, you can go higher if you need until the problem is gone. I forget what this does but it helps with the limit switches tripping and won't hurt anything or change the machine in anyway.
Reply With Quote

  #3  
Old 01-12-2009, 08:54 PM
Mr.Chips's Avatar
Gold Member
 
Join Date: Sep 2003
Location: USA Tucson AZ
Posts: 1,239
Mr.Chips is on a distinguished road
Question

Originally Posted by Cartierusm View Post
First off it's best to know that there may be electrical noise in your system that would be hard to get rid of.

Next would be to diagnose your limit switches, are they cheap, how old are they?

Have you ever had a success full run?

I have a problem when it runs cutting aluminum all the vibration or extra electrical noise from metal to metal contact.

Also GOTO > Config > General Config > and in the upper right hand corner is a box call "debounce interval" change that to 2000, you can go higher if you need until the problem is gone. I forget what this does but it helps with the limit switches tripping and won't hurt anything or change the machine in anyway.

I have been running without limit switches and thought I would try and set them up as it is the correct thing to do, just in case.

They are new and an industrial grade, of good quality.

My "debounce" is set to 2000. I am having the reset condition when the machine is sitting idle after 30 to 75 seconds. I didn't think "debounce" would be an issue if the switches were not being contacted. Was trying to take this one step at a time.

Currently my PS is inside the control box with the other componets, most of the systems I have see have them this way.

Could someone give me a few things to try before I give up and just disable them, I would like to have them if at all possible.

Thanks
Reply With Quote

  #4  
Old 01-12-2009, 10:27 PM
dertsap's Avatar
Gold Member
 
Join Date: Oct 2005
Location: canada
Posts: 3,667
dertsap is on a distinguished road
Buy me a Beer?

i had the same issue , set the debounce higher and the problem should go away
__________________
A poet knows no boundary yet he is bound to the boundaries of ones own mind !! http://cnctoybox.org
Reply With Quote

  #5  
Old 01-12-2009, 11:33 PM
Mr.Chips's Avatar
Gold Member
 
Join Date: Sep 2003
Location: USA Tucson AZ
Posts: 1,239
Mr.Chips is on a distinguished road
Question

Originally Posted by dertsap View Post
i had the same issue , set the debounce higher and the problem should go away
Changed "Debounce" to 50,000.
After 25 seconds I had a reset.
Watched it sitting idle for 10 minutes, no reset. Went into the house and came back in 25 minutes and it had reset, don't know when.
Ran a deep air cut 8" circle, after 5 minutes I had a reset.

Hmmmm, Should I go higher with the Debounce?

What exactly does Debounce do?

Any more causes of reset?

Thanks
Reply With Quote

Sponsored Links
  #6  
Old 01-12-2009, 11:49 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,451
ger21 is on a distinguished road
Buy me a Beer?

50,000 is way too high to use. Debounce waits before detecting the switch in 40us increments. Setting the debounce to 50,000 will result in a 2 second delay if the machine actually hits the switch.

It seems like I've seen a dozen people with this problem in the last few weeks. You might want to try connecting them one at a time, testing each time you add one. This might help you track down where the problem lies.
__________________
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  
Old 01-13-2009, 01:16 AM
Mr.Chips's Avatar
Gold Member
 
Join Date: Sep 2003
Location: USA Tucson AZ
Posts: 1,239
Mr.Chips is on a distinguished road

Originally Posted by ger21 View Post
50,000 is way too high to use. Debounce waits before detecting the switch in 40us increments. Setting the debounce to 50,000 will result in a 2 second delay if the machine actually hits the switch.

It seems like I've seen a dozen people with this problem in the last few weeks. You might want to try connecting them one at a time, testing each time you add one. This might help you track down where the problem lies.
Thanks for the information. I'll change the debounce setting back to 20,000.
Since all of my switches are in one series I'll disconnect the 1st switch and use a jumper to make a connection. Test that and if it doesn't fail leave that jumper on and jump the second, repeat until all 6 switches are tested.

On second thought I am using pin 12 on the BOB, I might first disconect the wire from pin 12 and jumper it to ground, and see if I get a reset, I should not because the jumper wire would be less than 2" long.

If no failure there, I'll unplug the DB9 that goes into the chassis and jumper it there, if there was a failure, it would be some kind of electrical problem within the control box. If there isn't a failure there then I'll start eleminating the limit/home switches.

One thought is that the E-Stop wires which aren't isolated are running in the same cable, might that be a factor???

Thanks
Reply With Quote

  #8  
Old 01-13-2009, 09:32 AM
Mr.Chips's Avatar
Gold Member
 
Join Date: Sep 2003
Location: USA Tucson AZ
Posts: 1,239
Mr.Chips is on a distinguished road
Question Ferrite Beads for Noise/Reset???

I was doing some searching about noise and false triggers on the reset and it seems that adding a Ferrite Bead can reduce or eleminate the problem.

I googled this and see the bead installed in two ways, one where the wire simply goes through the bead and another where the wire is run through the bead and looped around and back through it. Is going through the bead twice better?

Should the bead fit tightly on the cable? Several of the beads I have seen have a pretty large hole through them, or does it make any difference?

Thanks
Reply With Quote

  #9   Ban this user!
Old 01-13-2009, 01:03 PM
 
Join Date: Dec 2004
Location: Memphis, TN
Posts: 1,097
Jay C is on a distinguished road

when I added a probe input to my C10 BOB I started getting spurious triggers which made the probe useless. My solution, I added .1uF capacitor across the +5 and GND. This decouples the AC noise to ground. Not had an issue since. Make sure you have a pull up resistor on your input and let the switches ground when activated. My wires are not shielded but are routed away from the servo lines. Or as in the case of C10 it uses pull-down resistors.

The Debounce is there because physical switches bounce when they make contact. Rather than seeing 1 contact the PC would see 50 or more. By telling the PC to make sure the contact is solid for x number of ms to avoid these multiple "pushes". It is not a fix for noise.

FWIW,
Jay
Reply With Quote

  #10  
Old 01-13-2009, 02:32 PM
Mr.Chips's Avatar
Gold Member
 
Join Date: Sep 2003
Location: USA Tucson AZ
Posts: 1,239
Mr.Chips is on a distinguished road

Originally Posted by Jay C View Post
when I added a probe input to my C10 BOB I started getting spurious triggers which made the probe useless. My solution, I added .1uF capacitor across the +5 and GND. This decouples the AC noise to ground. Not had an issue since. Make sure you have a pull up resistor on your input and let the switches ground when activated. My wires are not shielded but are routed away from the servo lines. Or as in the case of C10 it uses pull-down resistors.

The Debounce is there because physical switches bounce when they make contact. Rather than seeing 1 contact the PC would see 50 or more. By telling the PC to make sure the contact is solid for x number of ms to avoid these multiple "pushes". It is not a fix for noise.

FWIW,
Jay
Jay,

I went out and picked up a couple of ferrite beads and placed one on the lead containing the limit/home, probe, and E Stop wires.

Currently I have all inputs disconnected from the BOB board and installed a jumper between GND and pin 13 (XYZ Limit Home in series) this was to rule out anything on the BOB causing the reset problem. It has ran for an hour without any false triggers.

My next step is to connect all the inputs back up (with the ferrite installed on lead) and let it run for an hour and see if there are any problems. I could not find any information regarding whether to just run the cable through the ferrite just once or loop and go through twice, so I went through twice.

If I have any triggers I'll will go with your suggestion and add a cap between pin 13 and ground. You do mean GND on the BOB board and not chassis ground don't you??? Pin 13 is my XYZ Limit Home in series.

Thanks

Last edited by Mr.Chips; 01-13-2009 at 04:03 PM. Reason: Correction of terms
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 01-13-2009, 02:44 PM
 
Join Date: Dec 2004
Location: Memphis, TN
Posts: 1,097
Jay C is on a distinguished road

Yes, I mean logic ground not chassis ground (and without getting into semantics they could be at the same potential). The ferrite might help but I think it's more for fast signals (i.e. high frequency like USB, RF).

From my experience it's the "spikes" on the power rails that cause the interference, not outside EMI.

Jay
Reply With Quote

  #12  
Old 01-13-2009, 04:01 PM
Mr.Chips's Avatar
Gold Member
 
Join Date: Sep 2003
Location: USA Tucson AZ
Posts: 1,239
Mr.Chips is on a distinguished road

Originally Posted by Jay C View Post
Yes, I mean logic ground not chassis ground (and without getting into semantics they could be at the same potential). The ferrite might help but I think it's more for fast signals (i.e. high frequency like USB, RF).

From my experience it's the "spikes" on the power rails that cause the interference, not outside EMI.

Jay
Jay,

I installed the ferrite bead, and it didn't have any effect in eleminating false triggers. Frequently while watching the diagnostic screen I would get a false trigger but the led's wouldn't light. ??? Possibly too fast a spike??

Per your suggestion I then installed a .1uf Cap between the GND and pin 13 (serial input of home/limits) of the BOB. After watching it for 20 minutes I didn't get any false triggers, it is still idling so will monitor it for at least an hour before I start celebrating. But it does look promising.

If this works, I may have to add a .01uf cap to pin 14, for the probe.

Thanks.

Seems the EStop which is on pin 15 and GND, both of which are on the nonisolated side of the board doesn't have any false trigger issues.
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
TL-2 For The Home Shop: An Adventure In Machine Moving Geof Haas Lathes 9 12-12-2009 11:04 AM
home&limit switchs? automatic DIY-CNC Router Table Machines 1 12-31-2007 04:02 PM
Limit/Home switches Graeme Carken Products (Deskam, DeskCNC etc) 2 06-19-2006 03:41 AM
Limit - Home Switches psch3 General Electronics Discussion 3 04-21-2005 11:24 AM
Home and Limit kenlambert General Metal Working Machines 6 04-02-2004 11:00 AM




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