EL5101 encoder interface

More
08 Apr 2022 18:06 #239683 by papagno-source
Hi at all.

I wanted to ask if anyone has ever tried to use an el5101 encoder card to do spindle orientation and read the position value. In the documentation I read that there is a PDO where to read the position, but I did not understand how to reset the counter when the zero mark of the encoder is hit. Can you help me ?

Thanks
 

Please Log in or Create an account to join the conversation.

More
08 Apr 2022 19:03 #239688 by db1981
Replied by db1981 on topic EL5101 encoder interface
this is handled like homing on index.

for sensor on the external latch input
set the "enc-index-ext-pos-enable" or "enc-index-ext-neg-enable" pin

for sensor on the C Line from the encoder
set the "enc-index-c-enable" pin

if the zero event ocoured the card sets its internal counter to zero or to the pos
you told with the set_raw_count_val pin and clears the enc-index-xxx pin.

Please Log in or Create an account to join the conversation.

More
08 Apr 2022 19:11 #239689 by papagno-source
Thanks for support.
please have the xml file for pdo config example for el5101 ?

More thanks

Please Log in or Create an account to join the conversation.

More
08 Apr 2022 19:14 #239690 by db1981
Replied by db1981 on topic EL5101 encoder interface
i am talking about the native el5101 driver.

Module name is "EL5101"

Please Log in or Create an account to join the conversation.

More
08 Apr 2022 19:24 #239691 by papagno-source
Ok thanks, about scaling the position value , use some component or another pin the el5101 driver ?

Exist some hal example for pin connection ?

Again more thanks

Please Log in or Create an account to join the conversation.

More
08 Apr 2022 19:30 #239693 by db1981
Replied by db1981 on topic EL5101 encoder interface
enc-pos-scale is the scale pin. (increment per machine unit)

github.com/sittner/linuxcnc-ethercat/blo...er/src/lcec_el5101.c

there all pins are listed. line 75-95

Please Log in or Create an account to join the conversation.

More
08 Apr 2022 19:34 #239694 by papagno-source
OK thanks for help and good day.

Please Log in or Create an account to join the conversation.

Time to create page: 0.201 seconds
Powered by Kunena Forum