155
« on: January 16, 2020, 04:38:31 AM »
I found and solved the problem, it was a writing error in the m40 macro that you had loaded.
this is correct:
function m40()
local inst = mc.mcGetInstance("Spindle range 0")
local rc
local currentRange
currentRange, rc = mc.mcSpindleGetCurrentRange(inst)
if (currentRange == 0) then
return -- nothing to do!
end
-- Do the machine dependent range change control.
--
-- End machine dependent range change control
-- Next, tell Mach what rage we are now in IF the above is successful.
mc.mcSpindleSetRange(inst, 0)
end
if (mc.mcInEditor() == 1) then
m40()
end
P.S in gdode and MDI it is recognized and applied whether you use uppercase or lowercase letters.
thank you so much!! you are great!!