MPG config

More
6 years 10 months ago #152064 by bevins
MPG config was created by bevins
Does this look right? I am going to connect mpg on bench to test but would ;like a lookover.

linuxcnc 2.9
Linuxmint 18.3

I got this off my VM-40 I did 5 years ago and cant remember what I did......lol
custom.hal

Warning: Spoiler!

Please Log in to join the conversation.

More
6 years 10 months ago #152069 by bevins
Replied by bevins on topic MPG config

bevins wrote: Does this look right? I am going to connect mpg on bench to test but would ;like a lookover.

linuxcnc 2.9
Linuxmint 18.3

I got this off my VM-40 I did 5 years ago and cant remember what I did......lol
custom.hal

Warning: Spoiler!


Have an error in scale. mux doesnt change.

Please Log in to join the conversation.

More
6 years 10 months ago #152076 by PCW
Replied by PCW on topic MPG config
You have set the same mux input multiple times

setp mux4.0.in0 0.0001
setp mux4.0.in0 0.01
setp mux4.0.in0 0.001

probably should be

setp mux4.0.in0 0.0001
setp mux4.0.in1 0.01
setp mux4.0.in2 0.001

Please Log in to join the conversation.

More
6 years 10 months ago #152077 by bevins
Replied by bevins on topic MPG config

PCW wrote: You have set the same mux input multiple times

setp mux4.0.in0 0.0001
setp mux4.0.in0 0.01
setp mux4.0.in0 0.001

probably should be

setp mux4.0.in0 0.0001
setp mux4.0.in1 0.01
setp mux4.0.in2 0.001


Yeah, thanks. copy paster error. Forgot to change.....

Please Log in to join the conversation.

More
6 years 10 months ago #152405 by bevins
Replied by bevins on topic MPG config
OK, I am trying to get this mpg working for the last styep of this retrofit.

Cant seem to get it done. I am not even getting any counts. Does enc.index-enable need to be set?

mode 2, and I see the enc0 and enc1. I set the 7i76 to single ended with the jumpers to the right.

Cant seem to understand.

Please Log in to join the conversation.

More
6 years 10 months ago #152406 by bevins
Replied by bevins on topic MPG config
here is the code..... I would think I should at least get rawcounts.

Warning: Spoiler!

Please Log in to join the conversation.

More
6 years 10 months ago #152408 by PCW
Replied by PCW on topic MPG config
if you are not getting any counts it may be a signal level issue
or perhaps a grounding issue since the field inputs have an
isolated ground

You should be able to check this by looking at the signal levels of the
MPG pins relative to field GND with a DVM

Please Log in to join the conversation.

More
6 years 10 months ago #152409 by bevins
Replied by bevins on topic MPG config

PCW wrote: if you are not getting any counts it may be a signal level issue
or perhaps a grounding issue since the field inputs have an
isolated ground

You should be able to check this by looking at the signal levels of the
MPG pins relative to field GND with a DVM


The inputs are good but the enc pins you are talking about? What should they be? I am using the 5v from the 5v of the 7i92 and 7i76 for the mpg A B.

Is this not good?

2.5 volts, what is the threshold for those inputs?

Please Log in to join the conversation.

More
6 years 10 months ago #152412 by PCW
Replied by PCW on topic MPG config
2.5V swing is not enough
(inputs must be >3V for high and less than 2V for low)

You may need pullup resistors on the A,B signals to get sufficient swing

Please Log in to join the conversation.

More
6 years 10 months ago #152414 by bevins
Replied by bevins on topic MPG config

PCW wrote: 2.5V swing is not enough
(inputs must be >3V for high and less than 2V for low)

You may need pullup resistors on the A,B signals to get sufficient swing



4.7k between A B inputs to 5bolt rail?

That work?

Please Log in to join the conversation.

Time to create page: 0.064 seconds
Powered by Kunena Forum