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

    RRF3.3 meta functions don't work when in cnc mode

    Scheduled Pinned Locked Moved
    Gcode meta commands
    2
    5
    212
    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.
    • Clausundefined
      Claus
      last edited by Claus

      I am new here and maybe I am wrong, but may be there is a bug related to the meta functions.

      I use RepRapFirmware 3.3 stable with a new Duet 3 Mainboard 6HC in standalone mode.

      As you can see in the picture meta functions are not reconized when in cnc mode M453 and are reconized if in mode FFF M 451.
      no meta functions with cnc mode.PNG
      Test.g used is simply this
      test macro.PNG

      the same thing happens in the config.g or in macros.

      I have searched the forum but have not found any reference to this.

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

        @claus from https://duet3d.dozuki.com/Wiki/GCode_Meta_Commands:

        Sub-expressions may be enclosed in { } or in ( ). The outermost level must always be { } because standard CNC GCode uses ( ) to enclose comments. RepRapFirmware treats ( ) as enclosing subexpressions if they appear inside { }, and as enclosing comments when they do not.

        This also applies to round brackets used to surround function argument lists. So you need to use:

        if {!exists(global.XMax_default)}
        

        and

        var a = {abs(10)}
        

        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

        1 Reply Last reply Reply Quote 0
        • Clausundefined
          Claus
          last edited by

          @dc42 I had read that part but didn't realize it also referred to round brackets used to surround function argument lists.

          Thank you it works perfectly.

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

            @claus I'm glad it's working for you now. I have just updated that part of the documentation.

            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

            1 Reply Last reply Reply Quote 0
            • Clausundefined
              Claus
              last edited by

              I really appreciated the care You put in the continuous updating of the Duet and it is one of the reasons why I chose your product.

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