mesa 7i76 configuring a spindle encoder
17 Mar 2016 16:22 #71808
by andypugh
Replied by andypugh on topic mesa 7i76 configuring a spindle encoder
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.
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.
17 Mar 2016 16:31 #71810
by Clive S
Replied by Clive S on topic mesa 7i76 configuring a spindle encoder
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.
17 Mar 2016 16:39 #71813
by andypugh
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"."
Replied by andypugh on topic mesa 7i76 configuring a spindle encoder
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.
17 Mar 2016 16:58 #71819
by Clive S
Replied by Clive S on topic mesa 7i76 configuring a spindle encoder
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.
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.
18 Mar 2016 13:12 #71856
by Clive S
Replied by Clive S on topic mesa 7i76 configuring a spindle encoder
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
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.
18 Mar 2016 15:03 #71864
by andypugh
Replied by andypugh on topic mesa 7i76 configuring a spindle encoder
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.
18 Mar 2016 15:58 #71872
by Clive S
Replied by Clive S on topic mesa 7i76 configuring a spindle encoder
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
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.
18 Mar 2016 16:03 #71873
by andypugh
Replied by andypugh on topic mesa 7i76 configuring a spindle encoder
So, does it count?
Please Log in or Create an account to join the conversation.
18 Mar 2016 16:22 #71874
by Clive S
Replied by Clive S on topic mesa 7i76 configuring a spindle encoder
hm2_5i25.0.encoder.00.count counts -18141 upwards
which pin should I be looking at
which pin should I be looking at
Please Log in or Create an account to join the conversation.
18 Mar 2016 17:10 #71875
by andypugh
Replied by andypugh on topic mesa 7i76 configuring a spindle encoder
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)
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