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 09-29-2009, 09:48 PM
rokag3's Avatar  
Join Date: Mar 2007
Location: greece
Age: 57
Posts: 560
rokag3 is on a distinguished road
using encoder index for homing and a axes position

the idea is simple: why not using the index of your linear scale or cheap amt102/103 in conjunction with a mechanical or optical switch to obtain a very precise and cheap homing function ?
some guy put the index of the encoder directly on the home line.problem the signal of index of the encoder is very brief.
one solution is to use a mechanical switch to the line data of a d type flip-flop
7474 and the signal index of the encoder to the clock. This has been explain very well here

http://groups.yahoo.com/group/CAD_CA...9?xm=1&m=e&l=1
HTML Code:
Hello Carl,

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.

Tom Hubin
I test it and it work but now i am a litle lost in space with the isolation problems.
I use the power supply of my DRO to power up my encoders the gecko 320 encoder+encoder- is bridged with a 470ohms. the 0V of the DRO is linked with the encoder-
I use the 5volts of my pc-2-route model m2 sound logic break board for the switch.
1st problem: I will prefer to use 12 volts for the switch and use an entry of an optocoupler(tlp521/4) to go to the data line of the 7474 what resistance should i put at the entry of the tlp521?
2nd problem:I will use a second entry of the tlp521 for the index signal of the encoder. the 7474 will be powered by the break board is this ok?
3rd problem the notQ line of the 7474 should be attach to the signal entry of the break board how?
4th Mr Hubin rise some interisting point using normally close switch and make a little reset circuit when power up unfortunately i can wire and understand digital electronic but i am not able to make a "clean" circuit if someone can help ?
in case of rotary encoder a target can be fixed to the main axe an optical fork can play the role of the switch
Reply With Quote

  #2   Ban this user!
Old 09-30-2009, 02:13 AM
Zig Zig is offline
 
Join Date: Mar 2008
Location: Australia
Posts: 237
Zig is on a distinguished road

I am using linear scale with an index pulse equivalent to the resolution of the scale.
The pulse is used to implement the homing signal. The homing signal is then used by EMC2 to home the machine.
The index pulse is very precise and repeatable but it does not last long enough ( in time ) for the homing function to be implemented where by the axis seeks the hone position, finds the index, returns back a small distance and seeks the index at a slower rate.
IF this werea conventional mechanical switch it would allow the axis to travel back a bit before the sigal was removed and then ot wuld seek at a lower speed.
I have therefore simply fed the pulse into a monostable which simulates the action ofa mechanical springloaded contac. This allows for some time for the axis to return to a pre homeindex position and repeat seek for home at a slower speed.

While latches and one bit memory logic is nice.. this ( Pulse stretcher) is a bit more intuitive and works.
Reply With Quote

  #3   Ban this user!
Old 09-30-2009, 04:32 AM
rokag3's Avatar  
Join Date: Mar 2007
Location: greece
Age: 57
Posts: 560
rokag3 is on a distinguished road

yes Zig this is the purpose of the d flipflop to detect this very brief signal my problem is how to implement it "in a clean way" in my system? I mean having something that will last and be reliable ?
in fact i need a good schematic
Reply With Quote

  #4   Ban this user!
Old 09-30-2009, 05:38 AM
rokag3's Avatar  
Join Date: Mar 2007
Location: greece
Age: 57
Posts: 560
rokag3 is on a distinguished road

in the thread "how to use index pulse for homing purpose we have this obsolete link.
http://www.cncbuildingblocks.com/homeindex.html
__________________
Gerry
Zig do you have a copy of it?
Reply With Quote

  #5  
Old 09-30-2009, 06:10 AM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,453
ger21 is on a distinguished road
Buy me a Beer?

That link was to a commercially manufactured board that worked with mach3 for homing to an encoder count. It was made by Ed Gilbert, and you may be able to get a hold of him through the Mach3 yahoo group. He's no longer making the boards, and I don't think he'd give up the schematics.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 09-30-2009, 07:09 AM
rokag3's Avatar  
Join Date: Mar 2007
Location: greece
Age: 57
Posts: 560
rokag3 is on a distinguished road

