Hi,
if you open the screen editor and have a look at the script attached to the Go To Work Zero button you will find a function:
GoToWorkZero().
The function it self is in the screen load script, in my somewhat modified screenset around line 250:
---------------------------------------------------------------
-- 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, the second is commented out so only the first line is active. The comment associated with that line says 'Without Z moves' but note also that it demands that
the A axis be sent to work zero as well. My machine does not have an A axis and is not defined and therefore this line of code fails. If I modify the line to not include the non existant
axis like this:
---------------------------------------------------------------
-- Go To Work Zero() function.
---------------------------------------------------------------
function GoToWorkZero()
mc.mcCntlMdiExecute(inst, "G00 X0 Y0 ")--Without Z moves
--mc.mcCntlMdiExecute(inst, "G00 G53 Z0\nG00 X0 Y0 A0\nG00 Z0")--With Z moves
end
The button now works.
Craig