smav,
There aren't any more functions from a drop down other than jogging from the Keyboard Plugin Config. You will have to add your inputs to the Signal Library just like you did with the E Stop.
The EStop was easy because there is already a call for E Stop; but you will have to write a script to do other functions like increasing Jog %.
I made a script to increase and decrease the Spindle Override with the (+) and (-) buttons.
I mapped the Buttons to Input 3 and Input 4.
In the screen load script; I made a function called SpindlePlus() to increase by 10% and SpindleMinus() to decrease by 10%
In the Signal Library, I put those functions in Input 3 and Input 4 respectively.
[mc.ISIG_INPUT3] = function (State)
if (State == 1) then
SpindlePlus()
end
end,
[mc.ISIG_INPUT4] = function (State)
if (State == 1) then
SpindleMinus()
end
end,
---------------------------------------------------------------
function SpindlePlus()
local inst = mc.mcGetInstance()
local SSO = mc.mcSpindleGetOverride(inst)--Returns: 0.5 - 1.5
if SSO >= 1.5 then
mc.mcCntlSetLastError(inst, "Can't increase SSO anymore.")
else
SSO = (SSO + 0.1)
mc.mcSpindleSetOverride(inst, (SSO))
end
end
---------------------------------------------------------------
function SpindleMinus()
local inst = mc.mcGetInstance()
local SSO = mc.mcSpindleGetOverride(inst)--Returns: 0.5 - 1.5
if SSO <= 0.5 then
mc.mcCntlSetLastError(inst, "Can't decrease SSO anymore.")
else
SSO = (SSO - 0.1)
mc.mcSpindleSetOverride(inst, (SSO))
end
end
---------------------------------------------------------------