Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Raychar on November 20, 2012, 07:09:52 AM

Title: External button to open g-code program file to start machiing
Post by: Raychar on November 20, 2012, 07:09:52 AM
Hello,

As an example, I wrote five g-code files of their own file names. I want they can be opened and run as in following patterns by hitting
the corresponding five installed external buttons:

when operator hit "A" button, the followings are executed automatically:
>program of files; e.g. "file-A" is opened in the Mach's screen.
>program then automatically starts and run.
>of course, the machine starts the machining motions till the end of the program.

Can anybody help to tell if this is possible by using the OEM buttons and how?

Thanks in advance.
Title: Re: External button to open g-code program file to start machiing
Post by: Hood on November 20, 2012, 03:35:26 PM
If you use Scott Schaefers MachMad plugin you can use it to link external buttons to macros, that should do what you want.
Hood
Title: Re: External button to open g-code program file to start machiing
Post by: BR549 on November 20, 2012, 09:28:39 PM
Another option would be to build a macropump to monitor the inpouts and act on which one is pressed.

You would use calls like Loadrun() to load a start the gcode program as an auto function.

If isactive(input5) then loadrun( "c:\Mach3\Gcode\RoadRunner.txt")

(;-) TP
Title: Re: External button to open g-code program file to start machiing
Post by: Raychar on November 21, 2012, 06:30:06 AM
Hello T.P,

How to build macropump to monitor the inputs? Where should i put the calls, Loadrun()....
I don't know VB, can I do to achieve?

Thanks,