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

    How to configure the closed-loop motor on duet 2

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    3
    9
    570
    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.
    • Eaton Renundefined
      Eaton Ren
      last edited by

      Hi everyone, I am a new fan of duet. Just got a new duet 2 wifi motherboard. When I use an external closed-loop motor for X and Y axis, I ran into trouble. All my stepper settings are normal and it can move perfectly. Unfortunately, the print is slanted. I tried to use M569 to change the T parameter, but it didn't work. Does anyone know this problem?

      Thanks in advance for any helpful suggestions.

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

        @eaton-ren please post more details; at the very least Duet firmware version (send M115 to Duet, post response), config.g, specification sheet of external closed loop board, how you have wired 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

        Eaton Renundefined 3 Replies Last reply Reply Quote 0
        • Eaton Renundefined
          Eaton Ren @droftarts
          last edited by

          @droftarts
          I completed all the information, thank you again for your reply.

          config.g

          FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 3.3 ELECTRONICS: Duet WiFi 1.02 or later FIRMWARE_DATE: 2021-06-15 21:45:03

          X uses E2 (DRIVE 5), Y uses E3 (DRIVE 6)

          JSS57P integrated digital hybrid servo.pdf

          1 Reply Last reply Reply Quote 0
          • Eaton Renundefined
            Eaton Ren @droftarts
            last edited by

            @droftarts

            I added pictures of the wiring.
            I designed an adapter board to facilitate the access of the motor signal line. The motor uses the common cathode connection method.
            X motor subdivision value 8000X motor.jpg
            Y motor subdivision value 20000Y motor.jpg mainboard.jpg adapter PCB.jpg

            1 Reply Last reply Reply Quote 0
            • Eaton Renundefined
              Eaton Ren @droftarts
              last edited by

              @droftarts

              Today I use an oscilloscope to observe the pulse signal. It is found that there will be a pulse signal 50ms after the DIR signal. 50ms is too long, I wonder if this is the problem.

              Signal test.png

              mrehorstdmdundefined 1 Reply Last reply Reply Quote 0
              • mrehorstdmdundefined
                mrehorstdmd @Eaton Ren
                last edited by

                @eaton-ren You have direction hold time set to zero- that's not likely to work.

                I use iHSV servomotors in my sand table and have the timing set up like this:

                M569 P5 S1 R0 T4.0:5.0:6.0:12.0 ; drive 5 reverse, lo enable, timing parameters for servomotors
                M569 P6 S1 R0 T4.0:5.0:6.0:12.0 ; drive 6 reverse, lo enable, timing parameters for servomotors

                I'd bet they're using similar or even identical drivers in your motors and mine.

                I run these motors at 10k acceleration with speeds up to 1600 mm/sec with those timing parameters.

                https://drmrehorst.blogspot.com/

                Eaton Renundefined 1 Reply Last reply Reply Quote 2
                • Eaton Renundefined
                  Eaton Ren @mrehorstdmd
                  last edited by

                  @mrehorstdmd Thanks for the help, I tried your T parameter and it didn't work. My client is very anxious, I can only use stepper motors. Today I changed them and used the default port. hope everything is fine.IMG_20211118_154416.jpg IMG_20211118_154424.jpg

                  mrehorstdmdundefined 1 Reply Last reply Reply Quote 0
                  • mrehorstdmdundefined
                    mrehorstdmd @Eaton Ren
                    last edited by mrehorstdmd

                    @eaton-ren Maybe the problem is the voltage level on the step/dir/enable lines. I wired the step/dir/enable directly to the corresponding + and - step/dir/enable outputs on a Duet2 expansion board.

                    alt text

                    I did not use the alarm output...

                    https://drmrehorst.blogspot.com/

                    Eaton Renundefined 1 Reply Last reply Reply Quote -1
                    • Eaton Renundefined
                      Eaton Ren @mrehorstdmd
                      last edited by

                      @mrehorstdmd said in How to configure the closed-loop motor on duet 2:

                      I did not use the alarm output...

                      After replacing the stepper motors, they worked perfectly. Soon I can deliver two printers to customers.
                      I hope the TMC2660 drive is stable, because I saw a layer shift yesterday.

                      IMG_20211118_163049.jpg
                      IMG_20211119_091212.jpg

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