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

    Multiple motion system

    Scheduled Pinned Locked Moved Solved
    General Discussion
    8
    69
    2.6k
    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.
    • Alvaundefined
      Alva @dc42
      last edited by Alva

      @dc42 I have edited the code and logic a bit. Found different cases:

      ; File Name: 		/sys/daemon.g
      if(!exists(global.daemonStop))
      	global daemonStop = false	; Set to 1 to stop the daemon.g, it can be use to upload a new daemon.g file
      
      while( global.daemonStop == false )
          if(state.status== "processing")
              G91
              M596 P1
              G1 U5 F300      
              M596
          G4 P0
      M99; Exit
      

      test_2nd_MS.gcode
      7add628d-3f09-4e4c-ac6e-54d79d08056d-image.png .
      This happened when i activated the daemon before the move to X0 Y0. But if i activate the daemon after that then it works perfectly. Cannot relate whats going on.

      set global.daemonStop = true ; stopped the daemon
      M118 S{"starting to move"}
      G90
      G1 X0 Y0
      M400 S1
      G91
      set global.daemonStop = false ; activated the daemon which only use U axis
      G1 X100 Y100 F200
      M400 S1
      G90
      M118 S{"move done"}
      M99
      

      b5beb214-e0cc-46e3-961a-ecec72fff837-image.png

      Alvaundefined 1 Reply Last reply Reply Quote 0
      • Alvaundefined
        Alva @Alva
        last edited by

        @Alva 1e818874-3288-4cfe-a143-7fb4e5f103d7-image.png

        Alvaundefined 1 Reply Last reply Reply Quote 0
        • Alvaundefined
          Alva @Alva
          last edited by

          @Alva Looks like it is a timing problem or something.

          dc42undefined 1 Reply Last reply Reply Quote 0
          • dc42undefined
            dc42 administrators @Alva
            last edited by

            @Alva thanks, I will try to replicate it.

            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

            Alvaundefined 1 Reply Last reply Reply Quote 0
            • Alvaundefined
              Alva @dc42
              last edited by

              @dc42 Thank you 🙏

              dc42undefined 3 Replies Last reply Reply Quote 0
              • dc42undefined
                dc42 administrators @Alva
                last edited by

                @Alva I have reproduced this and I am looking into it.

                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

                1 Reply Last reply Reply Quote 0
                • dc42undefined
                  dc42 administrators @Alva
                  last edited by

                  @Alva I created https://github.com/Duet3D/RepRapFirmware/issues/1064 and I am testing a fix.

                  dc42 created this issue in Duet3D/RepRapFirmware

                  closed Use of multiple motion systems causes Code 3 halts in 3.6 beta1 and beta2 releases #1064

                  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

                  1 Reply Last reply Reply Quote 0
                  • dc42undefined
                    dc42 administrators @Alva
                    last edited by

                    @Alva please try the new Duet 3 Mini firmware binary at https://www.dropbox.com/scl/fo/pasag1g18orahwvn49qp2/ABWgw6D-TyKWxxurTmGwiUE?rlkey=r9h3rjyw1l4wh7xbr8yho37gw&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

                    Alvaundefined 1 Reply Last reply Reply Quote 0
                    • Alvaundefined
                      Alva @dc42
                      last edited by

                      @dc42 It seems to be working. I have tried all the above conditions and works as intended. Can i expect the same fix for Duet3 6HC board as well, as i observed the same behavior in it as well. Thank you 🙂

                      dc42undefined 1 Reply Last reply Reply Quote 0
                      • dc42undefined
                        dc42 administrators @Alva
                        last edited by

                        @Alva I have just put a 6HC build at the same location.

                        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

                        Alvaundefined 1 Reply Last reply Reply Quote 0
                        • Alvaundefined
                          Alva @dc42
                          last edited by

                          @dc42 Thank you , I will check it out

                          T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
                          • T3P3Tonyundefined
                            T3P3Tony administrators @Alva
                            last edited by

                            @Alva please can you confirm if you have tested this.

                            www.duet3d.com

                            Alvaundefined 1 Reply Last reply Reply Quote 0
                            • Alvaundefined
                              Alva @T3P3Tony
                              last edited by

                              @T3P3Tony Hello sorry, i haven't checked it out. The 6HC board i have is bit different from the original version. So i need to build it differently. I am actually waiting for the beta 3 version of the firmware now.

                              dc42undefined 1 Reply Last reply Reply Quote 0
                              • dc42undefined
                                dc42 administrators @Alva
                                last edited by dc42

                                @Alva you could try 3.6.0-beta.2+5 at https://www.dropbox.com/scl/fo/1l1t3h52jkapaszdpcruz/AOWakD9qTwZ2HRnV7N3vVvQ?rlkey=42ehcpbas7rwgz6z1318mbceh&dl=0 if you like. Use it with care because the changes in it are quite substantial. You may wish to reduce motors currents until you are happy that it behaves correctly. See https://github.com/Duet3D/RepRapFirmware/wiki/Changelog-RRF-3.x-Beta#reprapfirmware-360-beta3-in-preparation for important changes.

                                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

                                Alvaundefined 2 Replies Last reply Reply Quote 0
                                • Alvaundefined
                                  Alva @dc42
                                  last edited by

                                  @dc42 Thank you. I will try it out and let you know the status.

                                  1 Reply Last reply Reply Quote 0
                                  • Alvaundefined
                                    Alva @dc42
                                    last edited by

                                    @dc42 g binary "0:/firmware/Duet3_SDiap32_MB6HC.bin" not found , in the drop box this file is not available

                                    droftartsundefined 1 Reply Last reply Reply Quote 0
                                    • droftartsundefined
                                      droftarts administrators @Alva
                                      last edited by

                                      @Alva Get the "Duet3_SDiap32_MB6HC.bin" file individually from here: https://github.com/Duet3D/RepRapFirmware/releases/tag/3.5.1
                                      Otherwise it's in the zip file download in most releases, eg in "Duet2and3Firmware-3.5.4.zip" here https://github.com/Duet3D/RepRapFirmware/releases/tag/3.5.4

                                      Ian

                                      Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                                      Alvaundefined 1 Reply Last reply Reply Quote 0
                                      • Alvaundefined
                                        Alva @droftarts
                                        last edited by

                                        @droftarts thank you. got it.

                                        Alvaundefined 1 Reply Last reply Reply Quote 0
                                        • Alvaundefined
                                          Alva @Alva
                                          last edited by

                                          @Alva Tested the second motion system with the new version 3.6.0.beta2 + 5, but i am getting the error shows in the picture below:
                                          11546a9b-8d8b-4f0e-bfff-1722a3a4109c-image.png

                                          tried gcode :

                                          set global.daemonStop = true ; stopped the daemon
                                          M118 S{"starting to move"}
                                          G90
                                          set global.daemonStop = false ; activated the daemon which only use U axis
                                          G1 X0 Y0
                                          M400 S1
                                          G91
                                          G1 X100 Y100 F200
                                          M400 S1
                                          G90
                                          M118 S{"move done"}
                                          M99
                                          

                                          daemon.g :

                                          ; File Name: 		/sys/daemon.g
                                          if(!exists(global.daemonStop))
                                          	global daemonStop = false	; Set to 1 to stop the daemon.g, it can be use to upload a new daemon.g file
                                          
                                          while( global.daemonStop == false )
                                              if(state.status== "processing")
                                                  G91
                                                  M596 P1
                                                  G1 U5 F300      
                                                  M596
                                              G4 P0
                                          M99; Exit; File Name: 		/sys/daemon.g
                                          
                                          Alvaundefined 1 Reply Last reply Reply Quote 0
                                          • Alvaundefined
                                            Alva @Alva
                                            last edited by

                                            @Alva U axis was trying to use only in the second motion system. so motion system 0 and motion system 1 are not able to execute simultaneously.

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