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 > LinuxCNC (formerly EMC2)


LinuxCNC (formerly EMC2) Discuss LinuxCNC (formerly EMC2) Controlers here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 01-20-2011, 10:06 PM
 
Join Date: May 2009
Location: USA
Posts: 19
jcizek is on a distinguished road
need some help with homing switch config

Hi all,
I feel like I'm oh-so-close to having my first CNC machine actually do something, but I am stuck and need some assistance...

I cannot figure out what I should be using (and what I have wrong) for my limit switch config. I have read the (somewhat limited it seems) documenatation on homing in the EMC docs but am still confused.

Basically, my machine has limit switches placed about 1/2" from the hard stops. They are wired in series and are normally closed switches. What I'd like to have happen is to have "home" .5" from the limit switch.
Not sure if I should choose "both limit" or "home+both limit" or what in the config... I assume that if I want the home to be .5 inside the switch limit, I just enter .5 in the "home" box in the stepconf setup. Is that correct? I have tried inverting the input, changing combinations, you name it. Kind of frustrated.. I keep getting errors of "joint 0 error- limit switch" or "can't unhome while joint0 moving" errors depending on the setup.

Any guidance would be *greatly* appreciated!! Thanks in advance.
-James
Reply With Quote

  #2   Ban this user!
Old 01-21-2011, 11:11 PM
 
Join Date: May 2009
Location: USA
Posts: 19
jcizek is on a distinguished road

well folks, I have solved part of my problem. The documents were wrong about the pinouts on my break out board. I now have my machine homing properly.

I still have a question though, I am a little unclear about the difference between "Home" and "Home+Limit"

When I use "Home", the machine homes properly and sits at the home position waiting like I'd expect. But if I use "Home+limit", the machine homes properly, then about 5 seconds after homing is completed, it throws a joint 0 limit error.

So my first question is, is it safe to use HOME only? I assume if things went awry and the machine reached the switched during normal operation, it wouldn't stop it, correct? Isn't that what the LIMIT part of HOME+LIMIT is for?
Second, if I want limit protection, do I have to leave the HOME position at 0,0 so the machine sits on the switch the whole time it's homed?

Thanks!! -James
Reply With Quote

  #3   Ban this user!
Old 01-22-2011, 12:38 AM
 
Join Date: Nov 2005
Location: Canada
Posts: 465
chester88 is on a distinguished road

I'll try to tell no lies here...homing can be confusing

using HOME only will not give you limits protection at that end of the axis.
Yes that is what the HOME + LIMIT is for.
HOME POSITION is a location that the machine will go to AFTER homing is complete.
HOME SWITCH location is a reference point for EMC to figure out where everything is.

You don't mention what you entered for home switch location or table travel.

Chris M
Reply With Quote

  #4   Ban this user!
Old 01-22-2011, 07:37 AM
 
Join Date: May 2009
Location: USA
Posts: 19
jcizek is on a distinguished road

Hi Chris,

Thanks for your reply. You are right! Homing is confusing. Being brand new to CNC, I have spent literally months trying to read as much as I could about everything. I think I have a pretty good grasp on things, but homing is defintely causing me some lost hair :-)
I have my home position set to 0.1 on the X axis, and 1.0 on the Y axis. Both of those locations are far enough away that they un-trip the switch. Currently I have the table travel set "0 to 24" in both X and
Y. I wondered about this some, but after reading the manual, and seeing
where axis starts up, it seemed like 0,0,0 would be in the corner of the table and X and Y would be postive from there and Z would be negative as it traveled towards the table.

So, I wonder if it's possible to have a HOME anywhere BUT on the switch trip location if you use HOME+LIMIT?

Thanks. -James
Reply With Quote

  #5   Ban this user!
Old 01-22-2011, 03:16 PM
 
Join Date: Nov 2005
Location: Canada
Posts: 465
chester88 is on a distinguished road

