111
Mach4 General Discussion / Re: Using a button script to set jog increments etc
« on: May 27, 2018, 07:03:34 PM »
Hi Allan,
No, that one's new to me, I see that now. I've just tried that and it seems to work fine, so I'll put that in all of the button scripts.
Anyway, I've raised a support ticket asking for an explanation as to why the JogIncX variable set by the mcJogSetInc() function has no effect on the actual jog it does using the X- button. I mean, what's the point in having those registers if they don't do anything useful.
Although I can sort of get my code to work, I still can't set the initial conditions to whatever the true jog increment is, unless I somehow force the ScreenScript to set it initially. We know you can't use mcJogSetInc() for that, so maybe you can call the Action function that you can select from the drop down list of Actions in the button event tab?
I'm also surprised that there's no mcJogGetType. Again, there are individual Type variables for each axis, but those don't follow the Incremental/Continuous modes of the actual machine either! It's frankly bizarre.
Hopefully someone at Mach will be able to explain all of this.
No, that one's new to me, I see that now. I've just tried that and it seems to work fine, so I'll put that in all of the button scripts.
Anyway, I've raised a support ticket asking for an explanation as to why the JogIncX variable set by the mcJogSetInc() function has no effect on the actual jog it does using the X- button. I mean, what's the point in having those registers if they don't do anything useful.
Although I can sort of get my code to work, I still can't set the initial conditions to whatever the true jog increment is, unless I somehow force the ScreenScript to set it initially. We know you can't use mcJogSetInc() for that, so maybe you can call the Action function that you can select from the drop down list of Actions in the button event tab?
I'm also surprised that there's no mcJogGetType. Again, there are individual Type variables for each axis, but those don't follow the Incremental/Continuous modes of the actual machine either! It's frankly bizarre.
Hopefully someone at Mach will be able to explain all of this.