Hello Guest it is November 19, 2019, 04:50:25 AM

Author Topic: External button to open g-code program file to start machiing  (Read 1724 times)

0 Members and 1 Guest are viewing this topic.

External button to open g-code program file to start machiing
« 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.

Offline Hood

*
  •  25,856 25,856
  • Carnoustie, Scotland
    • View Profile
Re: External button to open g-code program file to start machiing
« Reply #1 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

Offline BR549

*
  •  6,916 6,916
    • View Profile
Re: External button to open g-code program file to start machiing
« Reply #2 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
Re: External button to open g-code program file to start machiing
« Reply #3 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,