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

    tools[N].fans[M] Object Model Property and M409 Mismatch

    Scheduled Pinned Locked Moved
    Gcode meta commands
    4
    7
    193
    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.
    • ronundefined
      ron
      last edited by

      I'm attempting to use the {tools[N].fans[M]} object model property selector to retrieve a fan number, but it appears to always evaluate to -1.

      4/22/2022, 2:27:45 PM: echo {tools[3].fans[0]}: -1
      4/22/2022, 2:27:50 PM: echo {tools[15].fans[0]}: -1
      

      Strangely, I do see the expected fan numbers when running M409 k"tools[N].fans[M]" and when viewing the entry in the Object Model plugin.

      4/22/2022, 2:28:00 PM: M409 k"tools[3].fans[0]": {"key":"tools[3].fans[0]","flags":"","result":0}
      4/22/2022, 2:28:05 PM: M409 k"tools[15].fans[0]": {"key":"tools[15].fans[0]","flags":"","result":2}
      

      tools[3].fans[0].png
      tools[15].fans[0].png

      This is on a Duet 3 MB6HC with three EXP3HC boards, all running RRF 3.4.0.

      Attempting to replicate the issue with RRF 3.3 also results in the -1 values with the object model property selector and the correct values when viewing the entry in the object model plugin, but when I try M409 I hit the firmware resetting bug that was fixed for RRF 3.4.0.

      Has anyone else run into this?

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

        Seems it might be an SBC and/or toolboard specific problem.
        Everything evaluates correctly on Duet 2 stand-alone

        Screenshot 2022-04-23 at 07-10-39 3Dprinter.png

        Screenshot 2022-04-23 at 07-07-53 3Dprinter.png

        ronundefined 1 Reply Last reply Reply Quote 0
        • ronundefined
          ron @OwenD
          last edited by

          @owend
          Thanks for the reply! I forgot to mention that this is a standalone setup. In my case, fan 2 is connected to the mainboard while fan 0 is connected to one of the expansion boards.

          oliofundefined dc42undefined 2 Replies Last reply Reply Quote 0
          • oliofundefined
            oliof @ron
            last edited by

            @ron I think it's the curly braces. Either put the echo inside or drop them.

            <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

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

              @ron I think you have found a bug, because I am getting similar results:

              24/04/2022, 11:43:30 	echo tools[1].fans[0]
              -1
              24/04/2022, 11:43:14 	m409 k"tools[1].fans[0]"
              {
                  "key": "tools[1].fans[0]",
                  "flags": "",
                  "result": 0
              }
              

              I will investigate this.

              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

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

                I have fixed this bug in the source code. The fix will be in release 3.5.0beta1 and also in 3.4.1 if we do one.

                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

                ronundefined 1 Reply Last reply Reply Quote 1
                • ronundefined
                  ron @dc42
                  last edited by

                  @dc42 Thank you! Glad to know it wasn't just a mistake on my end.

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