hmm you still haven't clearly told me what your home switch location is set at.
i will assume it's set to zero.
It's easy to confuse home switch location and home location - they are not the same thing.

Your right you don't want home location on a limit switch.
but home switch location can be on a limit switch.
( Well technically thats not true either - the stepconf program will make sure the limit and home are just slightly different by about .001 if i remember right)

The other thing to note is all these settings are defining the MACHINE COORDINATE system. When machining you set a user coordinate system (G54 etc) where the Origin (zero point) can be set anywhere inside the machine envelope.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-22-2011, 09:58 PM
 
Join Date: May 2009
Location: USA
Posts: 19
jcizek is on a distinguished road

sorry Chris, I thought I had explained that in the first post. I have only one set of switches on each axis, and they are about 1/2" from the hard stop of the machine. I have the "home switch location" set to 0 in the config, although "HOME" is set to a bit inside of each of the switches. I don't know why I'm having such a hard time understanding this.... the docs are just so vague as to what each setting means exactly, and what requirements each has...
After much screwing around, i still can't get anything to work right except choosing "home" only. As soon as I add limit in any way, I get errors.

So I wonder... is my problem that i have listed 'home switch location' to 0?
Thanks! I appreciate your patience as I struggle to understand!!
-James
Reply With Quote

  #7   Ban this user!
Old 01-23-2011, 03:25 PM
 
Join Date: Nov 2005
Location: Canada
Posts: 465
chester88 is on a distinguished road

hmm off hand I can't think whats wrong with this.
Can you post your configuration files including the stepconf file?

Chris M
Reply With Quote

  #8   Ban this user!
Old 01-23-2011, 05:52 PM
 
Join Date: May 2009
Location: USA
Posts: 19
jcizek is on a distinguished road

Well Chris, I think I have figured it out. I went back out there today, set it up the way I thought was correct... and it worked... well, ok, it worked for about 2 minutes ;-)

I setup with both home+limit, the machine homed properly and I just let it set... doing nothing, not touching anything. About 2 minutes later, I get a joint 0 limit error pop up. I start experimenting, and the axis' sometime home successfully and sometimes not, Z is the worst, Y second and X never has a problem.

So, I'm thinking (as I have read in other posts) that I have some type of noise problem on the switch lines. I used shielded cable, and tied the shield to gnd on the controller end (and left the ground unconnected at the machine end, as is usually best practice for a shield line) but still have troubles. My break out board is supposed to have pull up resistors to pull the line up when the switch opens, but I'll have to ohm that out and verify. If all is well, looks like i'll have to build a buffer circuit to buffer the limit lines.

I'll work on my false tripping problem and report back if that solved the problem.
Thanks again Chris!! I got anxious after all the days of screwing around with this and disabled home and limit switches, manually homed it, and carved my first piece today. It looks beautiful! I appreciate your help, it's really nice to have a forum like this with great people like yourself to bounce things off of and receive help from. Thanks again!!

-James
Reply With Quote

  #9   Ban this user!
Old 01-24-2011, 12:59 AM
 
Join Date: Nov 2005
Location: Canada
Posts: 465
chester88 is on a distinguished road

Hey James.

Glad ur figuring it out.
You did basically what was the next thing I was going to ask.
could be the switches themselves too.

I find trying to help people helps me understand EMC better.
You are very welcome.
There is also an EMC forum too at LinuxCNC.org - Home

Chris M
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
Homing and limit switch shadowless Taig Mills & Lathes 14 09-18-2009 07:26 PM
Limit switch config in Mach3 Richotech Mach Software (ArtSoft software) 4 07-27-2009 12:16 PM
Homing Switch Lessons HackMax Benchtop Machines 11 06-27-2009 12:29 PM
Combined limit/home switch config... jvanick LinuxCNC (formerly EMC2) 7 04-21-2009 06:56 AM
what is the best homing and limit switch setup? Bryscnc Machines running Mach Software 1 09-28-2006 05:37 AM




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