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

    Hypercube Fusion movement help

    Scheduled Pinned Locked Moved Solved
    General Discussion
    7
    101
    4.7k
    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.
    • RAMundefined
      RAM @Phaedrux
      last edited by RAM

      @Phaedrux
      Left motor is plugged into the X axis
      Right motor is plugged into the Y axis

      My motors are at the front of my machine

      G1 S2 X10 moves to the rear right corner
      G1 S2 Y10 moves to the front right corner (diagonally towards the front where the Y axis motor is)

      X -10 moves right
      X +10 moves left

      Y -10 moves to the rear
      Y +10 moves to the front
      If I now try and home X & Y indiviually they move away from the endstops.
      (If looking at the machine from the front the Y enstop is at the rear left and the X is on the left)

      Also changed the home files as instructed to.

      Homeall.g

      ; homeall.g
      ; called to home all axes
      ;
      ; generated by RepRapFirmware Configuration Tool v2.1.8 on Sun Jan 26 2020 18:02:23 GMT+0000 (Greenwich Mean Time)
      G91                     ; relative positioning
      G1 H2 Z5 F6000          ; lift Z relative to current position
      G1 H1 X-315 F1800   	; move quickly to X or Y endstop and stop there (first pass)
      G1 X5 F6000          	; go back a few mm
      G1 H1 X-315 F360        ; move slowly to X axis endstop once more (second pass)
      G1 H1 Y325 F1800            	; home Y axis
      G1 Y-15 F6000          	; go back a few mm
      G1 H1 Y315 F360        	; move slowly to X axis endstop once more (second pass)
      G90                     ; absolute positioning
      G1 X150 
      G1 X150 Y130 F6000      ; go to first bed probe point and home Z
      G30                     ; home Z by probing the bed
      ;G1 X0 Y0 Z5 		; return to a parked position
      
      Homez.g
      
      

      ; homez.g
      ; called to home the Z axis
      ;
      ; generated by RepRapFirmware Configuration Tool v2.1.8 on Sun Jan 26 2020 18:02:23 GMT+0000 (Greenwich Mean Time)
      G91 ; relative positioning
      G1 H2 Z5 F6000 ; lift Z relative to current position
      G90 ; absolute positioning
      G1 X150 Y130 F6000 ; go to first probe point
      G30 ; home Z by probing the bed

      ; Uncomment the following lines to lift Z after probing
      ;G91 ; relative positioning
      ;G1 Z5 F100 ; lift Z relative to current position
      ;G90 ; absolute positioning

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

        is that with the change to the drive direction?

        ; Drives
        M569 P0 S0
        M569 P1 S0

        Z-Bot CoreXY Build | Thingiverse Profile

        RAMundefined 1 Reply Last reply Reply Quote 0
        • RAMundefined
          RAM @Phaedrux
          last edited by

          @Phaedrux yes I changed the config.g to
          ; Drives
          M569 P0 S0
          M569 P1 S0

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

            I'm at a bit of a loss currently.

            With the config as it is, I can't explain why the Y axis is still flipped from what it should be, yet the individual motor tests produce the correct motion.

            I'll need to sleep on it.

            Z-Bot CoreXY Build | Thingiverse Profile

            RAMundefined 1 Reply Last reply Reply Quote 0
            • RAMundefined
              RAM @Phaedrux
              last edited by

              @Phaedrux no problem, would it help to know what motors I am using ?

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

                Maybe. It may help to know how the phases are wired at the plug.

                Z-Bot CoreXY Build | Thingiverse Profile

                RAMundefined 1 Reply Last reply Reply Quote 0
                • RAMundefined
                  RAM @Phaedrux
                  last edited by RAM

                  @Phaedrux here you go hopefully this will help. 17HS15-1504S-X1.pdf
                  I never even gave this a thought when I was plugging in the motor connectors I think they could be wrong from looking at the pdf and the duet 2 wifi wiring diagram.
                  In true bonehead fashion I was looking where the black wire was to which way it needed to go on the duet and didn't give the others a thought. I really need to stop building things at 2am.

                  Looking at the pdf and the duet wiring diagram and my thinking is this. (Hope this makes sense)
                  2B 2A 1A 1B
                  Red Blue Green Black this is how it is on the Duet

                  My motors come wired up as

                  A A\ B B
                  Black Green Red Blue

                  Now I can only assume that e.g A would be 1A & A\ would be 2A. If I am thinking on the right path then do I need to move the pins around on the duet connection end of the motor leads so that they are in this order.

                  DUET BOARD
                  2B 2A 1A 1B
                  Red Blue Green Black

                  MOTOR PLUG

                  B\ A\ A B
                  Blue Green Black Red

                  If I am wrong then I have no clue which is probably more than likely.

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

                    I think the way you have them wired is alright, just that the pairs are swapped such that the rotation direction is reversed from how it's expected. Which is fine because it can be altered in software anyway with the drive direction command.

                    If you had the motor pairs wired in an unmatched fashion it wouldn't spin and you'd get some warnings in the console. It can also potentially cause damage.

                    The whole 1A 1B 2A 2B A A/ B B/ thing is pretty confusing, I agree.

                    In your case though by the look of the motor spec PDF the colors of the wires look like they actually match the colors of the plugs on the duet wiring diagram, which isn't always the case.

                    So on the motor the pair is denoted by the letters (A's together and B's together). And on the duet the pairs are denoted by the numbers (1's together, and 2's together).

                    So in the PDF it says that black (A) and green (A/) are a coil pair, and red (B) and blue (B/) are a coil pair.

                    And on the duet black (1B) and green (1A) are a pair, and red (2B) and blue (2A) are a pair.

                    So
                    black (A) to black (1B),
                    green (A/) to green (1A),
                    red (B) to red (2B),
                    blue (B/) to blue (2A).

                    I hope that makes sense.

                    If you decide to swap them around to match the colors I think that would verify that the rotation direction changes.

                    Z-Bot CoreXY Build | Thingiverse Profile

                    RAMundefined 1 Reply Last reply Reply Quote 0
                    • RAMundefined
                      RAM @Phaedrux
                      last edited by

                      @Phaedrux ok im confused sorry.
                      Do I wire them in the order of

                      black (A) to black (1B),
                      green (A/) to green (1A),
                      red (B) to red (2B),
                      blue (B/) to blue (2A).

                      Which I don't understand as the order of the pair looking at the wiring diagram on the duet 2 it shows that it is.

                      black (A) to black (1B),
                      green (A/) to green (1A),
                      blue (B/) to blue (2A).
                      red (B) to red (2B),

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

                        I'll have to double check when I get back home butt I though I had it right...

                        Z-Bot CoreXY Build | Thingiverse Profile

                        RAMundefined 1 Reply Last reply Reply Quote 0
                        • RAMundefined
                          RAM @Phaedrux
                          last edited by

                          @Phaedrux I have just changed it so that it is
                          black (A) to black (1B),
                          green (A/) to green (1A),
                          blue (B/) to blue (2A).
                          red (B) to red (2B)

                          I will run simple move tests and let you know what it is doing.

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

                            @RAM said in Hypercube Fusion movement help:

                            G1 S2 X10 moves to the rear right corner
                            G1 S2 Y10 moves to the front right corner

                            Did you remember to send G91 before sending those commands?

                            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

                            RAMundefined 1 Reply Last reply Reply Quote 0
                            • RAMundefined
                              RAM @dc42
                              last edited by

                              @dc42 I sent these commands after manually moving the print head to the middle of the bed.

                              G92 X150 Y150 Z5
                              

                              then followed by these

                              G1 S2 X10
                              
                              G1 S2 Y10
                              

                              I have changed the motor wires around so that they are:
                              black (A) to black (1B),
                              green (A/) to green (1A),
                              blue (B/) to blue (2A).
                              red (B) to red (2B)

                              then I run the tests sending the above commands and also using the DWC to do the +/- Y & X axis moves.

                              I get the following
                              -x moves left
                              +x moves right
                              -y moves to the front of the printer
                              +y moves to the rear of the printer

                              duet moves.jpg

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

                                You must send G91 before testing the motors with those G1 S2 commands. Try it and I think you will see the motors move in different directions, which will end @Phaedrux's confusion.

                                The responses to jogging in the + and - X and Y directions look correct now.

                                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

                                RAMundefined Phaedruxundefined 2 Replies Last reply Reply Quote 1
                                • RAMundefined
                                  RAM @dc42
                                  last edited by

                                  @dc42 you will have to forgive me I am useless with gcode.

                                  so do I send

                                  G91 then G1 S2 Y10 ? or all together as 1 string ?

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

                                    @RAM said in Hypercube Fusion movement help:

                                    @dc42 you will have to forgive me I am useless with gcode.

                                    so do I send

                                    G91 then G1 S2 Y10 ? or all together as 1 string ?

                                    Either will work.

                                    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

                                    RAMundefined 1 Reply Last reply Reply Quote 0
                                    • RAMundefined
                                      RAM @dc42
                                      last edited by RAM

                                      @dc42
                                      G91 G1 S2 X10 now moves diagonally from left front to right rear
                                      G91 G1 S2 Y10 now moves diagonally from left rear to right front

                                      duet movesG91.jpg

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

                                        @RAM said in Hypercube Fusion movement help:

                                        @dc42
                                        G91 G1 S2 X10 now moves diagonally from left front to right rear
                                        G91 G1 S2 Y10 now moves diagonally from left rear to right front

                                        That's exactly right. Now you just need to get the M574 endstop definitions in config.g right, and the homing files.

                                        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

                                        RAMundefined 1 Reply Last reply Reply Quote 0
                                        • RAMundefined
                                          RAM @dc42
                                          last edited by RAM

                                          @dc42
                                          Just tested the X, Y & Z homing indviually and they are working perfectly.

                                          When I use the home all the X homes fine but when it does the Y it does the 1st home and then runs off to the right for some reason ??

                                          ; generated by RepRapFirmware Configuration Tool v2.1.8 on Sun Jan 26 2020 18:02:23 GMT+0000 (Greenwich Mean Time)
                                          G91                     ; relative positioning
                                          G1 H2 Z5 F6000          ; lift Z relative to current position
                                          G1 H1 X-315 F1800   	; move quickly to X or Y endstop and stop there (first pass)
                                          G1 X5 F6000          	; go back a few mm
                                          G1 H1 X-315 F360        ; move slowly to X axis endstop once more (second pass)
                                          G1 H1 Y325 F1800            	; home Y axis
                                          G1 Y-15 F6000          	; go back a few mm
                                          G1 H1 Y315 F360        	; move slowly to X axis endstop once more (second pass)
                                          G90                     ; absolute positioning
                                          G1 X150 
                                          G1 X150 Y130 F6000      ; go to first bed probe point and home Z
                                          G30                     ; home Z by probing the bed
                                          ;G1 X0 Y0 Z5 		; return to a parked position
                                          
                                          RAMundefined 1 Reply Last reply Reply Quote 0
                                          • RAMundefined
                                            RAM @RAM
                                            last edited by

                                            @dc42

                                            Figured out what was happening the G1 X150 after the G90 was causing it to slip but not sure why it was running off to the right after.

                                            I have to undock the Y axis from the endstop before any X moves.

                                            only thing I can't work out now is why the middle of the bed is off for Z probing. When it homes and does the last part for the first bed probe it is not in the middle as it was before.

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