Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: WidgitMaster on July 11, 2011, 07:24:58 PM

Title: Setting up remote START, STOP, PAUSE buttons
Post by: WidgitMaster on July 11, 2011, 07:24:58 PM
I have successfully installed a 2nd PCI LPT card im my computer, running windows XP.
The 2nd LPT cable is connected to the three buttons on my router.
All wiring has been tested as good connections.
In Mach3's diagnostics page I have a 2nd row of green led's indicating the new port's pins.
In the PORTS & PINS page, I have entered the hex address of the port, enabled it, and checked 2-9 as input.
On the INPUT page, I have:
OEMTrigger-1 set to Port #2, Pin #2, Key=<ALT><R> for Start button
OEMTrigger-2 set to Port #2, Pin #3, Key=<ALT><S> for Stop button
OEMTrigger-3 set to Port #2, Pin #4, Key=<SPACE> for Pause button

With these settings, I can see the green led's in the diagnostics page go on/off when the buttons are pressed.
The only problem is they do not actually Start, Stop or Pause the running g-code!

What did I do wrong?
Eric
Title: Re: Setting up remote START, STOP, PAUSE buttons
Post by: Hood on July 11, 2011, 07:34:30 PM
Have you set up the OEM triggers to the OEM codes for the functions you want?
Screenshot below in the order of Start, Feedhold and Stop.
Hood
Title: Re: Setting up remote START, STOP, PAUSE buttons
Post by: WidgitMaster on July 11, 2011, 07:39:20 PM
I had looked at that page, and actually skipped over it as it was so uninformative!
How would I know what it needs?

What codes do I need for Start, Stop, Pause?
Very confusing!

Eric
Title: Re: Setting up remote START, STOP, PAUSE buttons
Post by: Hood on July 11, 2011, 07:41:14 PM
1000 is start, 1003 is stop, 1001 is pause.
You will find the oem codes for buttons, DROs LEDs etc either on the wiki or in the sticky post at the top of the forum.
Hood
Title: Re: Setting up remote START, STOP, PAUSE buttons
Post by: Chaoticone on July 11, 2011, 07:46:02 PM
OK, you set up your buttons as oem triggers.  Now you need to set what the oem triggers do.  Hood has given you the oem numbers for start, feedhold and stop.  They could just as easily be mapped to coolant on, off, for example by entering the approiate OEM codes.

Brett
Title: Re: Setting up remote START, STOP, PAUSE buttons
Post by: WidgitMaster on July 11, 2011, 07:49:09 PM
Ok, I have entered the 1000, 1001, 1003 numbers but nothing works yet?
Title: Re: Setting up remote START, STOP, PAUSE buttons
Post by: Hood on July 11, 2011, 07:51:09 PM
Can you attach your xml and I will have a look and see if there is an issue.
Hood
Title: Re: Setting up remote START, STOP, PAUSE buttons
Post by: Hood on July 11, 2011, 07:59:09 PM
One other thing to consider is some parallel ports can not be set to Inputs on Pins 2-9 or need set up via a jumper or possibly in device manage to do so. Try connecting to the normal input pins (10-13 and 15) on port 2 and set oem triggers accordingly and see if that helps.
Hood
Title: Re: Setting up remote START, STOP, PAUSE buttons
Post by: WidgitMaster on July 11, 2011, 08:03:31 PM
I'm new to this forum, and cant figure out how to insert the XML attachment!
In CNCZone there's an option for that, but I don;t see it here!
Title: Re: Setting up remote START, STOP, PAUSE buttons
Post by: Hood on July 11, 2011, 08:05:46 PM
On the reply page you will see at lower left an additional options button, click that and you will then see a button to choose what you want to upload. You will need to rename the xml first if it doesnt already have a custom name as the forum only accepts a file name once, suggest you rename to WidgitMaster.xml

Hood
Title: Re: Setting up remote START, STOP, PAUSE buttons
Post by: WidgitMaster on July 11, 2011, 08:07:01 PM
different pins means rewiring my router!

