Hello Guest it is May 17, 2021, 06:55:44 PM

Author Topic: add condition on Gcode  (Read 192 times)

0 Members and 1 Guest are viewing this topic.

add condition on Gcode
« on: January 05, 2021, 05:08:42 PM »
is there way to add condition on Gcode(if,then,else) to act according buttons or any other event that will happened while gcode run?
i think there way but i didn't see in the manual nothing about this
thks
Re: add condition on Gcode
« Reply #1 on: January 05, 2021, 08:30:39 PM »
You can do it with an Mcode in hobby or use macro B in industrial .
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com
Re: add condition on Gcode
« Reply #2 on: January 06, 2021, 12:31:17 AM »
Thks
But i didn't clear my self,only act or do something acording event its simple ,but i mean something else
We have several options to run the gcode and all that options can export from postprocessor,but finaly which gcode will run at realtime its depends on user ,which button he will press,where he will put the part....
So i need condition that i can decied which part of gcode to run ,not only act specific action
Hope its more clear
Thks
Re: add condition on Gcode
« Reply #3 on: January 06, 2021, 06:35:59 AM »
Okay, to do that you need Macro B , it has if, then, else and goto. This is only in the industrial version. If you have industrial a great reference is Peter Smid’s programming in MacroB book.
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com