Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    M28 + object models

    Gcode meta commands
    4
    7
    100
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Aitor
      Aitor last edited by

      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 dc42 2 Replies Last reply Reply Quote 0
      • fcwilt
        fcwilt @Aitor last edited by

        @aitor

        So you want the object model values to be evaluated and the resulting command line written to the file?

        I think @dc42 would have to respond here as that would require a change in the way M28 works.

        Frederick

        Printers: A FT-5 with the 713 upgrade bits. A custom MarkForged style. A small Utilmaker style and a CoreXY from kits. Various hotends. Using Duets (2 and 3) running 3.4.1

        1 Reply Last reply Reply Quote 0
        • dc42
          dc42 administrators @Aitor last edited by

          @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"

          Duet WiFi hardware designer and firmware engineer
          Please do not ask me for Duet support via PM or email, use the forum
          http://www.escher3d.com, https://miscsolutions.wordpress.com

          fcwilt DonStauffer 2 Replies Last reply Reply Quote 1
          • fcwilt
            fcwilt @dc42 last edited by

            @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

            Printers: A FT-5 with the 713 upgrade bits. A custom MarkForged style. A small Utilmaker style and a CoreXY from kits. Various hotends. Using Duets (2 and 3) running 3.4.1

            1 Reply Last reply Reply Quote 0
            • DonStauffer
              DonStauffer @dc42 last edited by

              @dc42 That's going to be great!

              dc42 1 Reply Last reply Reply Quote 0
              • dc42
                dc42 administrators @DonStauffer last edited by

                @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.

                Duet WiFi hardware designer and firmware engineer
                Please do not ask me for Duet support via PM or email, use the forum
                http://www.escher3d.com, https://miscsolutions.wordpress.com

                Aitor 1 Reply Last reply Reply Quote 0
                • Aitor
                  Aitor @dc42 last edited by

                  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

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Unless otherwise noted, all forum content is licensed under CC-BY-SA