You can set Keyboard Inputs as inputs in Mach4. Like the video, you can set the keyboard input to an Input# instead of the probe.
http://www.machsupport.com/forum/index.php/topic,38406.0.htmlHere are functions to control FRO up and down.
Now, I would assume you should be able to call these from the signal script no problem; but for some reason on my laptop none of my signal scripts are working so I am unable to properly test this. But, you should be able to put this in your signal script and be able to do what you want, once you set up your keyboard inputs and map them to Input#s
I have this one mapped to Input5
Do the same for FRO Minus just put make another signal and put the function FROMinus() in it instead of plus.
[mc.ISIG_INPUT5] = function (state)
if (state == 1) then --
local inst = mc.mcGetInstance()
FROPlus()
mc.mcCntlGcodeExecute(inst, "G91G00X.25")
end
end,
Let me know if this works.
Someone else can chime in and suggest why my signal script isn't working on my laptop as well. Running Sim with hobby license.
I put these functions in the PLC script, if Inputs are fired then call these functions and it works. So I'm not really sure why the signal script isn't working for me.
Actually pretty cool putting this in the PLC Script. I have the (+) and (-) keys set up to FRO and when you hold them it keeps moving up or down.
Potentially dangerous if the keys get stuck, but pretty cool function.