Concatenating strings in parameters
-
I want to display a customized message with the M291 command. In the message I want to refer to the current tool number.
Can I use concatenation as introduced with RRF3 and Strings like this:?M291 P"Filament slot" ^ state.currentTool ^ "is empty" S3
Or can I declare a variable and refer to that variable in the parameter like this:?
var text = "Filament slot" ^ state.currentTool ^ "is empty" M291 Ptext S3
If not, can we get this as a feature please?
-
For how to use expressions as parameters in G- and M-commands, see https://duet3d.dozuki.com/Wiki/GCode_Meta_Commands#Section_Use_of_expressions_within_GCode_commands.
-
@dc42 stupid me, thank you so much!