Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: jshinn1914 on November 28, 2021, 09:55:27 AM

Title: Can i enter my own jog increment in Mach4?
Post 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?
Title: Re: Can i enter my own jog increment in Mach4?
Post by: joeaverage on November 28, 2021, 11:11:41 PM
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
Title: Re: Can i enter my own jog increment in Mach4?
Post by: jshinn1914 on November 30, 2021, 02:52:55 PM
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.
Title: Re: Can i enter my own jog increment in Mach4?
Post by: joeaverage on November 30, 2021, 03:07:47 PM
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
Title: Re: Can i enter my own jog increment in Mach4?
Post by: jshinn1914 on November 30, 2021, 03:49:35 PM
If you mean the JOGGING tab? Then the text box with increments? If so , that text box is not editable
Title: Re: Can i enter my own jog increment in Mach4?
Post by: joeaverage on November 30, 2021, 04:10:25 PM
Hi,
OK, create a another button that asks yo to set a jog increment and then use:

Code: [Select]
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
Title: Re: Can i enter my own jog increment in Mach4?
Post by: jshinn1914 on November 30, 2021, 04:12:54 PM
I will try this. Thank you very much!
Title: Re: Can i enter my own jog increment in Mach4?
Post by: jshinn1914 on November 30, 2021, 04:43:06 PM
I created a new button. Where would I paste this code? Really this is new to me
Title: Re: Can i enter my own jog increment in Mach4?
Post by: joeaverage on November 30, 2021, 05:19:57 PM
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
Title: Re: Can i enter my own jog increment in Mach4?
Post by: jshinn1914 on November 30, 2021, 05:33:07 PM
I will try that. Thanks again
Title: Re: Can i enter my own jog increment in Mach4?
Post by: thosj on December 01, 2021, 06:29:10 PM
I don't get it. If you just want to jog someplace, one time, just use MDI. Or am I missing something?