M28 + object models
-
Good morning everyone,
I would like to know if this is possible, I have already tried all the combinations that I have thought of.
This is the macro I am running
Create the preset folders in macros M470 P "0:/temporal" M28 0:/temporal/con/con M28 0:/temporal/config.g M208 S0 X150 Y150 Z150 M208 S0 X{move.axes[0].max} Y150 Z150 M208 S0 X{^move.axes[0].max^} Y150 Z150 M208 S0 X^move.axes[0].max^ Y150 Z150 M208 S0 X "move.axes[0].max" Y150 Z150 M208 S0 X{"^move.axes[0].max^"} Y150 Z150 M208 S0 X{""^move.axes[0].max^""} Y150 Z150 M208 S0 X<move.axes[0].max> Y150 Z150 M208 S0 X^{move.axes[0].max}^ Y150 Z150 M208 S0 X^"{move.axes[0].max}"^ Y150 Z150 M208 S0 Xmove.axes[0].max Y150 Z150 M29 M471 D1 S"/temporal/config.g" T "0:/sys/configTEST.g" M30 0:/temporal/configTEST.g" M30 0:/sys/configTEST.g M30 0:/temporal
This has been the result logically, but my intention was to have some of them appear as the first line
M208 S0 X150 Y150 Z150 ;this one M208 S0 X{move.axes[0].max} Y150 Z150 M208 S0 X{^move.axes[0].max^} Y150 Z150 M208 S0 X^move.axes[0].max^ Y150 Z150 M208 S0 X "move.axes[0].max" Y150 Z150 M208 S0 X{"^move.axes[0].max^"} Y150 Z150 M208 S0 X{""^move.axes[0].max^""} Y150 Z150 M208 S0 X<move.axes[0].max> Y150 Z150 M208 S0 X^{move.axes[0].max}^ Y150 Z150 M208 S0 X^"{move.axes[0].max}"^ Y150 Z150 M208 S0 Xmove.axes[0].max Y150 Z150
If this is not currently possible, would it be possible to add it in future versions? The thing is that it seems to me something very interesting, since it would allow to store data or create files automatically with specific values of the machine.
Best regards and thanks
-
-
@fcwilt said in M28 + object models:
So you want the object model values to be evaluated and the resulting command line written to the file?
I assume this is what @Aitor wants. I have a different mechanism planned to support this:
echo >"0:/temporal/config.g" "M208 S0 X"^{move.axes[0].max}^" Y150 Z150"
-
@dc42 said in M28 + object models:
I have a different mechanism planned to support this:
I'm glad to hear that as I also have a use for that ability.
Frederick
-
@dc42 That's going to be great!
-
@donstauffer @Aitor @fcwilt see https://duet3d.dozuki.com/Wiki/GCode_Meta_Commands?revisionid=HEAD#Section_Echo_command. This is now implemented in standalone mode and will be in RRF 3.4.0beta3.
-
Good morning @dc42,
I'm on version 3.3.0, that's why it doesn't work, right?
Anyway I will update as this feature will solve my life.
Thank you very much