Mpg stop working

  • Artur_1617
  • Artur_1617's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
03 Sep 2025 05:11 #334315 by Artur_1617
Mpg stop working was created by Artur_1617
Hi,
I have problem with Mpg.
Mpg working when I start linuxcnc, But in some moment after start stop working.
I think this start when my setup start to use A axis...
Any suggestion what could happened?

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

More
03 Sep 2025 11:50 #334338 by andypugh
Replied by andypugh on topic Mpg stop working
Is this a USB MPG?

If you look in dmesg do you see it being disconnected?

I think I used to have this problem about 10 years ago, but I don't recall if I ever found a solution. (I stopped using the USB gamepad)
The following user(s) said Thank You: Artur_1617

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

  • Artur_1617
  • Artur_1617's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
03 Sep 2025 13:43 #334349 by Artur_1617
Replied by Artur_1617 on topic Mpg stop working
Not, I use MPG conected directly to one encoder input in 7i77.

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

More
03 Sep 2025 14:17 #334350 by PCW
Replied by PCW on topic Mpg stop working
Is this homing related?

Because before homing you need to jog joints and after homing you need to jog axis




 
The following user(s) said Thank You: Artur_1617

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

  • Artur_1617
  • Artur_1617's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
03 Sep 2025 14:42 #334353 by Artur_1617
Replied by Artur_1617 on topic Mpg stop working
Yes Mpg working before homing.
I think must to change this
net x-jog-select joint.0.jog-enable <= hm2_5i25.0.7i77.0.0.input-10
net y-jog-select joint.1.jog-enable <= hm2_5i25.0.7i77.0.0.input-11
net z-jog-select joint.2.jog-enable <= hm2_5i25.0.7i77.0.0.input-12
net a-jog-select joint.3.jog-enable <= hm2_5i25.0.7i77.0.0.input-13

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

More
03 Sep 2025 14:59 #334356 by andypugh
Replied by andypugh on topic Mpg stop working
Yes.

Just add the axes too
net x-jog-select joint.0.jog-enable axis.x.jog-enable <= hm2_5i25.0.7i77.0.0.input-10
net y-jog-select joint.1.jog-enable axis.y.jog-enable <= hm2_5i25.0.7i77.0.0.input-11
... etc ...
The following user(s) said Thank You: Artur_1617

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

  • Artur_1617
  • Artur_1617's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
03 Sep 2025 15:41 #334358 by Artur_1617
Replied by Artur_1617 on topic Mpg stop working
I made changes but still not working after homing.

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

More
03 Sep 2025 16:41 #334360 by PCW
Replied by PCW on topic Mpg stop working
In addition to the jog enables, you need to do a similar change with the mpg count pins
that is, for example both joint.0.jog-counts axis.x.jog-counts must connect to the mpg count.
The following user(s) said Thank You: Artur_1617

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

  • Artur_1617
  • Artur_1617's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
03 Sep 2025 17:14 #334363 by Artur_1617
Replied by Artur_1617 on topic Mpg stop working
I must make changes to in jogscale..
Working setup
######################################################
#Jog Pendant
######################################################

loadrt mux4 count=1
loadrt ilowpass

setp ilowpass.0.scale 100
setp ilowpass.0.gain 0.01

addf mux4.0 servo-thread
addf ilowpass.0 servo-thread

net x-jog-select joint.0.jog-enable axis.x.jog-enable <= hm2_5i25.0.7i77.0.0.input-10
net y-jog-select joint.1.jog-enable axis.y.jog-enable <= hm2_5i25.0.7i77.0.0.input-11
net z-jog-select joint.2.jog-enable axis.z.jog-enable <= hm2_5i25.0.7i77.0.0.input-12
net a-jog-select joint.3.jog-enable axis.a.jog-enable <= hm2_5i25.0.7i77.0.0.input-13

net x10 hm2_5i25.0.7i77.0.0.input-14 => mux4.0.sel0
net x100 hm2_5i25.0.7i77.0.0.input-15 => mux4.0.sel1
setp mux4.0.in0 .0000025
setp mux4.0.in1 .000025
setp mux4.0.in2 .00025
setp mux4.0.in3 .0

net jogscale mux4.0.out => joint.0.jog-scale axis.x.jog-scale
net jogscale => joint.1.jog-scale axis.y.jog-scale
net jogscale => joint.2.jog-scale axis.z.jog-scale
net jogscale => joint.3.jog-scale axis.a.jog-scale

net mpg-out hm2_5i25.0.encoder.05.rawcounts => ilowpass.0.in

net jogcounts ilowpass.0.out => joint.0.jog-counts axis.x.jog-counts
net jogcounts => joint.1.jog-counts axis.y.jog-counts
net jogcounts => joint.2.jog-counts axis.z.jog-counts
net jogcounts => joint.3.jog-counts axis.a.jog-counts

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

Time to create page: 0.118 seconds
Powered by Kunena Forum