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 > CNC Teknix Servo Control Products > General Topics



Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 09-12-2011, 01:08 PM
hub hub is offline
 
Join Date: Sep 2010
Location: Finland
Posts: 435
hub is on a distinguished road
Precise homing?

Hi, I didn't find much info on the topic doing search.
So, would be nice to share some ideas / pick some brains.

Main point, it should be a "DIY-budget" solution..
And, to be able to home the machine to a very accurate position (+-0.001mm)

- Mechanical micro switches: (+)cheap, precise enough?, (-)will wear with use..
- Inductive prox. sensors: (-)not so cheap, (-)precision?, (+) long life time
- Capacitive prox. sensors: (-)not so cheap, (-)precision?, (+) long life time
- Photo sensors: (-)some are cheap, (+-)precision depends.., (+)long life time
- Laser sensors: (-)expensive, (+)good precision?, (+)long life time(?), (-)bad to eyes?
- Other?

Ideas? Experience?
I would go for a photo-sensor (sender-receiver) somehow making the path of light so narrow that the accuracy would be met.
__________________
http://www.cnczone.com/forums/cnc_wood_router_project_log/125895-my_diy_cnc_cnc2011_%3B.html
Reply With Quote

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

hub,
From most of the reading I have done, is to use a switch (such as a mechanical) in combination with an index pulse from an encoder.
__________________
Art
AKA Country Bubba (Older Than Dirt)
Reply With Quote

  #3   Ban this user!
Old 09-12-2011, 01:42 PM
hub hub is offline
 
Join Date: Sep 2010
Location: Finland
Posts: 435
hub is on a distinguished road

Originally Posted by Bubba View Post
hub,
From most of the reading I have done, is to use a switch (such as a mechanical) in combination with an index pulse from an encoder.
That sounds a bit complicated to implement. It would need some sort of microprocessor/PLC to keep count of the pulses?
Sure, that would be good no doubt, but could there be a more simple (and cheaper) solution?
__________________
http://www.cnczone.com/forums/cnc_wood_router_project_log/125895-my_diy_cnc_cnc2011_%3B.html
Reply With Quote

  #4   Ban this user!
Old 09-12-2011, 02:20 PM
Bubba's Avatar  
Join Date: Mar 2004
Location: LaGrange, GA USA
Posts: 1,357
Bubba is on a distinguished road

No, basically, you trip the switch and then back off and wait for the index pulse. I have seen where it can be implemented with a flip flop circuit.
__________________
Art
AKA Country Bubba (Older Than Dirt)
Reply With Quote

  #5   Ban this user!
Old 09-12-2011, 02:22 PM
 
Join Date: Apr 2010
Location: USA
Posts: 184
mfgbydesign is on a distinguished road
Buy me a Beer?

To expand on what Bubba has written:
The microswitch is not precisely set to the "home" position. It indicates the machine is close.
When triggered, the machine backs off to the next "index pulse" from the encoder. These are periodic pulses that the control uses to verify counts are not lost. In essence, as the machine moves, it counts pulses, and checks the count on the index pulse. If the two don't add up an emergency stop is engaged and the machine must be "homed."
So back to the homing process; after the switch is engaged and the machine is reversed to the previous index pulse, a parameter lookup is performed for the "grid shift" amount which designates the true home position relative to the index pulse. The machine is then moved to that location.
This method allows for a less precise switch to be used. I've seen one case where the home switch was set too close to the encoder index position and the machine would frequently home 0.100 off location. Moving the switch slightly solved the problem.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 09-12-2011, 02:29 PM
hub hub is offline
 
Join Date: Sep 2010
Location: Finland
Posts: 435
hub is on a distinguished road

Ok, I understand.
But how would one do that with say Mach3? It has home inputs which are binary on/off. It still would need a DSP in between to figure out the encoder position? And then send the "on" signal?
__________________
http://www.cnczone.com/forums/cnc_wood_router_project_log/125895-my_diy_cnc_cnc2011_%3B.html
Reply With Quote

  #7   Ban this user!
Old 09-12-2011, 02:39 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,565
Geof will become famous soon enough

What are you wanting to home? Something driven by a PC driving steppers where the homing signal to the PC is just a switch closing or opening.

Just a simple microswitch opened by the linear motion of the axis is not going to give .001mm precision but I think you could make a system that would create the equivalent of an index pulse and home very precisely using two switches in series.

This would require an arm (or disc) attached to the feedscrew and one microswitch would be operated by this arm to detect the rotary position of the screw. The other microswitch would be mounted so it was operated by the linear motion.

The homing sequence would start with the axis away from the home position. As the PC drove it slowly toward home the linear motion switch would operate first and when the rotary motion switch operated that would give the homing signal. The precision would depend on the radius of the arm/disc operating the rotary position switch.

