Hello Guest it is April 26, 2024, 06:32:30 AM

Author Topic: Can i enter my own jog increment in Mach4?  (Read 1263 times)

0 Members and 1 Guest are viewing this topic.

Can i enter my own jog increment in Mach4?
« 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?
Re: Can i enter my own jog increment in Mach4?
« Reply #1 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
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Can i enter my own jog increment in Mach4?
« Reply #2 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.
Re: Can i enter my own jog increment in Mach4?
« Reply #3 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
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Can i enter my own jog increment in Mach4?
« Reply #4 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
Re: Can i enter my own jog increment in Mach4?
« Reply #5 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
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Can i enter my own jog increment in Mach4?
« Reply #6 on: November 30, 2021, 04:12:54 PM »
I will try this. Thank you very much!
Re: Can i enter my own jog increment in Mach4?
« Reply #7 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
Re: Can i enter my own jog increment in Mach4?
« Reply #8 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
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Can i enter my own jog increment in Mach4?
« Reply #9 on: November 30, 2021, 05:33:07 PM »
I will try that. Thanks again