1
Mach4 General Discussion / Re: Calling an "Action" from a lua script
« on: January 30, 2016, 08:52:00 AM »
Thanks for the help.
I haven't played a lot with the profile functions yet, but it makes sense how you are getting the values from the profile to fill in the values for the jog inc.
The code is also easily extended to support skipping non-used increments. (IE. iterate past any 0's you find until you get to the non-zero result, rolling over as needed.)
Additionally, we would then change the text box displaying the current jog increment (txtJogInc in wx4 for example,) to not use the label code "Current Jog Increment", but instead set the label directly with the set properties command. (Or, alternatively, setup a register for that value, and set that box to use that register.)
This should solve the problem nicely, although in a slightly different way.
Thanks again.
Jim
I haven't played a lot with the profile functions yet, but it makes sense how you are getting the values from the profile to fill in the values for the jog inc.
The code is also easily extended to support skipping non-used increments. (IE. iterate past any 0's you find until you get to the non-zero result, rolling over as needed.)
Additionally, we would then change the text box displaying the current jog increment (txtJogInc in wx4 for example,) to not use the label code "Current Jog Increment", but instead set the label directly with the set properties command. (Or, alternatively, setup a register for that value, and set that box to use that register.)
This should solve the problem nicely, although in a slightly different way.
Thanks again.
Jim