91
Mach4 General Discussion / Re: Homing A axis
« on: December 30, 2021, 07:39:11 AM »
Which motion controller are you using?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
function m103(hParam)
local inst = mc.mcGetInstance();
local maxVel = 3000
if (hParam ~= nil) then
local vVal = mc.mcCntlGetLocalVar(inst, hParam, mc.SV_V)
local vFlag = mc.mcCntlGetLocalVarFlag(inst, hParam, mc.SV_V)
local RROpercent = (vVal/maxVel)*100
if(vFlag == 1) then
mc.mcCntlSetRRO(inst, RROpercent)
end
end
end
Is there a sliding-scale 0-100 screen widget?