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

    repeat a part of a macro

    Scheduled Pinned Locked Moved
    Using Duet Controllers
    2
    4
    250
    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.
    • cosmowaveundefined
      cosmowave
      last edited by

      Is it possible to repeat a part of a macro after m291?
      If the macro look like this scheme, i'd like to repeat the "Do something code" after pressing ok on the panel.

      some code of macro
      
      ;point for repeat
      Do something
      M291 P"once again or cancel?" S3
      

      I hope, this is understandable...😲

      Mankati FSXT+, DeltaTowerV2, E3D MS/TC

      whosrdaddyundefined 1 Reply Last reply Reply Quote 0
      • whosrdaddyundefined
        whosrdaddy @cosmowave
        last edited by

        @cosmowave
        something like this?

        cosmowaveundefined 1 Reply Last reply Reply Quote 0
        • cosmowaveundefined
          cosmowave @whosrdaddy
          last edited by

          @whosrdaddy Yes. But how can i make it dependent of the answer of the M291?

          Mankati FSXT+, DeltaTowerV2, E3D MS/TC

          whosrdaddyundefined 1 Reply Last reply Reply Quote 0
          • whosrdaddyundefined
            whosrdaddy @cosmowave
            last edited by whosrdaddy

            @cosmowave As I understand it, is that if the user presses cancel the macro is aborted, so just make an infinite loop and put M291 in it.

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