Hi,
Is there a way to implement the Mach3 mpg Velocity mode in Mach4?
Yes there is but its not straight forward.
If you have an MPG, that is connected to your breakout board and thence to your motion controller. Your motion controller then passes the numeric number of clicks to Mach
which then issues the move instructions depending on the selected current increment. It works fine....proivided you don't spin wheel too fast and end up with a whole bunch of after-run,
that can ruin your day!
That describes how incremental mode works, but what about velocity mode.? For this purpose I would suggest you experiment with Mach by writing some macros that do
velocity jogging using the API's:
LUA Syntax:
rc = mc.mcJogVelocityStart(
number mInst,
number axisId,
number dir);
Description:
Start a velocity jog on the given axis.
and:
LUA Syntax:
mcJogVelocityStop(
number mInst,
number axisId)
Description:
Stop a velocity jog on an the given axis.
Basically you start a velocity jog and then some time later you stop it, usually by lifting your finger off the jog button on your keyboard.
This does not work with an MPG, it sends a series of pulses which are ALWAYS interpreted by Mach as incremental moves.
What I did is modify my pendant, I made it so I figure that I can do what I like with it, such that when I want Velocity mode jogging I hold a sprung loaded
toggle switch, and then the microprocessor inside my pendant issues a continuous signal but ONLY WHILE I spin the MPG at at least one click per second.
If you like the MPG becomes the logical equivalent of a keyboard button, when the MPG is spinning (above some minimum rate) the button is pressed, and when its not spinning
the button is released. Thereafter its simply a matter of writing jog scripts to match the 'button presses'. The axis select switch works per normal.
Note that this relies on a small microprocessor in my pendant, and that you can program it. This is the complication that I refer to.
Craig