7i76 using a spindle encoder input for index axis0

  • finemeca
  • Visitor
  • Visitor
10 years 4 months ago #76650 by finemeca
Ok you have another card that 7i76 reference works.
just to use an encoder

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

  • finemeca
  • Visitor
  • Visitor
10 years 4 months ago #76680 by finemeca
One solution may be to use the parallel port and parport.
So I'm a encoder and I use his entry for the net x-index-enable.

OK ??

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

More
10 years 4 months ago - 10 years 4 months ago #76683 by PCW
I think there is a misunderstanding of what the index input and index enable do:

1. index enable is an internal signal to linuxcnc used to enable index latching
of the encoder count when the index signal is detected
it is not useful to get the index-enable from an external source

2. The index input causes hardware/linuxcnc to capture the encoder count when
index signal is detected. If you want to use homing on index you must have a servo system
setup with encoder feedback. For a lathe this probably means 3 encoder inputs
(9 signals if all encoders have A,B,Z))
Last edit: 10 years 4 months ago by PCW.

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

  • finemeca
  • Visitor
  • Visitor
10 years 4 months ago #76693 by finemeca
ok thank you for these precision.

For item 1:
index enable
What to add hal?

For item 2:

Not usable with my drivers closed loop

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

More
10 years 4 months ago #76739 by andypugh

finemeca wrote: Can I connect this

Code:
net x-index-enable hm2_5i25.0.7i76.0.0.encoder.01.index-enable <=> axis.1.index-enable


[strike]
Your idea won't work, I don't think. [/strike]

I changed my mind (twice).

Normally the system uses the counts since the index reset to calculate the home position, but you could, in theory, use the spindle index input as a pulse-extender to make the very short index pulse visible to the realtime system.

On the hardware side you would need to arrange things such that both the axis index and the spindle index can trigger the 7i76 index input.

The HAL logic might be very easy or might be hard. I don't know how many bidirectional pins you can add to a net.

You won't get all the benefits of index-homing, but you should get something rather more accurate than a simple switch.

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

  • finemeca
  • Visitor
  • Visitor
10 years 4 months ago #76774 by finemeca
Ok thank you for that.

This is not simple.
I will first try without this feature.

I do my tests of the tour soon.
Depending on the accuracy, I would tell you.

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

Moderators: PCW, jmelson
Time to create page: 0.157 seconds
Powered by Kunena Forum