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

    RRF3.5 Beta 1 : M291 new options

    Scheduled Pinned Locked Moved
    Beta Firmware
    4
    4
    295
    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.
    • Philippe71undefined
      Philippe71
      last edited by

      With RRF3.5 beta, it is possible to request values or choices from the user in a macro. This is great, but how do you get the value that the user has entered to use in the following lines of the macro. Is this possible?

      For example : I ask the user to enter the temperature needed and I would like to setup the new temp by a M104 S

      M291 P"Enter the temperature of the head" S5 L150 H480 F300
      
      T3P3Tonyundefined 1 Reply Last reply Reply Quote 1
      • T3P3Tonyundefined
        T3P3Tony administrators @Philippe71
        last edited by

        @Philippe71 The documentation here explains how it works:
        https://docs.duet3d.com/en/User_manual/Reference/Gcodes#m291-display-message-and-optionally-wait-for-response

        I updated it to point to the input constant:

        https://docs.duet3d.com/en/User_manual/Reference/Gcode_meta_commands#named-constants

        Which you can then use, for example in the line after the M291. I would add some logic to check that "result" was "0" and I think the following should work
        M104 S{input}

        Although you should be using M568 rather them M104 now:
        https://docs.duet3d.com/en/User_manual/Reference/Gcodes#m568-set-tool-settings

        www.duet3d.com

        OwenDundefined 1 Reply Last reply Reply Quote 1
        • OwenDundefined
          OwenD @T3P3Tony
          last edited by

          @T3P3Tony
          Will the list of choices be displayed as buttons, or radio buttons / check boxes?
          If buttons, is there still an OK/Cancel button?
          If not buttons, can you set a default choice or does it return null if no selection of cancelled?
          I know I should wait for the release 😉
          But some of this may need to be documented

          1 Reply Last reply Reply Quote 0
          • Diamondbackundefined
            Diamondback
            last edited by

            Ha, I was about to ask the same, thanks for updating the documentation! 👍

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