mesa 7i76 configuring a spindle encoder

More
17 Mar 2016 16:22 #71808 by andypugh
There is a way to configure for single-ended encoders. It should be in the manual.

If you setp hm2_5i25.0.encoder.00.index-enable to true then when the index happens it will go false.

It is the A and B channels that drive the position output and give the spindle speed measurements.

The inputs will also be visible on the GPIO pins. "dmesg" will contain a list of which GPIO pins refer to the encoder inputs.

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

More
17 Mar 2016 16:31 #71810 by Clive S
Ok Andy that is helpful the manual states that it can be programed for singe ended ( I don't know how to do that) and when using single ended leave IDX- and A -, B - disconnected so I have to sort that out first.

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

More
17 Mar 2016 16:39 #71813 by andypugh

Ok Andy that is helpful the manual states that it can be programed for singe ended ( I don't know how to do that).


Jumpers

"ENCODER INPUT MODE
The 7I76s high speed encoder input can be programmed for differential or single
ended mode operation. W4, W5 and W6 set the encoder input mode. When W4,W5,and
W6 are in the right hand position, the encoder input is mode is differential. When W4,W5,
and W6 are in the left hand position, the encoder input mode is single ended or "TTL"."
The following user(s) said Thank You: Clive S

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

More
17 Mar 2016 16:58 #71819 by Clive S
I have read the manual tons of time and couldn't see it for the trees.

Success now the hm2_5i25.0.encoder.00.input-a and hm2_5i25.0.encoder.00.input-index both trigger from true to false.

I have had enough now today as I will have to put the encoder assembly back on the lathe before I can test further

Thank you for your help in all of this and sorry to be so dumb. I will report back when I have put the encoder back etc.

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

More
18 Mar 2016 13:12 #71856 by Clive S
Andy
I have put the encoder back on but the B opto is faulty so it is left unconnected

hm2_5i25.0.encoder.00.input-a seems to trigger ok with the hal meter but does seem to be a little erratic (that could be down to the encoder wheel slots)

hm2_5i25.0.encoder.00.input-index although I can see it triggering with a LED on the output of the encoder it does not show on the hal meter (false) with a multimeter in changes from 4.9V to 0v

any ideas would be helpful

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

More
18 Mar 2016 15:03 #71864 by andypugh
Set counter-mode to 1 to enable counting with only the A channel and see what happens.

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

More
18 Mar 2016 15:58 #71872 by Clive S
It is set to one

setp hm2_5i25.0.encoder.00.counter-mode 1
setp hm2_5i25.0.encoder.00.filter 1
setp hm2_5i25.0.encoder.00.index-invert 0
setp hm2_5i25.0.encoder.00.index-mask 0
setp hm2_5i25.0.encoder.00.index-mask-invert 0
setp hm2_5i25.0.encoder.00.scale [SPINDLE_9]ENCODER_SCALE

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

More
18 Mar 2016 16:03 #71873 by andypugh
So, does it count?

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

More
18 Mar 2016 16:22 #71874 by Clive S
hm2_5i25.0.encoder.00.count counts -18141 upwards

which pin should I be looking at

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

More
18 Mar 2016 17:10 #71875 by andypugh
That one.

Now set up the scale and connect according to the docs.

www.linuxcnc.org/docs/html/examples/spin...ml#_spindle_feedback

(Noting that you already have most of that configured for the Mesa counter)

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

Time to create page: 0.083 seconds
Powered by Kunena Forum