Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    M28 + object models

    Scheduled Pinned Locked Moved
    Gcode meta commands
    4
    7
    281
    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.
    • Aitorundefined
      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

      fcwiltundefined dc42undefined 2 Replies Last reply Reply Quote 0
      • fcwiltundefined
        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 small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

        1 Reply Last reply Reply Quote 0
        • dc42undefined
          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

          fcwiltundefined DonStaufferundefined 2 Replies Last reply Reply Quote 1
          • fcwiltundefined
            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 small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

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

              @dc42 That's going to be great!

              dc42undefined 1 Reply Last reply Reply Quote 0
              • dc42undefined
                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

                Aitorundefined 1 Reply Last reply Reply Quote 0
                • Aitorundefined
                  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