mesa 7i76 configuring a spindle encoder

More
17 Mar 2016 13:01 - 17 Mar 2016 13:01 #71786 by andypugh
What doesn't work as things are now?

Open a halmeter and look at motion.spindle-revs

If that increases by 1 for one rev of the spindle you are probably all set.
Last edit: 17 Mar 2016 13:01 by andypugh.

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

More
17 Mar 2016 13:22 - 17 Mar 2016 13:23 #71789 by Clive S
Ok no joy with motion.spindle-revs but the voltage on the index at the 7i76 pin TB3 13 changes from 5V to 0V when the chuck is rotated

edit I am using this as single ended input
Last edit: 17 Mar 2016 13:23 by Clive S.

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

More
17 Mar 2016 13:28 #71791 by andypugh
What do the other two inputs do?

What is the ...enc0.position pin doing?

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

More
17 Mar 2016 13:58 #71794 by Clive S
quote What is the ...enc0.position pin doing?

Can't seem to find that. Do you think I have it conned ok is there any thing to add in the ini file?

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

More
17 Mar 2016 14:31 #71796 by andypugh
I don't know the pin name (I don't have a 7i76). Do you have any pins that contain "enc" in the name?

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

More
17 Mar 2016 15:11 #71798 by Clive S
can't see any

hm2_5i25.0.encoder.00.position




Attachments:

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

More
17 Mar 2016 15:19 #71800 by andypugh

can't see any
hm2_5i25.0.encoder.00.position



That's probably the one. ....enc0 is one of the optional MPG channels, now I think about it.
Sorry for the confusion.
Does hm2_5i25.0.encoder.00.position change value as you rotate the spindle?

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

More
17 Mar 2016 15:56 #71802 by Clive S
Andy Looking at hm2_5i25.0.encoder.00.position when triggering the opto from 5V to 0V the hal meter stays on 0 and does change

I have taken my encoder disk off so that I can make sure the ir light is blocked for testing

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

More
17 Mar 2016 16:07 #71804 by andypugh
It sounds like you only have one channel? And you mentioned the index earlier?

The position won't change if you only drive the index pin.

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

More
17 Mar 2016 16:18 #71807 by Clive S
Andy I have just thought. the 7i76 has IDX+ and IDX- I have not grounded the IDX- also A+ and A- etc Do you think I need to ground the (0v) IDX- A- etc

which hal pin should change just with IDX connected

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

Time to create page: 0.102 seconds
Powered by Kunena Forum