macro input Gcode

This is where you talk about Macros, show examples of your macro scripting and SHARE handy segments of script code as examples.

macro input Gcode

Postby Mindustrys » Tue Apr 12, 2022 3:43 pm

Hi everyone, I'm making a machine that will have to do the same process for its entire life. I'll explain better

I have a cnc router with the work surface divided in two, in the first half there is a mold in which the blank to be machined will be housed, while in the second half I have another mold in which the mirror copy of the previous blank will be housed.
I installed two NO buttons near the respective parts to be machined, the question and one:
can I make one button start Gcode n001, and the other button start Gcode n002?
taking into account that:
- each mold has its respective pneumatic vice which starts at the start of the gcode and stops at the end of the Gcode.
- the Gcode must be re-run immediately when the chosen button is closed.

thank you very much I hope for your help.
Mindustrys
 
Posts: 27
Joined: Sat Aug 21, 2021 3:47 pm

Re: macro input Gcode

Postby A_Camera » Wed Apr 13, 2022 11:55 am

I don't know if you can load and start a G-code file with a button push, but if the code will always be the same, or at least will be used for a long time, then you can write a macro loop, checking button 1 and button 2 states and call the macro code for the pushed button. The macro code can include the G-code necessary to run when the button is pushed. Perhaps there are other ways to this as well, but the answer is yes, you can do that with UCCNC.
A_Camera
 
Posts: 657
Joined: Tue Sep 20, 2016 11:37 am


Return to Macros

Who is online

Users browsing this forum: No registered users and 4 guests