Hello Guest it is January 18, 2020, 06:26:16 AM

Author Topic: External controls  (Read 1557 times)

0 Members and 1 Guest are viewing this topic.

External controls
« 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
Re: External controls
« Reply #1 on: August 12, 2015, 02:14:48 PM »
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?

Code: [Select]
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.

Offline dude1

*
  •  1,253 1,253
    • View Profile
Re: External controls
« Reply #2 on: August 12, 2015, 07:44:51 PM »
if you have a look through the forum that has been covered
Re: External controls
« Reply #3 on: August 13, 2015, 11:49:28 AM »
Hit the e-stop! Hit the e-stop!
Re: External controls
« Reply #4 on: August 13, 2015, 01:15:17 PM »