Machsupport Forum
Mach Discussion => Mach4 General Discussion => Topic started by: jshinn1914 on November 28, 2021, 09:55:27 AM
-
I am trying to enter my own jog increment in Mach 4. In Mach3 using the MPG Mode, i could edit the default increment, like 1, .01, .001, ect.
However the text box on the jog screen in Mach4 is not editable. So if i want to move the axis 1.35 inches I cant type this increment in and to jog said distance.
Am I missing something?
-
Hi,
yes you can set the increments.
Open the Control plugin and the General Tab, there you can set the increments as you wish.
Craig
-
Actually I want to change increments on the fly. In Mach 3 that was possible. I don’t want to reset the default jog increments I just want to type in the measurement and move the axis.
-
Hi,
OK....thats new to me. I suspect its possible, go to the properties tab of the jog increment DRO, i think you'll fin the option to edit
the entry in-line. Try it a see.
Craig
-
If you mean the JOGGING tab? Then the text box with increments? If so , that text box is not editable
-
Hi,
OK, create a another button that asks yo to set a jog increment and then use:
LUA Syntax:
rc = mc.mcJogSetInc(
number mInst,
number axisId,
number increment)
Description:
Set the current jog increment for the give axis.
to pass that value to the Jog Increment DRO
-
I will try this. Thank you very much!
-
I created a new button. Where would I paste this code? Really this is new to me
-
Hi,
in Screen Edit mode go to the Event Properties of the button. There you can attach a script.
The script itself will most probably be in the Screen Load script, how ever when you are developing the code and debugging it I would suggest you make it a macro within
the macros folder of your current profile. This allows you to run the script in a 'sandbox' so you can use all the debugging advantages of the ZeroBrane editor. Only once
you have de-bugged the script would you install it in the screen Load script.
Craig
-
I will try that. Thanks again
-
I don't get it. If you just want to jog someplace, one time, just use MDI. Or am I missing something?