Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Testing M291 "result"

    General Discussion
    2
    3
    71
    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.
    • fcwilt
      fcwilt last edited by

      Hi,

      When using the form of M291 where it shows an OK and CANCEL button is there any way in the code that follows the M291 to determine which button was pressed?

      If the CANCEL button was pressed I would like to stop executing the macro.

      Thanks.

      Frederick

      Printers: A FT-5 with the 713 upgrade bits. A custom MarkForged style. A small Utilmaker style and a CoreXY from kits. Various hotends. Using Duets (2 and 3) running 3.4.1

      gloomyandy 1 Reply Last reply Reply Quote 0
      • gloomyandy
        gloomyandy @fcwilt last edited by gloomyandy

        @fcwilt Have you tried testing the "result" "named constant" that tends to return information on the previous gcode command: https://duet3d.dozuki.com/Wiki/GCode_Meta_Commands#Section_Named_constants

        Should say I've not tried it following the M291 command!

        fcwilt 1 Reply Last reply Reply Quote 0
        • fcwilt
          fcwilt @gloomyandy last edited by

          @gloomyandy said in Testing M291 "result":

          @fcwilt Have you tried testing the "result" "named constant" that tends to return information on the previous gcode command: https://duet3d.dozuki.com/Wiki/GCode_Meta_Commands#Section_Named_constants

          Should say I've not tried it following the M291 command!

          No I have not - I had not read about it - thanks for the suggestion.

          Frederick

          Printers: A FT-5 with the 713 upgrade bits. A custom MarkForged style. A small Utilmaker style and a CoreXY from kits. Various hotends. Using Duets (2 and 3) running 3.4.1

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