Naturally the rotary position switch is going to operate every rotation of the screw but only when the linear motion switch is operated will a homing impulse be generated. The constant operation of the rotary position switch could cause early failure so a system based on optical detection would probably be more durable.

To improve precision it may be possible to program the PC to reverse the axis direction as soon as the homing signal is detected, drive the axis very slowly until the homing signal turns off and call that point home.
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

  #8   Ban this user!
Old 09-12-2011, 02:54 PM
hub hub is offline
 
Join Date: Sep 2010
Location: Finland
Posts: 435
hub is on a distinguished road

I want to home linear axis's.
For now, I'm using steppers & 1 servo with encoder, but all will be servos in the future. They are driven by step/dir.

That's a very good idea Geof! Sound like it could work. Simple and effective.

I have some ideas that might work (with a few problems):
- Digital dial indicator (positioned near limits) that outputs reading to PC
- Machine vision inspection with cameras (very expensive)
- Umm..
__________________
http://www.cnczone.com/forums/cnc_wood_router_project_log/125895-my_diy_cnc_cnc2011_%3B.html
Reply With Quote

  #9   Ban this user!
Old 09-12-2011, 02:54 PM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,082
samco is on a distinguished road

here is the options with emc..

Homing Configuration

I use index homing on the K&T and it works awesome. I have 2540 count encoders with index - so my scale is around 60960 counts per inch. So I am homing within 1 count or .000016.

If you look at the bottom of the page it shows some homing examples. (and it can do the 'fast to switch - slow backoff home')

sam
Reply With Quote

  #10   Ban this user!
Old 09-12-2011, 03:03 PM
hub hub is offline
 
Join Date: Sep 2010
Location: Finland
Posts: 435
hub is on a distinguished road

Thanks
But I don't have that option really. If possible, I would like a hardware solution. If not, I can possibly program a DSP to do it, but the ideal solution would be a simple accurate method of switching..
__________________
http://www.cnczone.com/forums/cnc_wood_router_project_log/125895-my_diy_cnc_cnc2011_%3B.html
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 09-12-2011, 03:44 PM
Bubba's Avatar  
Join Date: Mar 2004
Location: LaGrange, GA USA
Posts: 1,357
Bubba is on a distinguished road

Ok, did some digging on my hard drive and found a post from Tom Hubin back on ~2005 on the CadCamDro list.

"Here is one way to do it with half of a LS74 dual D flip flop, two 1
kohm resistors and a normally open limit switch.

The normally open limit switch is wired with one contact to ground and
the other in series with a 1000ohm resistor to +5v. The junction of the
switch and resistor is the switch output and goes to the flip flop Reset
line and D input.

The encoder index output goes to the flip flop clock input.

The second resistor is used to pull up the unused Set input. One end of
the resistor to +5v and the other end to flip flop Set input. Some folks
don't use a resistor and just wire +5v to the Set input. My early days
of EE was designing to meet mil spec and we tied NOTHING directly to
power except power pins. Unusued TTL inputs were pulled up via
resistors.

Be sure to wire the flip flop power and ground pins to the power supply
also. There should be a 0.1ufd, a 0.001ufd and a 10ufd electrolytic in
parallel with the flip flop power and ground pins. These capacitors
should be located very close to the flip flop.

How it works: Travel toward the limit switch until the limit switch
closes. The flip flop Q output will immediately go low when the limit
switch closes. Then travel away from the limit switch. On the first
rising edge of the encoder index after the limit switch opens, the flip
flop Q output will go high as the encoder index rising edge clocks the
flip flop.

When you first power up you should home twice since the flip flop may
power up either high or low. This will guarantee a valid home. You
should NOT be within one index pulse of the end of the travel range that
is opposite the limit switch.

Now this is not the ideal solution since you would probably prefer a
normally closed switch. That way the default for a disconnected limit
switch is safer. I did this for somebody several months ago. I'll have
to dig up my notes to see how I did that with a N/C limit switch. I may
just have used the other half of the dual flip flop as an inverter."
__________________
Art
AKA Country Bubba (Older Than Dirt)
Reply With Quote

  #12   Ban this user!
Old 09-12-2011, 03:46 PM
 
Join Date: Mar 2007
Location: UK
Age: 60
Posts: 494
Robin Hewitt is on a distinguished road

Originally Posted by hub View Post
But I don't have that option really. If possible, I would like a hardware solution.
If you can keep it clean and dark, how about a slotted opto switch with built in Schmitt trigger. Standard part, real cheap.
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
How precise are lathes? Inertially General Metalwork Discussion 10 07-27-2010 07:15 AM
Newbie- Precise Hold Down Fixture? Help? acecnc Moldmaking 9 10-15-2009 01:25 PM
Precise jig grinder ck cues CNCzone Club House 3 01-26-2009 01:01 PM
Precise Mini Mill? ZipSnipe Benchtop Machines 0 03-17-2006 05:47 PM




All times are GMT -5. The time now is 10:28 PM.





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