Usage of index signal only from encoders with 7i76e

More
26 Feb 2022 14:54 #235849 by mydani
Hi guys,

I am currently playing around with a machine which uses 5 steppers with encoders.
The original control only used the encoder index signals for referencing (besides 5 limit switches).
Do you think it's possible to use the index signal in the same way using a 7i76e?
Homes against the limit switch, then uses the index signal for precise home position.

The 7i76e only has one "real" encoder possibility, therefore I'd need to use the field I/O for the index signals.

Regards
Daniel

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

More
26 Feb 2022 19:39 - 26 Feb 2022 19:52 #235863 by PCW
I think its possible but probably requires a hal component to simulate index behaviour.
(Latching the pulse and having tri-state output). You might be able to use the software
encoder component to provide that simple logic. The search for index move needs to be
slow enough that you are guaranteed to sample the index at the servo thread rate.
 
Last edit: 26 Feb 2022 19:52 by PCW. Reason: format
The following user(s) said Thank You: mydani

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

More
26 Feb 2022 19:59 #235865 by mydani
I'd drive it slow enough so the index will be seen, for sure.

Then the comp could either just reset the index-enable and I could link the index signal directly to the IO pin, or I could read the index and latch it until next index-enable comes. Either way, should work.

Thanks again PCW.

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

More
26 Feb 2022 20:09 #235868 by PCW
Forgot one detail, you must use this option:

HOME_INDEX_NO_ENCODER_RESET

Since the step position feedback will not be cleared on index

This also requires using LinuxCNC master AFAIK

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

More
26 Feb 2022 20:12 #235869 by mydani
Thank you. I am getting old... you know why? Once upon a time I wrote a component (attached), which just switches the input during the normal homing sequence. Had used it with a stepper + index pulse (sensor at a pulley) setup. Should be pretty reusable.
If not I will switch back to your suggestion.

Regards,
Daniel

 

File Attachment:

File Name: home_index...dir.comp
File Size:2 KB

 
Attachments:

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

Moderators: PCWjmelson
Time to create page: 0.104 seconds
Powered by Kunena Forum