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

    Y axis moving when trying to move Z axis with multiple Z motors

    Scheduled Pinned Locked Moved Solved
    Beta Firmware
    6
    26
    1.5k
    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.
    • HWWundefined
      HWW @deckingman
      last edited by

      @deckingman Gave all your suggestions a shot and nothing changed in the way it operated.

      Tried out a couple of different configurations as well just to see what kind of other behaviors would come out of it.

      Same setup as in my images above but with a different drive mapping. I defined all of what should be the Z motors as the Y axis and the Y motors on the Z axis.

      M584 X1.0 Y0.2:0.3:0.4:0.5 Z0.0:0.1 E1.1:1.2
      

      With this mapping the four vertical motors spun as expected when given Y movement commands, when a Z movement was given only two motors would run but it was two of the vertical motors (the two that would run were the motors matching the 0.2 and 0.3 in the Y section of the mapping)

      Trying a different test using the same mapping as in my original config but changing the order of the motors in the Z section of the drive map by reversing like so

      M584 X1.0 Y0.0:0.1 Z0.5:0.4:0.3:0.2 E1.1:1.2
      

      Behaves exactly how I suspected it might and results in the motors with the blue tape turning instead of the ones with the green tape, along with of course the two motors on their sides.

      I suspect that it really is something going on with the firmware but I do not know how to confirm or fix it.

      deckingmanundefined 2 Replies Last reply Reply Quote 0
      • deckingmanundefined
        deckingman @HWW
        last edited by

        @HWW said in Y axis moving when trying to move Z axis with multiple Z motors:

        I suspect that it really is something going on with the firmware but I do not know how to confirm or fix it.

        I'm leaning towards the opinion that you may be right and that it might be a firmware issue, but I'm just an end user like you. I am using 13 stepper drivers spread across the main board and 3 expansion boards but only a single Z motor, so I'm unable to replicate your set up. Hopefully David, @DC42 will step in soon with some suggestions or comments.

        Ian
        https://somei3deas.wordpress.com/
        https://www.youtube.com/@deckingman

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

          What firmware is installed on the expansion board? Send M115 B1

          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

          HWWundefined 1 Reply Last reply Reply Quote 0
          • deckingmanundefined
            deckingman @HWW
            last edited by

            @HWW Just another suggestion but does it make any difference if you omit the H2 parameter? You'll need to use M564 H0 to allow moves prior to homing.

            Ian
            https://somei3deas.wordpress.com/
            https://www.youtube.com/@deckingman

            1 Reply Last reply Reply Quote 0
            • HWWundefined
              HWW @droftarts
              last edited by HWW

              @droftarts Both the main board with M115 and the expansion with M115 B1 report back with Firmware 3.0RC1

              @deckingman Using M564 H0 and omiting the H2 parameter from the G1 commands results in the same movements, so no difference there.

              1 Reply Last reply Reply Quote 0
              • HWWundefined
                HWW
                last edited by HWW

                Dont know why I didnt think of this before using the M584 command on its own spits out the drive mapping in the console. I never got around to actually testing the extruders but looks like those are mapped wrong as well. You can see in this photo I tried entering the M584 with the mapping command as well and the report after is also screwed up.

                2019-12-21 14.18.50Sml.jpg

                The first info from the M584 shows 0.0 and 0.1 mapped into the first two spots on the z axis followed by 0.5 and 0.4 this is using the last config line I was using which was "M584 X1.0 Y0.0:0.1 Z0.5:0.4:0.3:0.2 E1.1:1.2"

                Then in the console I tried entering my original config of "M584 X1.0 Y0.0:0.1 Z0.2:0.3:0.4:0.5 E1.1:1.2" and it again results in 0.0 and 0.1 in the first two spots with 0.2 and 0.3 filling the last two.

                And in both cases the extruders are mapped to 0.0 and 0.1 which I never noticed before as well

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

                  Try defining those connected to main board without 0. on front.

                  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

                  HWWundefined 1 Reply Last reply Reply Quote 0
                  • HWWundefined
                    HWW @droftarts
                    last edited by HWW

                    @droftarts No change in the result from removing the explicit board number, I also went ahead and threw in my other test of assigning all the Z motors to the Y axis to confirm that entering the mapping into the console was changing things and you can see the strange result from that as well. The Y axis is mapped correctly but both Z and E are incorrect.

                    2019-12-21 14.31.52sml.jpg

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

                      Can you try mapping all drives individually in order, eg
                      M584 X0.0 Y0.1 Z0.2 U0.3 V0.4 W0.5 A1.0 B1.1 C1.2 P9
                      And see what it reports?

                      The only other thing I notice is that in the RRF 3 overview notes, a comma is used to delimit the second board. Might be a typo, though? https://duet3d.dozuki.com/Wiki/RepRapFirmware_3_overview#Section_M584

                      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

                      HWWundefined 1 Reply Last reply Reply Quote 0
                      • HWWundefined
                        HWW @droftarts
                        last edited by HWW

                        @droftarts Assigning them all individually like that they mapped correctly, the drive map report matched the mapping command.

                        I played around with it a bit more and I think whats happening has something to do with having multiple motors on two axis

                        I tried M584 X0.0 Y0.1:0.2 Z0.3 U0.4 V0.5 W1.0 A1.1 B1.2 P8 and that mapped correctly

                        However when I tried M584 X0.0 Y0.1:0.2 Z0.3:0.4 U0.5 V1.0 W1.1 A1.2 P7

                        the resulting map was X0.0 Y0.1:0.2 Z0.1:0.2 U0.5 V1.0 W1.1 A1.2

                        Also in all cases the extruders were mapped to 0:0 and 0:1 which I think is a default value since no E parameter was in the mapping

                        2019-12-21 17.52.40sml.jpg

                        1 Reply Last reply Reply Quote 0
                        • HWWundefined
                          HWW
                          last edited by

                          Yeah look at this one
                          2019-12-21 17.59.07sml.jpg

                          M584 X0.0:0.1 Y0.2:0.3 Z0.4:0.5 E1.0:1.1
                          

                          results in a reported drive map of
                          X0.0:0.1 Y0.0:0.1 Z0.0:0.1 E0.0:0.1

                          1 Reply Last reply Reply Quote 0
                          • Danalundefined
                            Danal
                            last edited by Danal

                            Yep. I just tried two axis with two motors each. Reproduced the issue.

                            12/21/2019, 7:02:51 PM	M584 X0.0 Y0.1:0.3 Z0.4:0.5 U0.2 E0.3:0.4
                            12/21/2019, 7:02:58 PM	M584
                            Driver assignments: X0.0 Y0.1:0.3 Z0.1:0.3 U0.2 E0.1:0.3, 4 axes visible
                            

                            Z should be 4 5, instead it is repeat of Y's 1 3. E is wrong as well, again, a repeat of 1 3

                            Interestingly enough, it is OK to have multiple motors on Z and E. This is my day-to-day configuration on a tool changer:

                            12/21/2019, 7:06:11 PM	M584
                            Driver assignments: X0.0 Y0.1 Z0.3:0.4:0.5 U0.2 E1.0:1.1, 4 axes visible
                            

                            Delta / Kossel printer fanatic

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

                              So, bug? One for @dc42? Thanks for getting to the bottom of it!

                              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

                              1 Reply Last reply Reply Quote 0
                              • Danalundefined
                                Danal
                                last edited by Danal

                                Certainly looks like a bug.

                                And I'm running what I believe to be the very latest:

                                Board: Duet 3 MB6HC (MB6HC)
                                DSF Version: 1.1.0.5
                                Firmware: RepRapFirmware for Duet 3 MB6HC v0.6 or 1.0 3.0beta12+1 (2019-12-02b2)
                                

                                Delta / Kossel printer fanatic

                                1 Reply Last reply Reply Quote 0
                                • Danalundefined
                                  Danal
                                  last edited by

                                  Same thing happens if X has more than one motor, it "overlays" all later multimotor axis mappings.

                                  12/21/2019, 7:12:02 PM	M584 X0.0:0.3 Y0.1 Z0.4:0.5 U0.2 E1.0:1.1
                                  12/21/2019, 7:12:08 PM	M584
                                  Driver assignments: X0.0:0.3 Y0.1 Z0.0:0.3 U0.2 E0.0:0.3, 4 axes visible
                                  

                                  TRIPLE motor Z seems to work fine:

                                  12/21/2019, 7:13:29 PM	M584 X0.0 Y0.1 Z0.3:0.4:0.5 U0.2 E1.0:1.1
                                  12/21/2019, 7:13:42 PM	M584
                                  Driver assignments: X0.0 Y0.1 Z0.3:0.4:0.5 U0.2 E0.3:0.4, 4 axes visible
                                  

                                  However, DUAL motor Z overlays E:

                                  12/21/2019, 7:14:39 PM	M584 X0.0 Y0.1 Z0.4:0.5 U0.2 E1.0:1.1
                                  12/21/2019, 7:14:45 PM	M584
                                  Driver assignments: X0.0 Y0.1 Z0.4:0.5 U0.2 E0.4:0.5, 4 axes visible
                                  

                                  Delta / Kossel printer fanatic

                                  HWWundefined 1 Reply Last reply Reply Quote 0
                                  • HWWundefined
                                    HWW @Danal
                                    last edited by HWW

                                    @Danal Triple motor Z also overwrote the E mapping

                                    My best guess is that whatever values are getting used for multi motor mapping are not reset or filled or something between cycles of the code loop running

                                    Danalundefined 1 Reply Last reply Reply Quote 0
                                    • Danalundefined
                                      Danal
                                      last edited by Danal

                                      Yep, and it looks like it is the "single line parser" loop. Specifying each axis on a separate line yields proper results. For example, with this sequence, E never gets overlaid:

                                      12/21/2019, 7:17:40 PM	M584
                                      Driver assignments: X0.0 Y0.1 Z0.3:0.4:0.5 U0.2 E1.0:1.1, 4 axes visible
                                      12/21/2019, 7:17:45 PM	M584 X0.0
                                      12/21/2019, 7:17:58 PM	M584 Y0.1:0.3
                                      12/21/2019, 7:18:16 PM	M584
                                      Driver assignments: X0.0 Y0.1:0.3 Z0.3:0.4:0.5 U0.2 E1.0:1.1, 4 axes visible
                                      12/21/2019, 7:18:34 PM	M584 Z0.4:0.5
                                      12/21/2019, 7:18:41 PM	M584
                                      Driver assignments: X0.0 Y0.1:0.3 Z0.4:0.5 U0.2 E1.0:1.1, 4 axes visible
                                      12/21/2019, 7:18:54 PM	M584 E1.0:1.1
                                      12/21/2019, 7:18:59 PM	M584
                                      Driver assignments: X0.0 Y0.1:0.3 Z0.4:0.5 U0.2 E1.0:1.1, 4 axes visible
                                      

                                      This also provides a bypass until this is fixed.

                                      Delta / Kossel printer fanatic

                                      HWWundefined 1 Reply Last reply Reply Quote 0
                                      • HWWundefined
                                        HWW @Danal
                                        last edited by

                                        @Danal A workaround solution until things get a proper fix!! Fantastic. I was just about to ask what your day to day config looks like since in the example from before it E got overwritten but you had a working readout from your day to day.

                                        1 Reply Last reply Reply Quote 0
                                        • Danalundefined
                                          Danal @HWW
                                          last edited by

                                          @HWW said in Y axis moving when trying to move Z axis with multiple Z motors:

                                          @Danal Triple motor Z also overwrote the E mapping

                                          You are correct!!!

                                          And I just looked in my actual config.g, and I'd separated the extruders because this is a toolchanger and I'm adding tools one at a time:

                                          ; Axis to driver mapping
                                          M584 X0 Y1 U2 Z3:4:5        ; X and Y for CoreXY.  U for toolchanger lock. Z has three drivers for kinematic bed suspension. 
                                          M584 E1.0:1.1               ; Extruders for four tools. 
                                          

                                          Man, a bullet dodged a few weeks back. That would have been VERY frustrating when I was trying to figure out a bunch of other stuff as well...!

                                          Delta / Kossel printer fanatic

                                          1 Reply Last reply Reply Quote 0
                                          • HWWundefined
                                            HWW
                                            last edited by

                                            I have added this as an issue to the github tracker
                                            https://github.com/dc42/RepRapFirmware/issues/345

                                            HWW-GS created this issue in dc42/RepRapFirmware

                                            closed M584 Multi Axis/Motor Mapping Error #345

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