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

M291 Does not block in macro when a job is running

Scheduled Pinned Locked Moved Unsolved
Gcode meta commands
6
12
450
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.
  • undefined
    NineMile @TeamCoco
    last edited by NineMile 28 Mar 2024, 19:30

    @TeamCoco wondering if this is another symptom of an issue I've seen recently with G4 not pausing in a custom Gcode when called using the code (e.g. M6) vs working correctly when called using M98 (e.g. M98 P"M6.g").

    I'd be interested to hear if calling your existing macro using M98 in the SD card file fixes the issue?

    Details here: https://forum.duet3d.com/topic/35300/odd-g4-behaviour-from-macro-called-from-sd-file?_=1711622479937

    undefined 1 Reply Last reply 28 Mar 2024, 21:00 Reply Quote 0
    • undefined
      Phaedrux Moderator @TeamCoco
      last edited by 28 Mar 2024, 20:50

      @TeamCoco said in M291 Does not block in macro when a job is running:

      3.5beta3

      beta 3 or RC 3?

      Z-Bot CoreXY Build | Thingiverse Profile

      undefined 1 Reply Last reply 29 Mar 2024, 13:38 Reply Quote 0
      • undefined
        dc42 administrators @NineMile
        last edited by 28 Mar 2024, 21:00

        @NineMile please try the latest 3.5 build at https://www.dropbox.com/scl/fo/wrp6hvr39vjxjlep89p5x/h?rlkey=hzka49sxnsqjpwsvy46m26ms0&dl=0.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        undefined 1 Reply Last reply 30 Mar 2024, 11:43 Reply Quote 0
        • undefined
          TeamCoco @Phaedrux
          last edited by TeamCoco 29 Mar 2024, 13:38

          *RC3 build. I'll give the latest 3.5 build & the M98 a try next week.

          1 Reply Last reply Reply Quote 0
          • undefined
            NineMile @dc42
            last edited by 30 Mar 2024, 11:43

            @dc42 I'm unable to do this as there's no stm32 builds there, but I think Andy has already tested this on his latest build with the same outcome as my initial testing (in the other thread).

            undefined 1 Reply Last reply 30 Mar 2024, 12:30 Reply Quote 0
            • undefined
              jay_s_uk @NineMile
              last edited by 30 Mar 2024, 12:30

              @NineMile @gloomyandy

              Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

              1 Reply Last reply Reply Quote 0
              • undefined
                NineMile
                last edited by 23 Apr 2024, 15:59

                Bump, still getting this on 3.5.0-rc4 which I believe is after the 'latest build'. I'm still seeing delays behave differently when calling M3.9 directly from a file vs calling M98 P"M3.9.g" instead.

                undefined 1 Reply Last reply 23 Apr 2024, 16:00 Reply Quote 0
                • undefined
                  jay_s_uk @NineMile
                  last edited by 23 Apr 2024, 16:00

                  @NineMile can you upgrade to 3.5.1 and verify again please?

                  Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                  undefined 1 Reply Last reply 23 Apr 2024, 16:30 Reply Quote 0
                  • undefined
                    NineMile @jay_s_uk
                    last edited by 23 Apr 2024, 16:30

                    @jay_s_uk said in M291 Does not block in macro when a job is running:

                    @NineMile can you upgrade to 3.5.1 and verify again please?

                    Yes, this still happens on 3.5.1.

                    As an example, I have a park macro, G27 which is called at the end of a job file:

                    ; Use absolute positions in mm
                    G90
                    G21
                    G94
                    
                    ; Move spindle to top of Z travel
                    G53 G0 Z{move.axes[2].max}
                    
                    ; Stop spindle and wait
                    M5.9
                    
                    ; Present workpiece
                    G53 G0 X{(move.axes[0].max - move.axes[0].min)/2} Y{move.axes[1].max}
                    

                    When this macro is triggered, the spindle moves back to Z=0 at the end of the job, then it instantly moves to the X and Y location - only then is the spindle stopped and a wait occurs, which is the wrong way round - it's like the M5.9 call is being deferred.

                    If I replace the M5.9 line with M98 P"M5.9.g" then this behaves as I would expect - the spindle moves to Z=0, it then stops and moves the workpiece to the front of the machine.

                    M5.9 just checks if any spindles are running, executes M5 and then a G4 S... if any spindles were running.

                    undefined 1 Reply Last reply 24 Apr 2024, 12:33 Reply Quote 1
                    • undefined
                      oliof @NineMile
                      last edited by 24 Apr 2024, 12:33

                      @NineMile what happens if.you add a G4 S1 before and after M5.9?

                      <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

                      undefined 1 Reply Last reply 26 Apr 2024, 08:02 Reply Quote 0
                      • undefined
                        NineMile @oliof
                        last edited by 26 Apr 2024, 08:02

                        @oliof - in this case are you looking to confirm if the G4s inlined with the macro call work, but the ones called from inside the macro don't? I'll try and check this morning.

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