The card works else the led's would not change in the diagnostics page!
Could it be Active LO/HI or the Emulated thing?
Title: Re: Setting up remote START, STOP, PAUSE buttons
Post by: Hood on July 11, 2011, 08:09:39 PM
Emulated is meant for use when no real switches are connected, in opther words you can set the emulated to look at keyboard keys for diagnostic purposes.
Lo/Hi shouldnt really have an affect, just it would switch wrongly, ie be on when supposed to be off and vice versa.

BTW it is momentary switches you are using?

Hood
Title: Re: Setting up remote START, STOP, PAUSE buttons
Post by: WidgitMaster on July 11, 2011, 08:12:25 PM
Momentary YES
Title: Re: Setting up remote START, STOP, PAUSE buttons
Post by: Hood on July 11, 2011, 08:16:21 PM
Ok you dont have the OEM codes set up in the xml you attached (Config menu then System Hotkeys) Also that xml has Port 3 set for the OEM trigger inputs on Ports and Pins Inputs page.
Hood
Title: Re: Setting up remote START, STOP, PAUSE buttons
Post by: WidgitMaster on July 11, 2011, 08:31:37 PM
Everything is setup and appears to be correct, but it doesn't work!
Unless you have OEMtrigger's in use on your machine, I would have to say its a problem in MACH3!
I'm going to call ArtSoft in the morning, and talk to one of their tech's
Thanks for your help!
Eric
Title: Re: Setting up remote START, STOP, PAUSE buttons
Post by: Hood on July 11, 2011, 08:33:18 PM
I have many oem triggers in use ;)
Either the xml you attached is the wrong one or you have it set wrong.
Hood
Title: Re: Setting up remote START, STOP, PAUSE buttons
Post by: Hood on July 11, 2011, 08:40:44 PM
Here are a couple of pics of my control panels on lathe and mill, the button panel on its own is now on the lathe instead of the one pictured in the console. Not all but quite a few of these are via OEM triggers, others via Brains.
Hood
Title: Re: Setting up remote START, STOP, PAUSE buttons
Post by: Hood on July 11, 2011, 08:47:03 PM
And a screenshot of the OEM trigger inputs I use on the lathe (all 15 :) ) and just in case you are wondering why it is set to Port 0 it is because they come in via my PLC.
Hood
Title: Re: Setting up remote START, STOP, PAUSE buttons
Post by: WidgitMaster on July 11, 2011, 08:56:24 PM
Here are snapshots of my settings screens, and an updated XML (I didn't know I had to exit MACH3 to update it)

Title: Re: Setting up remote START, STOP, PAUSE buttons
Post by: Hood on July 11, 2011, 09:02:39 PM
As mentioned previously you have set to Port 3 see screenshot, should be port 2.
Hood
Title: Re: Setting up remote START, STOP, PAUSE buttons
Post by: WidgitMaster on July 11, 2011, 09:10:34 PM
When PCI card installed, it defaulted to LPT3
I have set it back to port 2, saved settings, and shut down MACH3
Now it actually works!
For some reason it was not updating the XML file?
Thanks again!
Eric
Title: Re: Setting up remote START, STOP, PAUSE buttons
Post by: Hood on July 11, 2011, 09:15:05 PM
What windows names the port has no bearing on what Mach calls it. In Mach you have Port 1 and Port 2 for parallel ports and the address set for each is what Mach looks at. So windows could call it LPT 1 and LPT 400 if it wanted but as long as you have the correct address set in Mach it will be Port 1 and Port 2 as far as Mach is concerned.

The changes you make will take effect immediately after a reset but will only actually be written to the xml on a restart of Mach.
Hood
Title: Re: Setting up remote START, STOP, PAUSE buttons
Post by: ger21 on July 11, 2011, 09:15:33 PM
LPT3 is NOT Port3.

You get Two parallel Ports, and they are either assigned to Port1, or Port2. The LPT #'s don't mean anything to Mach3.