Hi,
Mach4's greatest strength is its ability to customized.....its greatest weakness, or rather source of complaints, is that it NEEDS to be
customized to work.
Behind the <Go To Work Zero> button is a function GoToWorkZero(). The function itself is defined in the screenload script.
Are you familiar with the Screen Edit functions? Can you navigate to the Screen Load script?
This is the code in my build of the screenload script around line 225:
---------------------------------------------------------------
-- Go To Work Zero() function.
---------------------------------------------------------------
function GoToWorkZero()
--mc.mcCntlMdiExecute(inst, "G00 X0 Y0 A0")--Without Z moves
mc.mcCntlMdiExecute(inst, "G00 G53 Z0\nG00 X0 Y0 A0\nG00 Z0")--With Z moves
end
---------------------------------------------------------------
Note there are two lines of code, the one in use and the other is 'commented out' but is left intact that you may see its differences.
In particular note how the code explicitly calls a move to A0. If your machine does not have an A axis then the error you have described
results.
Simply Edit the line to remove the reference to the undefined axis:
---------------------------------------------------------------
-- Go To Work Zero() function.
---------------------------------------------------------------
function GoToWorkZero()
--mc.mcCntlMdiExecute(inst, "G00 X0 Y0 A0")--Without Z moves
mc.mcCntlMdiExecute(inst, "G00 G53 Z0\nG00 X0 Y0 \nG00 Z0")--With Z moves
end
---------------------------------------------------------------
Or you may chose to leave the original line but comment it out and add a new line to suit your needs. It will retain the option
to revert to the standard issue code should you wish by simply uncommenting it:
---------------------------------------------------------------
-- Go To Work Zero() function.
---------------------------------------------------------------
function GoToWorkZero()
--mc.mcCntlMdiExecute(inst, "G00 X0 Y0 A0")--Without Z moves
-- mc.mcCntlMdiExecute(inst, "G00 G53 Z0\nG00 X0 Y0 A0\nG00 Z0")--With Z moves
mc.mcCntlMdiExecute(inst, "G00 G53 Z0\nG00 X0 Y0 \nG00 Z0")--With Z moves
end
---------------------------------------------------------------
Craig