Machsupport Forum
Mach Discussion => Mach4 General Discussion => Topic started by: tecalote on August 04, 2015, 01:17:40 PM
-
Good morning,
I'm trying to figure out how to set up a few physical switches to control Mach4. I already have an estop switch connected and working but I'd like to add some switches for START, PAUSE and STOP. I just can't figure out how to map inputs to the functions I want. Any help would be greatly appreciated.
Thanks
-
I've been reading through the Mach4 LUA manual and I don't really undertand any of it but I think I found the code I want to use?
if (sig == mc.ISIG_INPUT1) and (state == 1) then
local inst = mc.mcGetInstance()
mc.mcCntlCycleStart(inst)
end
Now how do I make that work? Any help would be really appreciated.
-
if you have a look through the forum that has been covered
-
See if this helps...
http://www.machsupport.com/forum/index.php/topic,30464.0.html
-
See if this helps...
http://www.machsupport.com/forum/index.php/topic,30464.0.html
Thank You! That did the trick. It's working now.