use variables with in macros
-
hi,
i would like to know if there is a way to write macro that use global variables, and then to combine it with lets say a message like m291?.
for example i want to write macro for pid, i want to be able to enter my preferred temp in a m291 message and then it will automatically enter the right parameters in the macro.
i know i can write macro in a macro for all my bed and head temps that i use but it make more sense to just enter the values i want.also is there a way to write loops or conditions in macros?
if there is it would be super helpful if you can send me the link to go and study it. -
https://duet3d.dozuki.com/Wiki/GCode_Meta_Commands
no variables (yet)
-
@bearer thank you for the info!
its very disappointing .. i hear the "not yet" message for more then 3 years now.. -
@Eran898 said in use variables with in macros:
i hear the "not yet" message for more then 3 years now..
Rome wasn't built in a day. The groundwork in RRF3 is all built now. Conditional gcode is out now. It is all coming in due time.
-
You can simulate a small number of numeric variables already, by defining a dummy tool and using its XYZ offsets as variables.
-
@Phaedrux
i know but surely you can understand were the frustration come from..
one thing i must say is the only reason i always recommend to friends to go for duet bored are the forum support ,its crazy how fast and good all the reply's here!!, specially by dc42!!
@dc42 said in use variables with in macros:You can simulate a small number of numeric variables already, by defining a dummy tool and using its XYZ offsets as variables.
can you please give me an example?,just to see how you use this correctly.