1
Mach4 General Discussion / Re: Mach4: How to map MPG-X inputs, to Motor-X Step and Direction output?
« on: August 24, 2020, 10:06:59 AM »
MN300 Thanks for the link! It should have resolved my issue but I'm still stuck. I don't have a full pendant just the MPG so this should be easy.
Steps:
1) I configured the input pins for Encoder_Aux0-A and Encoder_Aux0-B in the ESS plugin
2) I mapped MPG#0 to Encoder_Aux0
3) I added a function to the Screen Load Script
--------------------------------------
-- MPG Code --
--------------------------------------
function MapMpgToX()
mc.mcMpgSetAxis(inst, 0, 0)
end
MapMpgToX()
4) The code compiles and it runs but for some reason the mpg does not jog the x-axis. So there is something I am missing. Likely something basic, as if if am missing a button to turn on MPG jogging. I can jog with the screen buttons just not the mpg.
Steps:
1) I configured the input pins for Encoder_Aux0-A and Encoder_Aux0-B in the ESS plugin
2) I mapped MPG#0 to Encoder_Aux0
3) I added a function to the Screen Load Script
--------------------------------------
-- MPG Code --
--------------------------------------
function MapMpgToX()
mc.mcMpgSetAxis(inst, 0, 0)
end
MapMpgToX()
4) The code compiles and it runs but for some reason the mpg does not jog the x-axis. So there is something I am missing. Likely something basic, as if if am missing a button to turn on MPG jogging. I can jog with the screen buttons just not the mpg.