MPG config
- bevins
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
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
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!
# 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
#*****************************************
Last edit: 05 Dec 2019 14:26 by bevins.
Please Log in or Create an account to join the conversation.
- bevins
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
05 Dec 2019 14:46 #152069
by bevins
Have an error in scale. mux doesnt change.
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!# 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 or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17993
- Thank you received: 4838
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
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.
- bevins
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
05 Dec 2019 17:22 #152077
by bevins
Yeah, thanks. copy paster error. Forgot to change.....
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.
- bevins
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
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.
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.
- bevins
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
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!
#*****************************************
# 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.001
setp mux4.0.in1 0.1
setp mux4.0.in2 0.010
#*****************************************
#********************************************
# 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.enc1.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
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17993
- Thank you received: 4838
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
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.
- bevins
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
09 Dec 2019 23:32 - 09 Dec 2019 23:41 #152409
by bevins
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?
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.
- PCW
- Away
- Moderator
Less
More
- Posts: 17993
- Thank you received: 4838
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
(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.
- bevins
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
10 Dec 2019 00:55 #152414
by bevins
4.7k between A B inputs to 5bolt rail?
That work?
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.074 seconds