Index only encoders for X and Z on 7i43

More
16 Feb 2016 16:17 #70242 by acondit
I am thinking about putting indexes on the X axis and the Z axis of my lathe to assist in homing.
Pncconf seems to not support index only encoders for axis other than the spindle. Am I missing something?
Is there a way to do this in the 7i43 configs?
Does the 7i43 bitfile SVST4-4 support index only encoders?

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

More
16 Feb 2016 17:46 #70245 by PCW
Not sure what you mean by index only
Do you mean a single pin encoder that's both "A" and index?

HM2 encoders wont do this but you could certainly do it with a software encoder on a GPIO
pin ( with the encoders components A and index inputs wired to the same GPIO pin )

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

More
16 Feb 2016 23:29 #70264 by acondit
I am basically talking about mounting a disk with a hole in it and an opto-sensor to function as a single index (or I guess index and channel "A").

So is the software encoder a kernel module that gets loaded like follows:
loadrt encoder num_chan=1

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

More
17 Feb 2016 15:47 #70289 by Todd Zuercher
You also have to addf the functions to the threads. (and you probably will need a base thread.)
addf encoder.update-counters base-thread
addf encoder.capture-position servo-thread

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

Moderators: cmorley
Time to create page: 0.074 seconds
Powered by Kunena Forum