Listing of programming codes for Buildbotics controllers

I am trying to create some macros for my use and need to use some sort of if/then and call commands and subroutine calls. Where can I find a list of commands that go outside of the normal G and M codes?

Buildbotics mostly implements linuxcnc’s gcode conventions. Conditionals and expressions should work as expected. Try to avoid nesting conditionals more than 2-3 deep; I’ve experienced issues where excessive nesting caused the buildbotics interpreter to ignore conditional boundaries and proceed through the program like they weren’t there.

1 Like

I am trying to make a single macro that would ask me to select a number for a list of locations (1,2,3,4..) and that would set my work 0,0.
So I was thinking that a series of IF statements would check my entry and then set the work location.
Is this possible? Any suggestions?

It sounds like you might be able to accomplish what you want by using work coordinate systems.

You can totally do what you’re describing with macros, but there isn’t a way to prompt the user for input. You’ll need to set a variable with the input value that you want to use via the MDI and then call your macro afterwards.

1 Like

Can you submit/ input enter a number like 1,2,or 3 and use that in an “if” statement?

There’s no way to have the GUI prompt the user for input. You can, however, go to the MDI and run a command like #<my_input_parameter>=4 and then use that parameter in the logic of your macro.

1 Like