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

    What's wrong with this macro

    Scheduled Pinned Locked Moved
    General Discussion
    4
    6
    214
    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.
    • zaptaundefined
      zapta
      last edited by

      I have this macro whose goal is to move 1mm in the x direction very very low, over 1 minute. It does go to 100, 100 and then to 101, 100 but the second movement is immediate, not over 1 minute.

      What am I missing?

      G90   ; absolute positioning
      G1 X100, Y100 ; starting point
      G1 X101 F1  ; move 1mm over 1 minute.
      
      Phaedruxundefined 1 Reply Last reply Reply Quote 0
      • jens55undefined
        jens55
        last edited by jens55

        set speed for line 2 as you do not necessarily know what the current speed setting is ... and if I misunderstand the issue, drop the speed parameter on line 2 so it goes at the same speed as line 2 .....
        Hope that helps
        Edit: .... I now believe I don't properly understand your problem based on your explanation .... shouldn't have replied.

        zaptaundefined 1 Reply Last reply Reply Quote 0
        • zaptaundefined
          zapta @jens55
          last edited by zapta

          Thanks @jens55. I want line 2 to move in normal speed (it does) and line 3 to go very slow, moving 1mm over 1 minute (it doesn't it moves fast). In other words, I expect the macro to run for about 1 minute instead of of only a second or two.

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

            @zapta

            Remove the F1 from line 3

            Between line 2 and line 3 insert G0 F1.

            See if that makes a difference.

            Frederick

            Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

            1 Reply Last reply Reply Quote 0
            • Phaedruxundefined
              Phaedrux Moderator @zapta
              last edited by Phaedrux

              @zapta said in What's wrong with this macro:

              G1 X100, Y100

              Is that comma actually in there?

              I wonder if this is applying to you here:

              For CNC users especially: RRF has a default minimum movement speed of 0.5mm/sec. In firmware 2.03 and later this can be changed using the I ('i') parameter of the M203 command.

              https://docs.duet3d.com/en/User_manual/Reference/Gcodes#feedrate

              Z-Bot CoreXY Build | Thingiverse Profile

              zaptaundefined 1 Reply Last reply Reply Quote 0
              • zaptaundefined
                zapta @Phaedrux
                last edited by

                Thanks @phaedrux and @fcwilt, the issue was the M203 I that @Phaedrux mentioned. Removing the comma and adding a G0 F1 didn't make a change. This is the working version:

                G1 X100 Y100 ; starting point
                M203 I1      ; allow slow movements
                G1 X103 F1   ; move slowly
                

                BTW, @Phaedrux, the title of M203 mentions just maximum, no minimum. May worth updating.

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