thank you gerry,
in fact the solution of tom hubbin work and it's cheap the only problem it's my mediocrity in electronic i will like to have a supervision from an electronic guru.
this solution is not new but hard to find schematic.I think that this was due to the price of the encoder with index. The very cheap amt 102/103 baked up by Mariss make this solution very interisting
Reply With Quote

  #7   Ban this user!
Old 09-30-2009, 04:50 PM
Zig Zig is offline
 
Join Date: Mar 2008
Location: Australia
Posts: 237
Zig is on a distinguished road

Yassou Rokag3,

From the exchanges i think You wish to use mach3. Please list the homing sequence You intend to implement.

In a way of rationalising the question I use EMC2 and the homing sequence during which the software seeks the index at high speed and having found the index it steps back and seeks home index at a slower speed to optimise position accuracy.
Reply With Quote

  #8   Ban this user!
Old 09-30-2009, 07:02 PM
rokag3's Avatar  
Join Date: Mar 2007
Location: greece
Age: 57
Posts: 560
rokag3 is on a distinguished road

In a way of rationalising the question I use EMC2 and the homing sequence during which the software seeks the index at high speed and having found the index it steps back and seeks home index at a slower speed to optimise position accuracy.
efaristo for the yassou
this is the way to go and i am going to use mach3 but actually i am in the hardware and i want to do it clean it's for a mill lagun ftv2
Reply With Quote

  #9   Ban this user!
Old 09-30-2009, 08:28 PM
Zig Zig is offline
 
Join Date: Mar 2008
Location: Australia
Posts: 237
Zig is on a distinguished road

Here is a part of my interface circuit.

I use the comparator chip with a 120 ohm load for the differential index pulse driver from the linear scales.

The pulse is condition and earth refferenced by the comparator before it goes to the CMOS timer configured as a pulse stretcher. The signal then goes to the header on the breakout board. the header also supplies +5V to the electronics.

Hope this is of some use to You..


EDIT.. you may not need the comparator front end.. depends on the encoder You use. You may have to adjust the duration of the extended pulse to suit your seek speed.
Attached Thumbnails
Click image for larger version

Name:	interface_html_2d79525a.jpg‎
Views:	201
Size:	114.6 KB
ID:	90234  
Reply With Quote

  #10   Ban this user!
Old 09-30-2009, 09:18 PM
rokag3's Avatar  
Join Date: Mar 2007
Location: greece
Age: 57
Posts: 560
rokag3 is on a distinguished road

thank you i am going to look at that carefully
Lucien
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 10-01-2009, 02:20 PM
rokag3's Avatar  
Join Date: Mar 2007
Location: greece
Age: 57
Posts: 560
rokag3 is on a distinguished road

hello,
in red the index signal
in blue the switch signal
in green what i want
in black what i have
how to configure my 7474 to have the green result ?
Lucien
Attached Thumbnails
Click image for larger version

Name:	homingt1.jpg‎
Views:	79
Size:	25.5 KB
ID:	90274  
Reply With Quote

  #12   Ban this user!
Old 10-03-2009, 11:47 PM
rokag3's Avatar  
Join Date: Mar 2007
Location: greece
Age: 57
Posts: 560
rokag3 is on a distinguished road

ok i find a solution at least on the simulator
the first switch top left represent the cheap switch optique fork or mechanical it is monitored on the logic analiser by the first line.
the second switch represent the encoder index it is the second line on the logic analiser
the output is represented by the green led NormallyClose
this simulator is free work with java and very intuitive
now what ckind of resistances etc.... this is my limit
Attached Thumbnails
Click image for larger version

Name:	ScreenShot002.jpg‎
Views:	114
Size:	110.4 KB
ID:	90436  
Reply With Quote

Reply

Tags
break board, cheap, encoder, homing, index




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
Problem- How to use index pulse for homing purpose Zig LinuxCNC (formerly EMC2) 2 03-28-2008 02:16 AM
Looking for cheap encoder with index channel JasonCampbell Servo Motors and Drives 12 09-12-2007 09:31 PM
spindle index, encoder, home/limit switch Wm McNett General Electronics Discussion 10 01-13-2006 06:39 AM
Optical encoder index - what is it good for? medved General Electronics Discussion 8 10-03-2005 05:26 PM
Encoder Mounting Position? Willyb General Metal Working Machines 15 12-17-2004 10:51 AM




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