• Tags
  • Documentation
  • Order
  • Register
  • Login
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
939
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.
  • undefined
    R006 @gloomyandy
    last edited by 23 Feb 2024, 05:12

    @gloomyandy

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

    undefined 1 Reply Last reply 23 Feb 2024, 07:54 Reply Quote 0
    • undefined
      droftarts administrators @R006
      last edited by 23 Feb 2024, 07:54

      @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

      undefined 2 Replies Last reply 23 Feb 2024, 08:41 Reply Quote 0
      • undefined
        R006 @droftarts
        last edited by R006 23 Feb 2024, 08:41

        @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

        undefined 2 Replies Last reply 23 Feb 2024, 10:57 Reply Quote 0
        • undefined
          R006 @droftarts
          last edited by 23 Feb 2024, 08:44

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

          1 Reply Last reply Reply Quote 0
          • undefined
            droftarts administrators @R006
            last edited by 23 Feb 2024, 10:57

            @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
            • undefined
              droftarts administrators @R006
              last edited by 23 Feb 2024, 11:23

              @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

              undefined 1 Reply Last reply 23 Feb 2024, 11:47 Reply Quote 2
              • undefined
                R006 @droftarts
                last edited by 23 Feb 2024, 11:47

                @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

                undefined 1 Reply Last reply 23 Feb 2024, 12:06 Reply Quote 1
                • undefined
                  droftarts administrators @R006
                  last edited by 23 Feb 2024, 12:06

                  @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

                  undefined 1 Reply Last reply 26 Feb 2024, 04:54 Reply Quote 0
                  • undefined
                    R006 @droftarts
                    last edited by 26 Feb 2024, 04:54

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

                    undefined 1 Reply Last reply 26 Feb 2024, 11:17 Reply Quote 0
                    • undefined
                      droftarts administrators @R006
                      last edited by 26 Feb 2024, 11:17

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