Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started 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.
-
If you use Scott Schaefers MachMad plugin you can use it to link external buttons to macros, that should do what you want.
Hood
-
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
-
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,