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 06-29-2009, 08:17 PM
 
Join Date: Jan 2007
Location: USA
Posts: 27
kennected is on a distinguished road
Limit switch problems

Hello Gentlemen,

I've been paying attention to this forum for about 3 years, got the bug and built one. It's been a long time coming but I'm about ready to run something. X, Y, and Z are done. Xylotex board and moters. You guys have messed me up good with this "disease".
Everything seems to be ready with Mach 3 and just so I don't load some code and tear up 2 years of serious puttering, I'm using all the discipline I have to wait until I have a limit switch circuit wired and proven. There's the current rub. I'm using 18 ga. wire and normally closed micro switches (I've even wired in a NC E-stop in the same circuit) to make the loop and something isn't right. When I press reset in Mach 3, after a second or two the reset says a limit switch has been tripped when nothing has been touched. I've tried to prove the board by putting a short loop of wire on the Xylotex terminals and the reset holds. If I wire it back to my limit switch circuit and doesn't. When I press reset, sometimes it takes a second and sometimes it takes 5, but it always faults as if the circuit has tripped opened. I keep looking and I don't think the fault is in the wiring. It's pretty simple and it looks right.

I can't say I understand all the electronics, but I'm currently configured in Mach 3's Input config with the ++ and -- for each axis "Enabled" and each axis' Home "Disabled", The port number for all axises is number 1, and pin number 10, with "Active low" and "Emulated" boxes disabled with a red "x". Does this sound right?
I'm probably a bit over my head, but this has been a lot of fun and it's about to get funner.

Thanks in advance,
Ken
Reply With Quote

  #2   Ban this user!
Old 06-30-2009, 07:36 AM
 
Join Date: Apr 2009
Location: USA
Posts: 14
oldskimmer is on a distinguished road

I recently built a machine with the exact same problem. Any slight variation in voltage caused by wiring interference will trip Mach3. I tried everything, including Mach3 config changes, sheilded wires, grounding whole machine to controller box and anything else. Although it improved, it still kicked out at various times while running the program. I finally solved the problem by adding 4 normally closed reed relays, each controlled by a normally open limit switch. System tests out fine and haven't had miss yet during any program no matter how long it is.
Reply With Quote

  #3  
Old 06-30-2009, 08:11 AM
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?

You have noise on the limit switch lines. Try using shielded wire, grounded at one end only. You can increase the Debounce setting in Mach3 to mask the noise issue and possible get it to work as well.
__________________
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 06-30-2009, 06:34 PM
 
Join Date: Jan 2007
Location: USA
Posts: 27
kennected is on a distinguished road

Thanks gents. I'll be giving your suggestions a try and reporting back in to this thread.

Thanks again,
Ken
Reply With Quote

  #5   Ban this user!
Old 06-30-2009, 07:00 PM
 
Join Date: Jul 2005
Location: USA
Posts: 1,875
Torchhead is on a distinguished road

THe xylotex has no isolation on the inputs or outputs. That means the outputs from your switches are directly connected to the high impedance parallel port pins. That also means just a couple of volts of noise on the ground leads will give a false "positive". The motors are connected to the same ground and produce enough swing on the ground to cause all kinds of problems. The "relay" method acts as an isolator so the noise connection is broken. Another way is to use opto isolators. You can use all the shielded wire you want but if the noise is the common ground connection it won't help (and may make things worse).

One of the reasons good BOB's have isolated inputs is to break the noise link. It also helps that the Opto's typically used have poor upper frequency response (at the PWM frequency motors typically use) so reject a lot of that as well. Finally the opto input is really low impedance so it takes a LOT of noise to make one turn on.

Remember what my old EE prof told me many years ago: "Ground is not ground". I thought he was crazy at the time but years of hard lessons have proven him out.

Star grounding of all critical circuits will work to get rid of most noise but unfortunately you may not have access to the lowest impedance point of each circuit. Running wires across (daisy chaining) or tying cable shields on both ends just gives noise more paths to travel. Your PC ground which the parallel port uses for one side can be several volts away from the ground on the Motor DC.

TOM Caudle
www.CandCNC.com
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 06-30-2009, 11:21 PM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

There is no technical reason you won't be able to get your board to work. You didn't mention if you had added pullup resistors or not. I don't believe Xylotex boards have any pullup resistors. A few simple recommendations:
1. The common side of your switches should be wired directly to the xylotex board gnd terminal on the connector for the unused pins of the db25.
2. You need to add pull up resistors, per the xylotex data sheet. Use 1K pull up resistors.
3. Use NC contacts on the switches.
4. Don't tie the limit wiring up near the stepper motor cables.

If you still have an issue, as ger21 suggested you can use mach3's debounce option.
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com

Last edited by pminmo; 06-30-2009 at 11:21 PM. Reason: add pullup values
Reply With Quote

Reply

Tags
limit switch




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- home switch normd CamSoft Products 1 05-16-2008 06:56 PM
limit switch and home switch setup Runner4404spd General Electronics Discussion 0 12-15-2005 07:58 AM
Limit Switch Problems johnd Mach Software (ArtSoft software) 2 12-06-2005 10:04 PM
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 07:08 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