7i77 and single ended MPG-Wheel encod er - read-out problem

More
5 years 1 week ago #223998 by Baderbahn
we're getting closer :P

So, I need to change the onboard pullups from 2k to 330Ohm ? :O

Edit: saw your edit, right now. That's what I thought and wanted to express with the sinking- inputs "P.S" in my prior post. 

But then, we are at the HAl-Connection point, which I asked yesterday :D

Please Log in to join the conversation.

More
5 years 1 week ago #223999 by PCW
To use the 7I77 encoder input you would need to
add external 330 ohm pull downs to A and B

You could use the 7I77s MPG inputs directly.

Please Log in to join the conversation.

More
5 years 1 week ago #224000 by Baderbahn
Yeah, that's clear now to me.

I'm just not completely sure, how to set up the HAL for this.

Actually, I have:
Code:
net axis-selected-count <= hm2_5i15.0.encoder.03.count

The count and axis selection is (more or less), as PNCconf proposes it.

As I saw in an other thread, I have to add a mux4 and send the signals into it. That's exactly, where I'm not sure, how to do it :D

Please Log in to join the conversation.

More
5 years 1 week ago #224001 by PCW
if you want to use the MPG counter, it would be something like:

hm2_5i25.0.7i77.0.0.enc0.count

Please Log in to join the conversation.

More
5 years 1 week ago #224003 by Baderbahn
Ah, so I don't need a mux4- element ?
Just net the hm2_5i25.0.7i77.0.0.enc0.count ?


Edit:
I tried the following:
Set 7i77 to Mode 3 by
Code:
sserial_port_0=003xxx
and connect the signal
Code:
net axis-selected-count    <=    hm2_5i25.0.7i77.0.0.enc0.count

but get an error "pin doesn't exist"
so I'll try to figure out by searching halshow, which pin it is  :P

Edit 2:
Note to myself: I'm stupid. It should be [...] 300xxx[...] istead of [...]003xxx[...}
I am able to read the count now! thank you very much, PCW !

Please Log in to join the conversation.

More
5 years 1 week ago #224028 by PCW
The mux4 is used to select the jog increments

Please Log in to join the conversation.

More
5 years 1 week ago #224031 by bevins
Put this in your custom.hal. It should get you a working mpg using enc0. You are using 7i77 you you will need to change to suit your mesa setup.
 

Please Log in to join the conversation.

Time to create page: 0.052 seconds
Powered by Kunena Forum