Hello folks, I am trying to modify the following script for Mach3:
It attempts to capture the backlash for a chosen axis using a dial indicator.
UCCNC Macro
http://bit.ly/2OFAJxd
Mach3 Macro
http://bit.ly/2PSXnP6
In both scripts it asks for an end user to select which axis they want to test; X, Y or Z.
I have attempted to recreate the script for use with the latest TNG/planet-cnc program, like so.:
%
(name,EnterAxis)
(dlgname,EnterAxis)
(dlg,Enter AXIS X Y or Z, typ=label, x=20, w=280, color=0xffa500)
(dlg,AXIS To Move, x=0, dec=0, def=X, param=axistomove)
(dlg,Press OK to continue, typ=label, x=120, w=170, color=0xffa500)
(dlgshow)
Simply put, trying to capture the answer; X, Y or Z as an input variable.
How could I then go about specifying to move 1mm for the chosen axis, for example, I have tried.
G1 #<axistomove>1
g04 p1
BUT the syntax is wrong for the G1 movement command. I have also tried a bunch of other combinations, but I cant seem to specify the axis as the parameter to set. I can easily specify X for the axis and then a parameter to move for, but not the actual axis and then a hardcoded movement value.
Any help, much appreciated.
Chris