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 11-11-2007, 06:30 PM
 
Join Date: Sep 2007
Location: USA
Posts: 740
BobF is on a distinguished road
Limit switches

I have a hobbyCNC board. It is supposed to have pullup resistors on the input pins. I have my limit switches wired in series and when I use the auto configure in Mach3, it sees each switch as it is tripped. If I leave the switches in the config, Mach3 says a limit switch is tripped as soon as I turn it on.
What to do?
I am thinking I need to add an additional resistor.
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 11-11-2007, 06:52 PM
 
Join Date: May 2006
Location: Australia
Posts: 1,345
Greolt is on a distinguished road

Because the pins have a pullup resistor already on them that means that the pin or input is high when at rest.

The normal way to wire your limit switches is normally closed (NC) between the input pin and ground. That brings the input or pin low when a limit switch is not activated.

Then when a switch is activated, (a limit is reached) then the switch opens and the input returns to high.

In "Ports and Pins" set the relevant input to active high. In other words leave it crossed in the active low column.

Hope that's clear.

Greg
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 11-12-2007, 09:14 AM
 
Join Date: Sep 2007
Location: USA
Posts: 740
BobF is on a distinguished road

Thanks Greg.
That is the way it is setup, but Mach thinks it is active when it is not. There is a selection in the ports and pins setup to do this automatically. If I use that Mach sees me trip each switch and sets the config just as you said, but as soon as I save that into the config, it says I have a limit switch triggered, when I don't.
Is there some other setting I need?
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 11-12-2007, 03:50 PM
 
Join Date: May 2006
Location: Australia
Posts: 1,345
Greolt is on a distinguished road

On the diagnostics page is the LED lit for each of the limits? LED lit means it is active.

They should not be active until you activate a switch.

If they are not lit then it sounds like electrical "Noise" is triggering the Estop condition.

Then enter about 2000 in the "Debounce Interval" on General Config and see if that stops it.

Greg
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 11-12-2007, 08:34 PM
 
Join Date: Sep 2007
Location: USA
Posts: 740
BobF is on a distinguished road

Thanks Greg,
The debounce fixes it almost. It now works for about 5 minutes or so and then it triggers again sometimes. Would increasing or decreasing the number help?
What common sources of noise could do this?
Motor wiring is shielded, and some of the limit switch wiring is as well. Maybe I need to rewire limits with all shielded.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 11-12-2007, 09:16 PM
 
Join Date: May 2006
Location: Australia
Posts: 1,345
Greolt is on a distinguished road

Yeah take it up to 3000 and see if that stops it.

I personally prefer to overcome noise with strategically placed capacitors but as this is only limits then a high software debounce should be fine.

Sometimes simply having some physical separation of signal and motor wiring can make the difference. For example they may share one conduit.

Greg
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 06-15-2008, 12:39 PM
 
Join Date: Apr 2004
Location: canada ontario
Posts: 278
corrie is on a distinguished road

Hey all,can,t seem to figure out which pin on my bob is for which axes. First off my home switches are the magnetic type and all three have three wires red,green and black. I use CNCPRO and in the software X is pin13, Y is pin 12 and Z is pin 11.On the bob I have a 10 pin connector 1 through ten starting at the top, you will see in the picture. My red wire is on-5 and my black is on-6. I assume red is power and black is ground. Pin 1 has a white wire ,pin 4 has a green wire and pin 7 has a blue wire. Comeing out of the bob the red wire is joined to all the red wires from the switches and the black wire comeing out of the bob is joined to all the black wires from the switches. This leaves me with three green wires from the switches . I,ve ried a process of elimination by putting a washer in one switch and joging any axes to see whitch one would trip and then reversing those wires but still messed up. I don,t know if this makes any sence but just cant seem to figure it out, Iv,e tried switching pairs back and forth to no avial.
Attached Thumbnails
Click image for larger version

Name:	100_1478.jpg‎
Views:	54
Size:	75.3 KB
ID:	61557   Click image for larger version

Name:	100_1480.jpg‎
Views:	56
Size:	71.5 KB
ID:	61558  
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 06-15-2008, 02:07 PM
Crevice Reamer's Avatar  
Join Date: Mar 2008
Location: USA
Posts: 3,454
Crevice Reamer is on a distinguished road

Hi Corrie! You can't assume that the colors mean anything. Use a volt-ohmeter to find continuity between the wires. Three wires probably means you have BOTH normally open AND normally closed contacts. The two wires that read continuity with the switch at rest are normally closed and would be the wires to use as limit switches. One of the those two wires will also show continuity with the extra wire when the switch is activated. THAT wire will be your common wire and the last wire will be the normally open "home" switch.

I hope this is helpful to you.

CR.
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 06-15-2008, 07:31 PM
 
Join Date: Apr 2004
Location: canada ontario
Posts: 278
corrie is on a distinguished road

Thanks for the response, I did check for continuity but not in the way you suggest. I kinda get what you are saying though, I will try agian,thanks.
Tweet this Post!Share on Facebook
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
Limit switches and homing switches AeroKam Open Source CNC Machine Designs 16 01-05-2008 08:56 AM
The relationship of limit switches to home switches. MikeAber General Electronics Discussion 4 11-04-2004 02:28 PM
Limit switches and home switches viktorcnc TurboCNC 2 08-03-2004 07:11 AM
Limit switches Phoenix-MN DIY-CNC Router Table Machines 0 04-14-2004 02:16 PM
Home switches and limit switches. ynneb General Electronics Discussion 5 04-08-2004 06:32 PM




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