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 04-28-2010, 01:32 PM
 
Join Date: Mar 2010
Location: none
Posts: 51
spaltiel is on a distinguished road
limit switches

Hi everyone,

I am trying to connect the limit switches but I am short with pins.

I am using keiling kit KL4030 + C10.

In order to wire X+ and X- and home switch i need 9 pins.

Can I connect the limit switches into the same pins and also to know which one triggered the system? because I don't think that I have so many pins available.

maybe, someone can guide me how to connect them?

thanks,
Amir
Reply With Quote

  #2   Ban this user!
Old 04-28-2010, 01:58 PM
Bubba's Avatar  
Join Date: Mar 2004
Location: LaGrange, GA USA
Posts: 1,357
Bubba is on a distinguished road

Anir,
You have not stated what controller your using (Mach, Turbocnc, etc) so I can only guess. But in my controller, there is the option to use "Home as limit" and I use only one switch per axis or you could use two switches per axis and series them (NC operation only). Therefore, I need only three pins for input. Been working that way for several years now and no problems.
__________________
Art
AKA Country Bubba (Older Than Dirt)
Reply With Quote

  #3   Ban this user!
Old 04-28-2010, 02:02 PM
metalworkz's Avatar  
Join Date: Oct 2006
Location: Modesto, CA U.S.A.
Posts: 892
metalworkz is on a distinguished road

Hello,
You can connect the switches in series so that you use only 2 pins for all 3 switches for homing each axis. Use the automatic setup in Mach3 to get each one set up correctly and just follow the steps to trip each switch as Mach prompts you for input. That is for homing switches only. I am using soft limits in Mach3 and have not added limit switches to each axis, but I think I read that you might need another break out board to obtain enough pins in that case. I would suggest to just use soft limits in Mach and the additional limits can be added later if really needed.
Regards,
__________________
Regards,
Wes
Reply With Quote

  #4   Ban this user!
Old 04-28-2010, 02:35 PM
 
Join Date: Mar 2010
Location: none
Posts: 51
spaltiel is on a distinguished road

Originally Posted by Bubba View Post
Anir,
You have not stated what controller your using (Mach, Turbocnc, etc) so I can only guess. But in my controller, there is the option to use "Home as limit" and I use only one switch per axis or you could use two switches per axis and series them (NC operation only). Therefore, I need only three pins for input. Been working that way for several years now and no problems.
I'm using Mach.

How do you know which switch triggered your system if the connection is series.

Amir
Reply With Quote

  #5   Ban this user!
Old 04-28-2010, 02:38 PM
 
Join Date: Mar 2010
Location: none
Posts: 51
spaltiel is on a distinguished road

Originally Posted by metalworkz View Post
Hello,
You can connect the switches in series so that you use only 2 pins for all 3 switches for homing each axis. Use the automatic setup in Mach3 to get each one set up correctly and just follow the steps to trip each switch as Mach prompts you for input. That is for homing switches only. I am using soft limits in Mach3 and have not added limit switches to each axis, but I think I read that you might need another break out board to obtain enough pins in that case. I would suggest to just use soft limits in Mach and the additional limits can be added later if really needed.
Regards,
thanks
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 04-28-2010, 02:46 PM
Bubba's Avatar  
Join Date: Mar 2004
Location: LaGrange, GA USA
Posts: 1,357
Bubba is on a distinguished road

A quick look at the switches and seeing which stop has hit the switch will tell quite quickly.
__________________
Art
AKA Country Bubba (Older Than Dirt)
Reply With Quote

  #7   Ban this user!
Old 04-29-2010, 07:30 AM
johnmac's Avatar  
Join Date: May 2007
Location: USA
Posts: 376
johnmac is on a distinguished road

With a simple series wiring setup as mentioned, Mach will not know, as more than one axis may be moving when the trip occurred. You would need to manually jog the axis away from the switch. In Mach you can also setup soft limits. Correctly setup, the machine will stop before it hits the switches.

John
Reply With Quote

  #8   Ban this user!
Old 04-29-2010, 09:49 AM
 
Join Date: Apr 2010
Location: US
Age: 33
Posts: 25
Zac.Hester is on a distinguished road

I don't know how adventurous you want to be with the controls, but a multiplexer would allow you to wire more switches per input pins. Of course, there has to be support in your controller application (Mach?) to look at multiple input pins at once, and "decode" the bit sequence. Since you're using an off-the-shelf controller, I can't say if it will work at all, but might be worth looking into if you're really concerned about knowing which switch is tripped.

