This is the Down Script I've added to the Enable button, and this seems bullet proof. Try it by entering the config, make a change then exit. Then Enable and try the jog without pressing Reset.
Hopefully this will now allow me to go back and try the MPG again.
--Make 100% certain that we always use the machine Inch/Metric system set when exiting config.
--Mach has a bug where Config defaults jogging back to Inches!
----------AW Load error check module ---------------
local inst = mc.mcGetInstance()
local profile = mc.mcProfileGetName(inst)
local path = mc.mcCntlGetMachDir(inst)
package.path = path .. "\\Modules\\?.lua;" .. path .. "\\Profiles\\" .. profile .. "\\Modules\\?.lua;"
package.loaded.mcErrorCheck = nil
ec = require "mcErrorCheck"
--local defUnits
local rc
--defUnits, rc = mc.mcCntlGetUnitsDefault(inst)
-- c = mc.mcJogSetUnitsMode(inst, mc.X_AXIS, defUnits)
rc = mc.mcJogSetUnitsMode(inst, mc.X_AXIS, mc.MC_UNITS_METRIC)
if (rc ~= mc.MERROR_NOERROR) then
mc.mcCntlSetLastError(inst, "Setting X-axis mode returned " .. ec[rc])
end
rc = mc.mcJogSetUnitsMode(inst, mc.Y_AXIS, mc.MC_UNITS_METRIC)
rc = mc.mcJogSetUnitsMode(inst, mc.Z_AXIS, mc.MC_UNITS_METRIC)
rc = mc.mcJogSetUnitsMode(inst, mc.A_AXIS, mc.MC_UNITS_METRIC)