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! > Machine Controllers Software and Solutions > TurboCNC


TurboCNC Discuss TurboCNC controller software here!


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 04-27-2005, 05:32 AM
itsme's Avatar  
Join Date: Jun 2004
Location: United Kingdom
Posts: 445
itsme is on a distinguished road
What happens with limit switches???

Hi there,

I'm just in the process of converting a mill to CNC and have decided to use TurboCNC to run it. I've had a good look at TurboCNC v4.01 and how it is all setup, but need some help with limit switches.

I'm clear on how to wire it all up and then set it up in TCNC to make them work, but I have absolutely no idea what the software is going to do once the machine hits a limit. Does it just stop the axis that hit the limit? Does it stop all axes? Does it have to sorted out by going into jog mode and 'reversing' out? How does it work????

Thanks
Warren
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 04-27-2005, 08:15 AM
Bubba's Avatar  
Join Date: Mar 2004
Location: LaGrange, GA USA
Posts: 1,303
Bubba is on a distinguished road

itsme,
When you have the program PROPERLY set up, the axis will move to the limit switch at the Homing speed set in the ini. When the switch "trips", the axis will reverse until the switch "un-trips". Depending on the type of switch, this could be several .010s" or it might be nil in the case of an optical.
If you do a G28, ALL axis will move to home and each one will stop. Then each will reverse direction until home. You can (when the program is working right) home a single axis in the jog screen and it will act as indicated above.
IF it just goes to the home switch and stops (no reversal) then you do not have the paramaters properly set up (as me how I know
If you want a version of 4.01 that will do single axis homing under G28, let me know as I have compiled a version that works for me.
__________________
Art
AKA Country Bubba (Older Than Dirt)
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 04-29-2005, 11:15 PM
 
Join Date: Jan 2004
Location: Bellingham, WA
Posts: 104
Monte is on a distinguished road

Below is a snip directly from the manual. This is for Limit Switches, not Home Switches. Of course proper wiring and program configuration is assumed.

Monte


"If you hit ANY limit switch, the machine won't move again until you either disable the switch, or use Jog mode to back away. These are for preventing "going off the rails" only - use the home switches for calibrating the machine."
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 04-30-2005, 02:45 AM
itsme's Avatar  
Join Date: Jun 2004
Location: United Kingdom
Posts: 445
itsme is on a distinguished road

Hi there,

Thanks for the replies - they've cleared up a few {a lot} of the issues and created a few more...

Bubba, it sounds like you've set up your limit switches to act as home switches as well. Am I correct in thinking this (ie. is it possible to use the same switch for home and limit?)? If so, how exactly does the software work for the home switches? Do you tell it to 'home' and then it goes in a certain direction (depending on setup) until it hits the home (limit) switch and then reverse out a bit like you explained? Would this position, just off the limit switch, be home or can the machine move back further to make home a different point?

I have always avoided the subject of home switches, mainly because I never knew what they were exactly or how they worked, so I may as well learn about them sometime (like now)... I'll also go and play around with the settings in TCNC to see what I can find.

Thanks again
Warren
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 04-30-2005, 04:44 AM
 
Join Date: Aug 2004
Location: Greece
Posts: 145
CNCgr is on a distinguished road

I haven't set my home switches up as limit switches yet but I intent to. It is supposed to work like this: you use 3 home switches and 3 limit switces (wired in series). If you use a home command it does as Bubba said. If it trips a home switch while NOT on a homing move it works as a limit switch.

Originally Posted by itsme
Would this position, just off the limit switch, be home or can the machine move back further to make home a different point?
No, you can't go past the limit switches unless you use a manual bypass switch/button. You can, however, set the home position to be something other than 0, e.g.30mm. This way when it trips the switch it sets itself to 30 and it's like the home position is 30mm futher away, you just can't go there.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 04-30-2005, 06:24 AM
itsme's Avatar  
Join Date: Jun 2004
Location: United Kingdom
Posts: 445
itsme is on a distinguished road

Hi there,

Thanks for the info.

What I am now thinking of doing, is using 1 limit and 1 home switch per axis that are wired in series (like you said, CNCgr). The 3 axes will be individual (wired in parallel???).

Is it possible to make the home position something like -5mm (negative five)? That way, when the switch is tripped, it will make home -5mm, so that the code can go to 0 and still have some clearance before it hits the switch???

I hope this makes sense.

Warren
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 04-30-2005, 06:51 AM
Bubba's Avatar  
Join Date: Mar 2004
Location: LaGrange, GA USA
Posts: 1,303
Bubba is on a distinguished road

itsme,
IF I am reading you correctly, YES. A lot will also depend on the type of switch used. For instance, if a microswitch is used, there is hysterious (sp?, I spell so bad even the spell checker can't figure it out As a result, it will trip out as some point and then move back. This will give you exactly what you want, to be able to move to 0 and not trip the limit. Now, if you have say an optical limit, you will have less hysterious and therefor less movement room. I have an optical for setting my Z height and you can breathe on it and make it change state! The home point can be set to any refrence, but I still use 0 as mine and then use fixturing (G54 etc) to set the origin of my work piece. This way, the home switch provides a REPEATABLE refrence position for machine coordinates and all my parts to be machined have a seperate origin for them. This makes it easy to cad/cam the part up as I have the ability to control its refrence (origin) point.
To answer CNCgr's question, Yes I use a combination home/limit switch and have done so since V3.x of Turbocnc. On the X and Y axis this is accompolished by using ONE switch that is actuated by stops on the table (switch mounted in the center of travel). This way, I can use more of the table travel (and on a mill/drill) this is limited in the first place. For instance, on the Y axis, my limit to limt travel is a tad over 7" and I quite often use the entire 7" to machine a part! If I had seperate home/limit switches, there is a problem of where to mount them and depending on how I set it up, it would reduce the travel. For the X and Y, I use AA Mini Din lever operated switches which are also coolant resistant. Trying to mount more than one on an axis would be an exercise in making blivits (10 lbs of stuff in a 5 lb bag For the Z axis, I used regular micro switches as these are up out of the way of coolant and swarf. Originally, I used micro switches for the X and Y and quickly found out what coolant will do for the operation of these. All switches are setup for NC operation.
Hope this helps, but let me know if you need more info.
__________________
Art
AKA Country Bubba (Older Than Dirt)
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 04-30-2005, 07:19 AM
 
Join Date: Aug 2004
Location: Greece
Posts: 145
CNCgr is on a distinguished road

Originally Posted by itsme
What I am now thinking of doing, is using 1 limit and 1 home switch per axis that are wired in series (like you said, CNCgr). The 3 axes will be individual (wired in parallel???).
The home switches need to be individual i.e. one pin for each. The three limit switches can be connected all to one pin in series. Total 4 pins. N.C. switces are better so that if a connection fails it will be interpreted as a switch press event and the machine will stop.
Originally Posted by itsme
Is it possible to make the home position something like -5mm (negative five)? That way, when the switch is tripped, it will make home -5mm, so that the code can go to 0 and still have some clearance before it hits the switch???
Yes, you can setup any position you want. As Bubba said, though, it's better to use fixture settings and set 0 whereever you want (e.g. workpiece corner etc).

Bubba, I think you mean hysterisis?

Nikolas
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 04-30-2005, 07:26 AM
Bubba's Avatar  
Join Date: Mar 2004
Location: LaGrange, GA USA
Posts: 1,303
Bubba is on a distinguished road

CNCgr,
Thanks, thats exactly the word I was trying to spell. I need more coffee and maybe my brain will engage!
__________________
Art
AKA Country Bubba (Older Than Dirt)
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 05-13-2007, 08:26 PM
 
Join Date: Mar 2005
Location: ENGLAND
Age: 46
Posts: 1,655
Oldmanandhistoy is on a distinguished road

Originally Posted by Bubba View Post
When you have the program PROPERLY set up, the axis will move to the limit switch at the Homing speed set in the ini. When the switch "trips", the axis will reverse until the switch "un-trips"

Firstly I have to say I find home switches and the way the machine homes with Turbocnc perplexing. When setting up my first machine and using the home command the Z axis would home first on its own then Y and X would home together. I actually like this method of homing as it made sure the cutter did not hit anything while homing.
On my second machine I thought I set up the software as the first machine but all axis would home at the same time but not reverse off of the switches.
I am now setting up my 3rd machine and would like to use the home switches as limit also.
Could some one please explain why my axes do not reverse from the home switches after homing.

John
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 05-14-2007, 07:49 AM
Bubba's Avatar  
Join Date: Mar 2004
Location: LaGrange, GA USA
Posts: 1,303
Bubba is on a distinguished road

John,
It sounds like something is wrong in the configuration! The best advice I can give is to have ONLY one axis configured to work and test it. IF it works correctly, then disable that axis and move on to the next one. Repeat as necessary.
Back when I was setting mine up, I found that if one axis was not exactly correct, then all will fail as you have noted. Also, when checking out an axis, I would trip it in the middle of the return by hand. That way, I could make a change as necessary without having to go through the jog screen etc to back it off the limit. To check each switch before trying, I use the "Active Port" feature "F2" "<ALT>+F2" and then manually move the switches to confirm proper action.

Then to further confuse the issue, I have modified Turbocnc to allow single axis homing in MDI. Then I have an aux. Z axis homing switch and under g-code, home to it with a tool in the quill and it will automatically handle tool length compensation:})

Bubba
__________________
Art
AKA Country Bubba (Older Than Dirt)
Tweet this Post!Share on Facebook
Reply With Quote

  #12   Ban this user!
Old 05-14-2007, 04:10 PM
 
Join Date: Mar 2005
Location: ENGLAND
Age: 46
Posts: 1,655
Oldmanandhistoy is on a distinguished road

Thanks Bubba for your time and suggestions I will try as you have described.

John
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
Help with limit switches and Xylotex board dowling177 Xylotex 5 11-26-2008 03:51 PM
Limit switches itsme General Electronics Discussion 5 05-01-2005 06:02 PM
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
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 03:02 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