Otherwise, it is a more common solution to use normally-closed switches in series, and just live with the signal knowing only that a limit has been reached--not *which* limit has been reached.

And, like others have said, using soft limits is a completely valid option.

[I'm planning on using two 16:1 multiplexers allowing me to wire 32 digital inputs onto an 8-bit bus. My chip has a bunch of unused analog inputs, so I'm also going another step beyond and building two DACs to drop those 8-bits onto two physical pins.]
Reply With Quote

  #9   Ban this user!
Old 05-01-2010, 04:39 AM
 
Join Date: Mar 2010
Location: none
Posts: 51
spaltiel is on a distinguished road

Thank you all. After reading all your comments I decided to wire all the microswitches in series.

Now I am facing wierd problem with mach 3. I can't turn ON the "override limits". after triggering the limit switch I can't jog off.

Does anyone know how to solve this problem?

thanks,
Amir

BTW i have attached few pictures of my machine (not finished yet).
Attached Thumbnails
Click image for larger version

Name:	CNC_0001s.jpg‎
Views:	67
Size:	84.1 KB
ID:	106171   Click image for larger version

Name:	CNC_0002s.jpg‎
Views:	61
Size:	81.8 KB
ID:	106172   Click image for larger version

Name:	CNC_0003s.jpg‎
Views:	69
Size:	68.8 KB
ID:	106173  
Reply With Quote

  #10   Ban this user!
Old 05-02-2010, 12:31 AM
metalworkz's Avatar  
Join Date: Oct 2006
Location: Modesto, CA U.S.A.
Posts: 892
metalworkz is on a distinguished road

Do you have the switches set up as a Home switch on each axis? How are you trying to jog when the switch is tripped? Have you tried the MPG that pops up when you hit the 'tab' key? If you have the switches set up as Home for each axis then you can check the box in 'Homing and Limits' to auto-zero the axis and then move off the switch.
Regards,
__________________
Regards,
Wes
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 05-02-2010, 04:26 AM
 
Join Date: Mar 2010
Location: none
Posts: 51
spaltiel is on a distinguished road

Originally Posted by metalworkz View Post
Do you have the switches set up as a Home switch on each axis? How are you trying to jog when the switch is tripped? Have you tried the MPG that pops up when you hit the 'tab' key? If you have the switches set up as Home for each axis then you can check the box in 'Homing and Limits' to auto-zero the axis and then move off the switch.
Regards,
"Do you have the switches set up as a Home switch on each axis?"
I don't have Home switches only limit switches wired in series.

"How are you trying to jog when the switch is tripped?"
I'm trying to jog off using my keyboard (arrows keys) but in order to do it I understand that at first I need to press 'override limits' however it is not responding.

"Have you tried the MPG that pops up when you hit the 'tab' key"
I tried but nothing happened BTW I think it is the same as using the keyboard.

I have problem with the 'OverRide limits' which is not responding and I can't jog off the limit switches.

thanks in advance,
Amir
Reply With Quote

  #12   Ban this user!
Old 05-02-2010, 09:42 PM
metalworkz's Avatar  
Join Date: Oct 2006
Location: Modesto, CA U.S.A.
Posts: 892
metalworkz is on a distinguished road

Hello Amir,
I don't see how the machine will be able to know where it is on any of the axis if you don't have a Home switch on them. I am using only 3 switches(1 on each axis) and each of them is set up as the Home for it's axis. When you start your machine you reference each axis to it's Home switch and then Mach3 knows what location each axis is at and keeps track of them from there. I don't know a lot about the limits set up, but I do think you need to have a Home switch for each axis. Maybe someone that knows more will reply.
Regards,
__________________
Regards,
Wes
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 Switches dang Benchtop Machines 1 09-13-2008 04:03 PM
Limit switches and homing switches AeroKam Open Source CNC Machine Designs 16 01-05-2008 07:56 AM
The relationship of limit switches to home switches. MikeAber General Electronics Discussion 4 11-04-2004 01:28 PM
Limit switches and home switches viktorcnc TurboCNC 2 08-03-2004 06:11 AM
Home switches and limit switches. ynneb General Electronics Discussion 5 04-08-2004 05:32 PM




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