- Posts: 1943
- Thank you received: 0
MPG config
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
Please Log in to join the conversation.
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!Code:# custom.hal # #***************************************** # MPG Jog Select #***************************************** #net jog.x.pos hm2_7i92.0.7i76.0.0.input-20 #net jog.x.neg hm2_7i92.0.7i76.0.0.input-21 #net jog.y.pos hm2_7i92.0.7i76.0.0.input-22 #net jog.y.neg hm2_7i92.0.7i76.0.0.input-23 #net jog.z.pos hm2_7i92.0.7i76.0.0.input-24 #net jog.z.neg hm2_7i92.0.7i76.0.0.input-25 #***************************************** #***************************************** # JOG Velocity Mode #***************************************** setp axis.x.jog-vel-mode 0 setp axis.y.jog-vel-mode 0 setp axis.z.jog-vel-mode 0 #***************************************** #***************************************** # Jog Scale #***************************************** setp mux4.0.in0 0.0001 setp mux4.0.in0 0.01 setp mux4.0.in0 0.001 #***************************************** #******************************************** # Inputs to mux component, scale and counts #******************************************** net scale1 mux4.0.sel0 <= hm2_7i92.0.7i76.0.0.input-26 net scale2 mux4.0.sel1 <= hm2_7i92.0.7i76.0.0.input-27 net pend-scale axis.x.jog-scale <= mux4.0.out net pend-scale axis.y.jog-scale net pend-scale axis.z.jog-scale net mpg-x axis.x.jog-enable <= hm2_7i92.0.7i76.0.0.input-28 net mpg-y axis.y.jog-enable <= hm2_7i92.0.7i76.0.0.input-29 net mpg-z axis.z.jog-enable <= hm2_7i92.0.7i76.0.0.input-30 net joint-select-count <= hm2_7i92.0.7i76.0.0.enc0.count net joint-select-count axis.x.jog-counts net joint-select-count axis.y.jog-counts net joint-select-count axis.z.jog-counts #*****************************************
Have an error in scale. mux doesnt change.
Please Log in to join the conversation.
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.
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.
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.
Please Log in to join the conversation.
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.
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.
(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.
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.
