Discussion: Conditional/Variables and Macros
-
With the implementation of conditional G-Code, the object model, and variables in G-Code, what is the design intent for:
- Arguments to macros
- Returning values from macros to other macros
- Returning values from macros to the invoking M98
- Invoking macros in conditional/variable and returning values
If any?
-
Those are all planned. I haven't yet decided how to integrate macro parameters with variables, which is one reason why I haven't implemented variables yet.
-
Fantastic. Thanks for the quick response.
-
@dc42 @chrishamm Is there a timeframe for being able to use the conditional stuff in an SBC environment? Which component would actually execute the macro and do the evaluation, the Duet or the SBC? If the SBC, will the models be in sync by then so the same macro can be used in either standalone or SBC mode?
-
@gtj0 said in Discussion: Conditional/Variables and Macros:
@dc42 @chrishamm Is there a timeframe for being able to use the conditional stuff in an SBC environment? Which component would actually execute the macro and do the evaluation, the Duet or the SBC?
The SBC.
If the SBC, will the models be in sync by then so the same macro can be used in either standalone or SBC mode?
Yes.