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

    issue with 1HCL and Quadrature Shaft Encoder

    Scheduled Pinned Locked Moved Unsolved
    Beta Firmware
    3
    12
    590
    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.
    • tom33undefined
      tom33
      last edited by tom33

      Hi,

      I'm using duet 1HCL for use my machine in closed loop mode and I find a problem after lot of testing.

      RRF 3.5.0 rc1

      1 - When I turn the motor from closed loop to open loop I don't obtain the same mesurement on parts (smaller in closed loop)

      2 - When I tried to print circle they are good in open loop mode but not in closed loop mode issue in changing direction

      I've tried to tune the motor and test lots of parameters but nothing changed...

      I also tried assisted loop mode and have the same results than open loop mode (I don't want to use them for the noise)

      I'm using 17HS19-2004D-E1000 from stepper online

      Homex.g

      M569 P10.0 D0
      M906 X2500
      G91               ; relative positioning
      G4 S0.25
      ;G1 H2 Z5 F6000    ; lift Z relative to current position
      G1 H1 X370 F1800 ; move quickly to X axis endstop and stop there (first pass)
      G1 H2 X-5 F6000    ; go back a few mm
      G4 s0.5
      M569 P10.0 D4           ; Switch to closed loop mode
      G4 S0.25
      M569.6 P10.0 V1         ; Perform the calibration manoeuvre for a quadrature shaft encoder
      G4 S0.25
      G1 H1 X6 F360  ; move slowly to X axis endstop once more (second pass)
      G1 H2 X-5 F6000
      G90               ; absolute positioning
      M906 X1700
      

      driver configuration

      M569 P10.0 S1 D0                                   ; Driver 10.0 Axe X
      M569.1 P10.0 T2 C1000 H50 P30 I1000 D0.050 A150000 V150 E4:8
      M569 P15.0 S0 D0                                   ; Driver 15.0 Axe U
      M569.1 P15.0 T2 C1000 H50 P30 I1000 D0.050 A150000 V150 E4:8
      M569 P20.0 S1 D0                                    ; Driver 20.0 Axe V
      M569.1 P20.0 T2 C1000 H50 P30 I1000 D0.050 A150000 V150 E4:8
      M569 P25.0 S1 D0                                    ; Driver 25.0 Axe Y
      M569.1 P25.0 T2 C1000 H50 P30 I1000 D0.050 A150000 V150 E4:8
      
      tom33undefined o_lampeundefined dc42undefined 3 Replies Last reply Reply Quote 0
      • tom33undefined
        tom33 @tom33
        last edited by

        @tom33 @dc42 @Phaedrux

        1 Reply Last reply Reply Quote 0
        • Phaedruxundefined Phaedrux marked this topic as a question
        • Phaedruxundefined Phaedrux moved this topic from Tuning and tweaking
        • o_lampeundefined
          o_lampe @tom33
          last edited by

          @tom33 Are you sure, the encoder has 1000 cpt? Maybe it's a 1024 cpt version?
          How much smaller are you talking about?

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

            @tom33 please try the 3.5.0-rc.1+ files at https://www.dropbox.com/scl/fo/tjznycpk7bv7sj71p0ssl/h?rlkey=096p4nvgmigyrb20jj8olg3wu&dl=0.

            What PID parameters are you currently using for the 1HCL?

            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

            tom33undefined 3 Replies Last reply Reply Quote 1
            • tom33undefined
              tom33 @dc42
              last edited by

              @dc42 After testing the new revision of the firmware I still have the same probem !

              1 Reply Last reply Reply Quote 0
              • tom33undefined
                tom33 @dc42
                last edited by

                @dc42

                M569.1 P10.0 T2 C1000 H50 P30 I1000 D0.050 A150000 V400 E4:8
                M569.1 P15.0 T2 C1000 H50 P30 I1000 D0.050 A150000 V400 E4:8
                M569.1 P20.0 T2 C1000 H50 P30 I1000 D0.050 A150000 V400 E4:8
                M569.1 P25.0 T2 C1000 H50 P30 I1000 D0.050 A150000 V400 E4:8
                
                1 Reply Last reply Reply Quote 0
                • tom33undefined
                  tom33 @dc42
                  last edited by

                  @dc42 the problem come from the firmware or the motor ?

                  Megnetic encoder like this one : https://www.omc-stepperonline.com/fr/nema-17-moteur-pas-a-pas-a-boucle-fermee-65ncm-92oz-in-avec-encodeur-magnetique-1000ppr-4002cpr-17hs24-2104-me1k

                  Can resolve the problem ?

                  Thanks !

                  tom33undefined 1 Reply Last reply Reply Quote 0
                  • tom33undefined
                    tom33 @tom33
                    last edited by

                    @dc42 @Phaedrux ?

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

                      @tom33 please use D2 instead of D0 in your M569 commands to set open loop mode, e.g. M569 P10.0 D2 instead of M569 P10.0 D0.

                      We recommend that you home the axis in open loop mode; then move away from the endstop a little so that the motor can move freely; then switch to closed loop mode, set maximum current, execute the M569.6 tuning move, then set normal current.

                      When you run the encoder tuning move M569.6 P10 V1 (and similarly for the other motors), what does it report?

                      How close is the EXP1HCL board to the motor? I am wondering whether the encoder wires could be picking up noise.

                      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

                      tom33undefined 1 Reply Last reply Reply Quote 0
                      • tom33undefined
                        tom33 @dc42
                        last edited by

                        @dc42 3da964da-65b3-4911-b67e-aca1a928e543-image.png

                        I have tried to home the axis with d0 d2 and d3 with the same results

                        The encoder have 450 - 650 mm maximum cable length

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

                          @tom33 those tuning results look good. Please upgrade all firmware to 3.5.0-rc.2 and try PID tuning again. Bear in mind that PID tuning for closed loop motors in RRF 3.5.x is completely different from 3.4.x so you will need to install the 3.5.x version of the closed loop tuning plugin if you haven't already, establish new PID parameters, and copy them into the M569.1 commands in config.g. See the RRF 3.5 tab at https://docs.duet3d.com/User_manual/Tuning/Duet_3_1HCL_tuning#manual-tuning for instructions.

                          Then report whether you still have these original issues:

                          @tom33 said in issue with 1HCL and Quadrature Shaft Encoder:

                          1 - When I turn the motor from closed loop to open loop I don't obtain the same measurement on parts (smaller in closed loop)
                          2 - When I tried to print circle they are good in open loop mode but not in closed loop mode issue in changing direction

                          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

                          tom33undefined 1 Reply Last reply Reply Quote 0
                          • tom33undefined
                            tom33 @dc42
                            last edited by

                            @dc42 I have tried the 3.5.0 rc2 but the problem still persist
                            as you can see in the picture :
                            716af1f0-f254-4868-a9c5-770e61c04d16-IMG_0366 (002).jpg

                            When I turn the machine in open loop mode I don't have problem when I print circle

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