Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: mhdale on September 03, 2006, 01:49:50 PM

Title: Making an Input do Something
Post by: mhdale on September 03, 2006, 01:49:50 PM
Hello All, I have been trying to get a couple of external inputs to work with my Mach 3 .. with little or no luck. The first is a feedhold button, I have it connected on a second paralell port using one of the CNC4PC new multifunction boards (Nice board BTW) I can see the input working on my diagnostics screen but I cannot get it to do anything. I have tried setting it to hotkey 32 (SPACEBAR) which is the PAUSE button on my screen but it does nothing..... I also have a STOP Button which I want to implement.. again same results... However there seems to be something not quite right with the stop button because I want it to activate the "STOP" button on the screen which is set as hotkey 2131 (ALT S) but when I try and set the Hotkey in my MACH3 inputs screen ALT-S comes up with 2163 not 2131... I have read through the manuals and the Wiki... and am more confused than ever...Any one have a simple step by step on making an external input Trigger an action...either an internal mach 3 function or an external macro?  It all sounded so easy... *grin*

Thanks in advance
Mike
Title: Re: Making an Input do Something
Post by: Brian Barker on September 04, 2006, 09:12:24 AM
under Config / system Hot keys enter 1001 into the 1 OEM code edit box. now you need to go to the ports and pins page and set the input to OEM triger #1  There is info in the Wiki that should tell you what number to enter into the OEMcode edt box.

Hope that helps
Brian
Title: Re: Making an Input do Something
Post by: mhdale on September 04, 2006, 11:46:41 AM
Brian,
Thanks for the reply, but I thinbk I must be one of the few who just cant seem to understand because I still dont "get it". I read through the WIKI and thought that it said to make an external input act like a keyboard button had been pressed to Select the Hotkey you wish the input to trigger and check the emulate field under prots and pins. Is that right? Or do I have to setup an OEM trigger? Is there a simple step by step example of setting up an oem trigger to do something like "feedhold" somewhere which I could examine. I find the Wiki a bit confusing, I am never sure if I am in the right section.

Thanks
Mike
Title: Re: Making an Input do Something
Post by: Brian Barker on September 04, 2006, 01:18:45 PM
Mike set up and OEM trigger... you don't need the Hothey stuff :)

If you do that you should have it working
Title: Re: Making an Input do Something
Post by: mhdale on September 04, 2006, 04:29:29 PM
Ok Brian,
Is there a Step by Step for doing that??
MIke
Title: Re: Making an Input do Something
Post by: Brian Barker on September 04, 2006, 05:50:31 PM
Nope.. you need to dothe step that I gave you in the first message that I posted. Where are you getting stuck? we can get your push buttons running no problem :)
Title: Re: Making an Input do Something
Post by: mhdale on September 04, 2006, 06:04:21 PM
Ok Brian, I Did as You Suggested.. and Poof it works.... Now... I Allways need to know how something works.... Is there a short explanation?
Title: Re: Making an Input do Something
Post by: mhdale on September 05, 2006, 06:50:16 PM
Brian, Thanks for your call and all the help you gave... its all working just like i want it to now :)
Title: Re: Making an Input do Something
Post by: darlly01 on October 17, 2012, 10:51:07 PM
Hi Brian, I noticed that you are expert by your replies. I need your help. I want to  use 2 external button to load 2 different Gcode program. I did the macro which load the gcode, but only using screen button, I couldn't do it with my external button. Is that possible? I see some explanation about to create a triggermacro, but my poor understand tell me that it will be working with only one button. well no more talking.... I just want to know how to make 2 external signal(input), button, modbus or else load my gcode and alternate it with a button press.
thanks
darli
Title: Re: Making an Input do Something
Post by: Hood on October 18, 2012, 02:58:46 AM
Brian should be an expert, he is the guy that does Mach ;D
On to your question, I messed around with trigger macro a while back and it just didnt work for me, what I did was use Scott Schaefers Mach Mad plugin and that made it easy to set a macro to an external button.
Hood
Title: Re: Making an Input do Something
Post by: darlly01 on October 18, 2012, 05:27:49 AM
hi Hood, thank you for your attention to my question. sorry, but I never heard about Scott Schaefers Mach and I don't know what is it, could you explain a little bit, . thanks
darli
Title: Re: Making an Input do Something
Post by: Hood on October 19, 2012, 06:15:19 AM
Look at the downloads link at the top of the page and choose Plugins. You will then be taken to the plugins page and if you scroll down you will see Scotts Mach Mad plugin.
Hood
Title: Re: Making an Input do Something
Post by: darlly01 on October 19, 2012, 08:46:16 AM
thanks a found it, and paid for. I hope it will solve my problem.
thank you for the information and have a nice weekend.
darli
Title: Re: Making an Input do Something
Post by: darlly01 on October 22, 2012, 10:16:55 AM
Hi Hood, as you already are an expert in  it, can you give me a little help how to start using it. I install it, but I can't see it and how to open to use it. I will appreciate any help.
darli
Title: Re: Making an Input do Something
Post by: Hood on October 22, 2012, 03:40:17 PM
You need to go  to Config Menu then Config Pkugins and enable it from there. Restart Mach and you should now have it under the Plugin Control menu. When you open MachMAD you will see a tab for Trigger Macro.
What you do there is put the oem or user code of the LED for the input and then below put the number of the macro you wish it to trigger.
If for example you are using Input 1 for your switch the OEM code for Input ones LED is 821 so you put that in the top box.
Hood
Title: Re: Making an Input do Something
Post by: darlly01 on October 22, 2012, 05:48:04 PM
I appreciated your attention and help. I open mach3 and on plugin control only has "video window" and nothing more. I couldn't find the installed plugin. when I installed it says finish installation ok.  But I can't find it.
sorry to bother you a lot. But the seller just told me to read the readme file, but it do not has it? As I looked and couldn't see.
thank you
Title: Re: Making an Input do Something
Post by: Chaoticone on October 22, 2012, 09:03:14 PM
Quote
You need to go  to Config Menu then Config Pkugins and enable it

It will not appear in the plugin control drop down until you enable it, close mach and reopen mach.

Brett
Title: Re: Making an Input do Something
Post by: darlly01 on October 22, 2012, 10:53:44 PM
Ok. I got it working. and I'd like to thank you for your great attention and help.

thanks

darli