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

    error: meta command expected an expression

    Scheduled Pinned Locked Moved
    Gcode meta commands
    4
    8
    364
    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.
    • XYZ_123undefined
      XYZ_123
      last edited by

      I came across this thread reference: https://forum.duet3d.com/topic/26277/how-to-allow-user-to-reset-password/6?_=1640581081938

      Tried to use it to set fan frequency as per fan replaced.

      I'm writing following logic to set fan frequency from console.

      wff.g
      M950 F0 C"out7" Q{param.S}
      echo ><fanconfg.g> "M950 Q""" ^ param.S ^ """"

      and in console I try to run as follows:
      M98 P"wff.g" S3000

      When I run, the logic saves value, but I receive error" ".

      any suggestions, what is the syntax error ?

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

        @dp_23 said in error: meta command expected an expression:

        Your echo command is wrong. If I understand correctly what you are trying to do then it should be:

        echo >"fanconfg.g" "M950 Q" ^ param.S

        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

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

          @dc42 it still I receive the error.

          dc42undefined 1 Reply Last reply Reply Quote 0
          • OwenDundefined
            OwenD
            last edited by

            This works on Duet 2 stand alone.

            echo >"fanconfg.g" "M950 Q" ^ {param.S}
            
            XYZ_123undefined 1 Reply Last reply Reply Quote 0
            • dc42undefined
              dc42 administrators @XYZ_123
              last edited by

              @dp_23 which firmware version are you using?

              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

              XYZ_123undefined 1 Reply Last reply Reply Quote 0
              • XYZ_123undefined
                XYZ_123 @OwenD
                last edited by

                @owend its not working ...still gives me same error

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

                  @dc42 firmware version : 3.3 beta 3

                  jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                  • jay_s_ukundefined
                    jay_s_uk @XYZ_123
                    last edited by

                    @dp_23 update your firmware to at least 3.3 stable

                    Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

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