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

    Duet 2Wifi Board: 3 Z-Axis configuration create problem

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    5
    29
    937
    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.
    • R006undefined
      R006 @T3P3Tony
      last edited by

      @T3P3Tony
      external driver: Motion king stepper motor drive model no. 2L415B

      yes we have tested with stock RRF.

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

        @R006 is it a genuine Duet3D board? Which version of RRF did you test with? Try 3.4.6 https://github.com/Duet3D/RepRapFirmware/releases/tag/3.4.6

        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

        R006undefined 1 Reply Last reply Reply Quote 0
        • R006undefined
          R006 @droftarts
          last edited by R006

          @droftarts
          yes it is.
          i tried with 3.4.4 & 3.4.6 RRF version standard RRF.

          I even tried to configure 2 motor in Z with same configuration, but again on Z movement, Y axis gets some random pulse.

          Tried with 3 different duet 2 WIFI boards and observed this problem repeatedly, when the Z travel more then 5-10 mm then Y motor rotates intermittently, due to some random pulse signals on it,

          Could you please try at your end, by configuring 3 different Z motors, oneY and one X, run 4 stepper motors with just the board? (temporarily just mark Z0, Y0 X0 using G92 & move Z axis by 5mm, then Y axis gets some pulse? IF you hold the motor shaft, you might feel it. You can also monitor the Y axis pins on DSO to see this.

          NOTE: External driver was only used for Extruder. I was using onboard drivers for axes.

          1 Reply Last reply Reply Quote 0
          • R006undefined
            R006 @T3P3Tony
            last edited by

            @T3P3Tony @Phaedrux @dc42
            I am waiting for your response.

            gloomyandyundefined 1 Reply Last reply Reply Quote 0
            • gloomyandyundefined
              gloomyandy @R006
              last edited by

              @R006 It might help if you post a picture of the board showing how you have the motors connected.

              R006undefined 1 Reply Last reply Reply Quote 0
              • R006undefined
                R006 @gloomyandy
                last edited by

                @gloomyandy
                1.png

                gloomyandyundefined droftartsundefined 2 Replies Last reply Reply Quote 0
                • gloomyandyundefined
                  gloomyandy @R006
                  last edited by

                  @R006 Di you have a higher resolution version, it is hard to see what you have connected to the board in that picture.

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

                    @R006 in your config.g, you haven’t specified any timing for your external drivers, set by M569 Txx:xx:xx:xx parameter. I think this may be causing a problem, as it will be using the default timing of ‘fast’, which is only suitable for the on-board drivers. The high frequency of these steps, and the high step rate you have set for Z (M92 Z2133.33) may be causing the interference. Try:

                    M569 P5 S1 T5:5:10:10
                    

                    And similar for any other external driver.

                    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

                    R006undefined 1 Reply Last reply Reply Quote 0
                    • R006undefined
                      R006 @droftarts
                      last edited by R006

                      @droftarts , @dc42 , @T3P3Tony
                      hey,
                      i tried as per your suggestion but problem remains same. Please find detailed observations as per trials:

                      with onboard drivers connected for all axes:

                      1. I have 4 boards, and all of them with latest or old software have same behaviour.
                      2. Somehow on while moving Z, Y axis gets some pulse.
                      3. If i interchange the driver of X& Y, from P0 , P1 respectively to P1, P0, even then the noise appears only on the Y channel.
                      4. The problem is some intermittent pulse that generates only on Y channel when declared. If i make P0 & P1 as X, then noise does not appear.
                      5. It appears only if the Zmove is > 5mm .
                      6. This noise does not generate when we HOME Z, but move Z at the same homing speed, the problem appears.

                      with XY via external driver:
                      7) When we use SPI-> external driver-> with suggested timing parameters, the probelms still exists.

                      I have tried many things, Can you please check this once in the boards with you ? Somewhere a pulse is generated for the Y axis only when z moves.

                      Is there anywhere in code where i can look for the problem ?

                      ***What can be the possible causes for such behaviour?***bolded text

                      1 Reply Last reply Reply Quote 0
                      • R006undefined
                        R006 @gloomyandy
                        last edited by

                        @gloomyandy

                        can't upload original file because the original file size is more and giving error while upload it

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

                          @R006 please post your current config.g.

                          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

                          R006undefined 2 Replies Last reply Reply Quote 0
                          • R006undefined
                            R006 @droftarts
                            last edited by R006

                            @droftarts
                            config

                            
                            G90                                                  
                            M83                                                 
                            M550 P"INFD300s"                                     
                            M551 P"INFD300"                                      
                            
                            ; Network
                            ;M552 S1                                                                                          
                            M552 S-1
                            M586 P0 S1                                           
                            M586 P1 S0                                          
                            M586 P2 S0                                           
                            
                            ; Drives
                            M569 P0 S1                                           
                            M569 P1 S1                                           
                            M569 P2 S1                                           
                            M569 P3 S1 
                            M569 P4 S1 
                            M569 P5 S1   
                            M584 X0 Y1 Z2:3:4 E5                                    
                            M350 X32 Y32 I0                                        
                            M350 Z16 E16 I1                                      
                            M92 X160.00 Y160.00 Z2133.33 E932.00 
                            ;change as per machine                   
                            M566 X720.00 Y720.00 Z300.00 E600.00                       
                            M203 X8400.00 Y8400.00 Z420.00 E8400.00          
                            M201 X3000.00 Y3000.00 Z30.00 E250.00                
                            ;M-curr 
                            M906 X2200 Y2200 Z1600 E800 I30                      
                            M84 S30                                              
                            
                            ; Axis Limits
                            M208 X0 Y0 Z0 S1                                     
                            M208 X280 Y280 Z291 S0                               
                            
                            ; filament Sensor                           
                            M591 D0 P7 C"exp.e3stop" R15:300 L7 E17 S1            
                            
                            ; Endstops
                            M574 X1 S1 P"xstop"                                 
                            M574 Y1 S1 P"ystop"                                
                            M574 Z1 S1 P"zstop+e0_stop+e1_stop"                                 
                            
                            ; Z-Probe
                            M950 S0 C"exp.heater3"                               
                            M558 P9 C"^zprobe.in" H5 F120 T6000  
                                           
                            ;G31 P500 X-35 Y-30 Z2.199    
                            G31 P500 X0 Y0 Z1.0
                            
                            ; Auto level, coordinates as per motor order in M584 
                            M671 X-17.66:297.34:140.00 Y-5.00:-5.00:327.61 S5.0  ;points position with left right &center
                            
                            ; define mesh grid                           
                            M557 X30:270 Y30:270 S20   
                            M376 H5                        
                               					   
                            ; End Limits 
                            ;M950 J1 C"!exp.e4stop"  				   	 
                            ;M581 P1 T2 R0 S1                                     			     
                            ;M582 T2							     
                            ;M581 P-1 T2	                                         				     
                            ;M581 P1 T0 R0 S1                                    
                            
                            ;PA
                            M572 D0 S0.050	
                            
                            ;SKEW
                            M556 Y1.1 S50.0		                             
                            
                            ; Bed Heater
                            M308 S0 P"bedtemp" Y"thermistor" T100000 B4138       
                            M950 H0 C"bedheat" T0                                
                            M307 H0 B0 S1.00                                     
                            M140 H0                                             
                            M143 H0 S105                                         
                            
                            ; Extuder Heater
                            M308 S1 P"e0temp" Y"pt1000"                          
                            M950 H1 C"e0heat" T1                                 
                            M307 H1 B0 S1.00                                      
                            M143 H1 S320                                         
                            
                            ; cooling Fans
                            M950 F0 C"fan0" Q500                                 
                            M106 P0 S0 H-1                                       
                            M950 F1 C"fan1" Q500                                 
                            M106 P1 S0 H-1                                       
                            
                            ; Tools
                            M563 P0 D0 H1 F0                                    
                            G10 P0 X0 Y0 Z0                                      
                            G10 P0 R0 S0                                         
                            
                            ; Custom settings are not defined
                            
                            ; Miscellaneous
                            M575 P1 S1 B57600                                   
                            M501                                                
                            M911 S21 R22.5 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000"   
                            M929 S3 P"/macros/SERVICE/log/STPL_DEBUG.txt"       
                            M17
                            
                            

                            i have tested with 4 more boards with me all the 8 boards show same problem of noise on Y drive whenever Z moves irrespective of Z speed.

                            here is my invoice conforming on my original board purchase.

                            kindly tell me how to proceed, as none of the board is working well & I am confident about the config declaration of motors.
                            I have also observed that whenever Yaxis gets this extra pulses due to Z move, after that on homing Y axis, its displays values like -0.6 or -0.0 depending upon its position.

                            Please respond at the earliest here, as I have a customer to respond to & I am stuck with the board isssue.

                            INVOICE-2.pdf

                            droftartsundefined 2 Replies Last reply Reply Quote 0
                            • R006undefined
                              R006 @droftarts
                              last edited by

                              @droftarts @T3P3Tony @Phaedrux @dc42
                              I am waiting for your response.

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

                                @R006 said in Duet 2Wifi Board: 3 Z-Axis configuration create problem:

                                Your config:

                                M350 Z16 E16 I1                          ; configure microstepping with interpolation
                                M92 X160.00 Y160.00 Z2133.33 E932.00     ; set steps per mm 
                                ;change as per machine                   
                                M566 X720.00 Y720.00 Z300.00 E600.00     ; set maximum instantaneous speed changes/jerk (mm/min)
                                M203 X8400.00 Y8400.00 Z420.00 E8400.00  ; set maximum speeds (mm/min)
                                M201 X3000.00 Y3000.00 Z30.00 E250.00    ; set accelerations (mm/s^2)
                                ;M-curr 
                                M906 X2200 Y2200 Z1600 E800 I30          ; set motor currents (mA) and motor idle factor in per cent
                                

                                I think the problem is EMF when the motors start and stop, caused by the high jerk setting and the high step rate on the Z axis.

                                Your Z has 16x microstepping with 2133.33 steps per mm, jerk is 300mm/min (5mm/s), acceleration is 30mm/s^2 and top speed is 420mm/min (7mm/s) (it was 1800mm/min or 30mm/s in your first config.g). Any move will start at 5mm/s, and (if my maths is correct) it takes 0.066s and 0.4mm to get to 7mm/s. At 5mm/s, the step rate is 10.666kHz, at 7mm/s it is 14.9kHz. So it's not really accelerating, more just starting at full speed!

                                I checked using the specification from MotionKing for your motor https://www.motionking.com/Products/Hybrid_Stepper_Motors/2-phase/17H2A_Stepper_Motor_42mm_1.8degree.htm and the RepRapFirmware EMF calculator https://www.reprapfirmware.org/emf.html, and when running I think the axis should be okay, even at 12V, and should be okay up to around 840mm/min (14mm/s). This doesn't calculate problems when starting and stopping, though.

                                c7633e6b-9674-4d23-9e9c-7de2a354bc64-image.png

                                At what point in the Z move does the step on Y occur? If it is at the start or, more likely, end of the move, I think it's likely the high jerk is causing a voltage spike. You said you saw a single pulse/spike signal, but not when.

                                Try reducing jerk. Start with M566 Z6 (6mm/min, or 0.1mm/s), which is a more normal figure for an axis with a high step rate. If that works without causing a move in Y, try increasing it if you need more performance. While the motor may be able to use high jerk with no load, once in the machine and under load, I would expect that jerk would need to be reduced to avoid skipping steps at the beginning of the move.

                                Further questions:
                                What voltage PSU are you using?
                                Are you using the same PSU for the Duet and external stepper drivers?
                                If you are using different PSUs, have you connected the negative terminals of the two PSUs together, so there is a common ground?

                                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 1
                                • droftartsundefined
                                  droftarts administrators @R006
                                  last edited by

                                  @R006 said in Duet 2Wifi Board: 3 Z-Axis configuration create problem:

                                  ;SKEW
                                  M556 Y1.1 S50.0

                                  @dc42 just pointed out to me that you have this line in config.g, and is likely the source of the problem. It wasn't visible in the first config.g you posted. See https://docs.duet3d.com/en/User_manual/Reference/Gcodes#m556-axis-skew-compensation

                                  The X, Y and Z figures are the number of millimeters of the short side of the triangle that represents how out of true a pair of axes is. The X figure is the error between X and Y, the Y figure is the error between Y and Z, and the Z figure is the error between X and Z. Positive values indicate that the angle between the axis pair is obtuse, negative acute.

                                  The Y value is the skew in YZ. So Z moves will cause a movement in Y. Comment this line out.

                                  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

                                  R006undefined 1 Reply Last reply Reply Quote 2
                                  • R006undefined
                                    R006 @droftarts
                                    last edited by

                                    @droftarts
                                    David seems to be absolutely right. Thank you both of you!
                                    When I set skew factor 0, this problem doesn't appear.

                                    now my question is , if skew is enabled , after some printing or moves, Y position changes. On HOMEY, I see Y position as -0.6 or so. How do I set it to 0 on Yhome?

                                    Ideally, on Homing, position should be 0, right? Please revert on this.
                                    (note: atimes this negative value is -0.0, -0.6, -1.9 etc, on homing Y)

                                    Thanks & Regards,
                                    R006

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

                                      @R006 Homing Y will set the Y axis to zero at the point of triggering the Y axis endstop, regardless of Z height. If you have skew in YZ enabled, homing Y at Z0 (ie Z is already homed before Y) will cause Y to have a different offset from the bed when compared to homing Y at Z100. Either always home Y before Z (because no skew is applied if Z is unhomed), or if Z is homed before Y, always home at the same Z height.

                                      If you want to home Y when Z is already homed, but at different Z heights, you can work out the Y offset for each Z height, and apply a Y offset to the Y axis after homing, by sending an G92 command with the Y offset. You could even use Meta Gcode to calculate the offset based on the skew value and the current Z height.

                                      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

                                      R006undefined 1 Reply Last reply Reply Quote 0
                                      • R006undefined
                                        R006 @droftarts
                                        last edited by

                                        @droftarts
                                        okay.
                                        Where (in which file) can I add skew compensation?

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

                                          @R006 In config.g. If your machine is not square, it is not square all the time.

                                          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
                                          • First post
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA