On Tuesday 19 July 2016 10:06:39 Leonardo Marsaglia wrote:

> 2016-07-19 10:32 GMT-03:00 sam sokolik <[email protected]>:
> > we have used many encoders with index pulses and linuxcnc (mesa
> > hardware)  So far no issues.  I have checked a few just to make sure
> > - I set the index-enable true on the encoder and then turn the
> > encoder. When it goes false - it has detected the index.
> >
> > are these linear scales?  usually those only have indexes at each
> > end.
>
> Hello Sam.
>
> The one that I tested wich is installed on a working machine is a
> normal TTL encoder with index pulse. I had success activating the home
> with index but have some funny readings trying what you did.
>
> For example if I force the pin TRUE from HAL configuration with
> LinuxCNC running and I let it that way, in a matter of seconds the pin
> automatically goes to the FALSE state again and then I get a following
> error on that joint wich I assume is logical because the encoder
> counts are reseted to 0. If I try to move the axis before that happens
> to see if the index pulse is triggering I can't tell if it's going to
> FALSE because of the real index pulse, or because it happened the same
> as when I waited.
>
> I also tried to sense with HALSCOPE the pin
> hm2_5i25.0.encoder.00.input-index but I had no success.
>
The sample rate of the halscope is the base thread of the machine, and 
unless that sample point could be stepped down thru the list of addf's 
in your hal file, something we haven't a knob to do, is likely going to 
miss the index.  I have no clue of the coding difficulty makeing that 
possible might be, but at some point I'd like to suggest that it be 
looked at as it would make the halscope considerably more useful when 
attempting to look at a signal that is so fleeting as the index pulses.

> The only thing that's telling me the index pulse is working correctly
> on the installed encoder is that when I set the axis for homing with
> index only, I get a movement of about one turn of the screw everytime
> I push the home button.
>
> For the Mazak the encoders we bought are a little different
> (Heidenhain with two power sources, and they have a multiplicacion
> factor)  but the logic output is TTL as well but differential. Those
> are the ones I was trying to test the index pulse on at first (Using a
> Fluke digital scope) , but I guess since all the other signals work
> good, the index should work good too. By the way on the Mazak we're
> going to use the home switch plus the index pulse.
>
> Sorry for the long explaination!


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to