1
Mach4 General Discussion / Re: M3 macro does not start spindle
« on: October 24, 2021, 12:52:34 PM »
mc.SV_S returns a value of 19 not 5000 as it should.
A have used this macro to test it.
A have used this macro to test it.
Code: [Select]
function m3()
inst=mc.mcGetInstance()
local lRPM = mc.SV_S
lRPM = math.tointeger(lRPM)
mc.mcCntlSetLastError(inst, tostring(lRPM))
end
if (mc.mcInEditor() == 1) then
m3()
end