MPG config

More
05 Dec 2019 14:05 - 05 Dec 2019 14:26 #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!
Last edit: 05 Dec 2019 14:26 by bevins.

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

More
05 Dec 2019 14:46 #152069 by bevins
Replied by bevins on topic MPG config

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 or Create an account to join the conversation.

More
05 Dec 2019 17:07 #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
The following user(s) said Thank You: bevins

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

More
05 Dec 2019 17:22 #152077 by bevins
Replied by bevins 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


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

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

More
09 Dec 2019 23:02 #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 or Create an account to join the conversation.

More
09 Dec 2019 23:11 #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 or Create an account to join the conversation.

More
09 Dec 2019 23:28 #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 or Create an account to join the conversation.

More
09 Dec 2019 23:32 - 09 Dec 2019 23:41 #152409 by bevins
Replied by bevins 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


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?
Last edit: 09 Dec 2019 23:41 by bevins.

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

More
09 Dec 2019 23:55 #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 or Create an account to join the conversation.

More
10 Dec 2019 00:55 #152414 by bevins
Replied by bevins 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



4.7k between A B inputs to 5bolt rail?

That work?

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

Time to create page: 0.084 seconds
Powered by Kunena Forum