Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: ostie01 on June 10, 2008, 04:17:05 AM

Title: X Axis won't stop when pushing external OEM button
Post by: ostie01 on June 10, 2008, 04:17:05 AM
Hi, this is my first post so will try to be as clear as possible

I'm in the middle of my project, building my CNC router table using Mach3. I wanted to try some OEM trigger buttons to test a futur control panel.

When I push and release the external button, X axis begin to move in the right direction but won't stop until I hit ESC on keyboard or Emergency button.

Checked voltage on pin 2, port 2, goes to 5v when pushing button and return to ground when releasing it.

Thanks for any help, will be very appreciated. Jeff

Title: Re: X Axis won't stop when pushing external OEM button
Post by: Hood on June 10, 2008, 06:33:06 AM
I think you may have to use a Brain looking at the OEM trigger when you want to use it for Jogging.

Hood
Title: Re: X Axis won't stop when pushing external OEM button
Post by: ostie01 on June 10, 2008, 06:42:33 AM
Hi, thanks for the reply, could you explain a little bit more about "brain looking".

I'm almost new to Mach3 so all those terms are new to me and English is not my primary language.

Thanks, Jeff
Title: Re: X Axis won't stop when pushing external OEM button
Post by: Hood on June 10, 2008, 07:26:24 AM
OK you will find the Brains editor from the Operator menu, you can do all sorts with Brains and they are much quicker than using the macropump. This is an example of a brain for jogging the X axis in a positive direction. I have not tried it but it should work.
I think there is a video showing how to use Brains but its fairly easy to pick up, if you have problems get back and someone will be able to help you I am sure.
Hood
Title: Re: X Axis won't stop when pushing external OEM button
Post by: ostie01 on June 10, 2008, 04:12:43 PM
On the operator menu, I can't see any brain editor choice, only - 1-Control offline,   2-Fixtures,   3-ToolTable,   4-Maintenance hours,   5-Vb script Editor

Maybe I'm missing something

Haaa!! Those newbie questions
Title: Re: X Axis won't stop when pushing external OEM button
Post by: Chaoticone on June 10, 2008, 04:39:53 PM
Ostie, what version of Mach are you running? Can find out by going to top tabs, help, about Mach.

Brett
Title: Re: X Axis won't stop when pushing external OEM button
Post by: ostie01 on June 11, 2008, 02:19:10 AM
Hi Brett.

It is version R1.83.027
Title: Re: X Axis won't stop when pushing external OEM button
Post by: Chip on June 11, 2008, 02:35:38 AM
Hi, Ostie01

No Brain's in that version, R3.041 for sure, Maybe 2.63 has it.

Chip
Title: Re: X Axis won't stop when pushing external OEM button
Post by: Hood on June 11, 2008, 03:22:01 AM
Yes Chip is right, think brains  came in about 2.6 but not 100% sure however the lockdown (1.63)  definitely has them.
Hood
Title: Re: X Axis won't stop when pushing external OEM button
Post by: ostie01 on June 11, 2008, 03:50:25 AM
I've just downloaded version 2.6.....

Brain is in it, just removed old version from my computer that control my router and will install that version and will try what Hood told me to do and will see.

Will let you know how it turned out. Thank you very much for your help, really appreciated, Jeff
Title: Re: X Axis won't stop when pushing external OEM button
Post by: ostie01 on June 11, 2008, 05:56:18 AM
So I wrote the code with Brain Editor and with X axis right and left jogging and same thing happen, Axis keep moving and will not stop, have to press escape to stop it.
Title: Re: X Axis won't stop when pushing external OEM button
Post by: Hood on June 11, 2008, 06:10:49 AM
What if you release and press and release again? will it stop?
seems like its latching the jog on, seem to remember this from way back, cant remember if there was a resolution.
Let me know what happens when you try the above.

Hood
Title: Re: X Axis won't stop when pushing external OEM button
Post by: ostie01 on June 11, 2008, 01:18:09 PM
Hi, once I press the pushbutton, axis move and will not stop no matter if I press button many times. If I push in X++ button, axis move in that direction even if I hit X- button. The only way it will stop, it's by pressing ESC on keyboard or Emergency stop.

Jeff
Title: Re: X Axis won't stop when pushing external OEM button
Post by: Hood on June 11, 2008, 01:24:27 PM
Sounds like it is not going to be possible to have external Jog buttons, I know trying to work some system buttons by VB script can be problematic and this looks similar. I will see what Brian says.

Hood
Title: Re: X Axis won't stop when pushing external OEM button
Post by: Chaoticone on June 11, 2008, 04:59:28 PM
You can't call the jogs form a VB button edited in Mach but you can go in screen 4 and assign the button the OEM code and it will stop on release.

Brett
Title: Re: X Axis won't stop when pushing external OEM button
Post by: Hood on June 11, 2008, 07:24:22 PM
Well I just talked with Brian and he said to use the Jog Inputs. I never even knew there was such a thing, shows how much I pay attention. So basically all you should need to do is go to ports and pins then Inputs, scroll way down and enter the pins you have your buttons connected to into the X++, X-- etc

Hood
Title: Re: X Axis won't stop when pushing external OEM button
Post by: ostie01 on June 12, 2008, 04:35:17 AM
Hi, thanks for this reply, I did not think that it could be so simple, will try it.