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

    How to run a gcode loop X times

    Scheduled Pinned Locked Moved
    Gcode meta commands
    2
    3
    473
    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.
    • code7undefined
      code7
      last edited by

      Can someone give me a suggestion on a code statement that I can use to run a gcode loop X number of times?

      Delta Printer Using a Duet 2 Wifi v1.04c, FW3.4.0beta2, Duet WiFi sever 1.26, Duet Web Control 3.3.0

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

        @code7 where would you like to do the loop?
        in a print file or in a macro?

        EDIT:
        If it is in a macro then something like this:

        while iterations < X
            your gcode
        

        Mankati FSXT+, DeltaTowerV2, E3D MS/TC

        code7undefined 1 Reply Last reply Reply Quote 0
        • code7undefined
          code7 @cosmowave
          last edited by code7

          @cosmowave Thanks. Much simpler than I expected. This works in the print file.

          Delta Printer Using a Duet 2 Wifi v1.04c, FW3.4.0beta2, Duet WiFi sever 1.26, Duet Web Control 3.3.0

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