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

    Mixing hotend only driving first extruder

    Scheduled Pinned Locked Moved Solved
    General Discussion
    3
    14
    365
    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.
    • NeelGundefined
      NeelG @Phaedrux
      last edited by NeelG

      @Phaedrux I have updated the firmware to the latest version (3.5.3). For M98, the DWC interface disconnects and the printer does not reconnect after a while. What should I do next?
      Update: Seems to be working after a restart. Output is:

      M98 P"config.g"
      HTTP is enabled on port 80
      Warning: Heater 0 predicted maximum temperature at full power is 321°C
      Error: bad drive number
      Error: in file macro line 93: M567: Invalid tool number
      Error: in file macro line 94: G10: Invalid tool number
      Error: in file macro line 95: G10: Invalid tool number
      Error: in file macro line 100: M568: Invalid tool number

      All of these refer to an instance where I have specified the extruders in some form of 3:4, but per my understanding this should be a valid syntax? I used this syntax for axises and it worked without issue, and I have seen others do this.

      Phaedruxundefined droftartsundefined 2 Replies Last reply Reply Quote 0
      • Phaedruxundefined
        Phaedrux Moderator @NeelG
        last edited by

        @NeelG said in Mixing hotend only driving first extruder:

        M98 P"config.g"
        HTTP is enabled on port 80
        Warning: Heater 0 predicted maximum temperature at full power is 321°C
        Error: bad drive number
        Error: in file macro line 93: M567: Invalid tool number
        Error: in file macro line 94: G10: Invalid tool number
        Error: in file macro line 95: G10: Invalid tool number
        Error: in file macro line 100: M568: Invalid tool number

        This is exactly what I was looking for. M98 P"config.g" is running you config.g file as it would during startup, but some error messages can be missed during startup. so we're able to see them here.

        As I suspected your tool definitions are a bit weird.

        Tools start at 0 and count up, but you have tool 0 commented out.

        @NeelG said in Mixing hotend only driving first extruder:

        D0.3:0.4

        This is incorrect way to map the extruder driver. In the tool definition you do not use the driver number, you use the extruder number, starting at 0 and counting up. So driver 0.3 would be extruder 0, etc.

        Take a closer look at a config file generated by the config.g tool to see a valid config, then review the documentation for the gcodes referenced in your error messages.

        Z-Bot CoreXY Build | Thingiverse Profile

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

          @NeelG said in Mixing hotend only driving first extruder:

          All of these refer to an instance where I have specified the extruders in some form of 3:4, but per my understanding this should be a valid syntax? I used this syntax for axises and it worked without issue, and I have seen others do this.

          You define extruders with M584. Yours is:

          M584 ... E0.3:0.4
          

          The first E drive is D0, the second is D1. So the M563 tool should be:

          M563 P2 S"E2 Both" D0:1 H1
          

          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

          NeelGundefined 1 Reply Last reply Reply Quote 0
          • NeelGundefined
            NeelG @droftarts
            last edited by

            @droftarts @Phaedrux thank you both so much. It is working properly now.

            NeelGundefined 1 Reply Last reply Reply Quote 0
            • NeelGundefined
              NeelG @NeelG
              last edited by droftarts

              Not sure why, but it is not working anymore. I cannot control the extruders at all. Didn't change the config as far as I know of.
              Config.g:

              ; General
              G90 ; absolute coordinates
              M83 ; relative extruder moves
              M550 P"printername" ; set hostname
              
              ; Network
              M552 Pxxx.xxx.x.xxS1 ; configure Ethernet adapter (IP hidden, there is a real address in it)
              M553 P255.255.255.0 ; set netmask
              M554 Pxxx.xxx.x.xx ; set gateway
              M586 P0 S1 ; configure HTTP
              
              ; Smart Drivers
              M569 P0 S0 D2                      ; driver 0.0 goes forwards (Z axis)
              M569 P1 S1 D2                      ; driver 0.1 goes forwards (A axis)
              M569 P2 S1 D2                      ; driver 0.2 goes forwards (X axis)
              M569 P3 S1 D2                      ; driver 0.3 goes forwards (extruder 0)
              M569 P4 S1 D2                      ; driver 0.4 goes forwards (extruder 1)
              M569 P5 S1 D2                      ; driver 0.5 goes forwards (Y axis)
              
              ; Motor Idle Current Reduction
              M906 I30 ; set motor current idle factor
              M84 S30 ; set motor current idle timeout
              
              ; Axes (Note: Y axis not functional)
              M584 X2 Y4 Z0 A1        ; set axis mapping
              
              M350 X16 Y16 Z16 A16 I1 ;E16:16 I1          ; configure microstepping with interpolation
              M906 X1500 Y0 Z1500 A1500 ;E1000:1000 ; set motor driver currents
              M92 X400 Y800 Z400 A800 ;E492.15:420             ; configure steps per mm
              M208 X0:200 Y0:200 Z0:200 A-360:720 ; set minimum and maximum axis limits
              M566 X900 Y900 Z12 A900 ;E1200:1200         ; set maximum instantaneous speed changes (mm/min)
              M203 X6000 Y6000 Z180 A20000 ;E3600:3600     ; set maximum speeds (mm/min)
              M201 X500 Y500 Z200 A1000 ;E250:250         ; set accelerations (mm/s^2)
              
              
              ; Extruders
              M584 E3:5   ; set extruder mapping
              ;M350 E16:16 I1  ; configure microstepping with interpolation
              ; NOTE: See Smart Drivers section for motor currents
              M92 E1000:1000    ; configure steps per mm 492.15:420 
              M566 E1200:1200   ; set maximum instantaneous speed changes (mm/min)
              M203 E3600:3600 ; set maximum speeds (mm/min)
              M201 E250:250   ; set accelerations (mm/s^2)
              
              ; Kinematics
              M669 K0 ; configure Cartesian kinematics
              
              ; Probes
              M558 K0 P1 C"io3.in" H5 F120 T6000 ; configure analog probe via slot #0
              G31 P500 X0 Y0 Z0.7                ; set Z probe trigger value, offset and trigger height
              
              ; Endstops
              ;M574 X0 ; configure X axis endstop
              ;M574 Y0 ; configure Y axis endstop
              ;M574 Z0 ; configure Z axis endstop
              ;M574 A0 ; configure A axis endstop
              
              ; Sensors
              M308 S0 P"temp0" Y"thermistor" A"Heated Bed" T100000 B4725 C7.06e-8          ; configure sensor #0
              M308 S1 P"temp1" Y"PT1000" A"Nozzle Thermistor 1" ; configure sensor #1
              M308 S2 P"temp2" Y"PT1000" A"Nozzle Thermistor 2" ; configure sensor #2
              
              ;M308 S1 P"temp1" Y"thermistor" A"Nozzle Thermistor 1" T100000 B4725 C7.06e-8 ; configure sensor #1
              ;M308 S2 P"temp2" Y"thermistor" A"Nozzle Thermistor 2" T100000 B4725 C7.06e-8 ; configure sensor #2
              
              ; Heaters
              M950 H0 C"out0" T0                ; create heater #0
              M143 H0 P0 T0 C0 S140 A0          ; configure heater monitor #0 for heater #0
              M307 H0 R2.43 D5.5 E1.35 K0.56 B1 ; configure model of heater #0
              M950 H1 C"out1" T1                ; create heater #1
              M143 H1 P0 T1 C0 S285 A0          ; configure heater monitor #0 for heater #1
              M307 H1 R2.43 D5.5 E1.35 K0.56 B0 ; configure model of heater #1
              M950 H2 C"out2" T1                ; create heater #2
              M143 H2 P0 T1 C0 S285 A0          ; configure heater monitor #0 for heater #2
              M307 H2 R2.43 D5.5 E1.35 K0.56 B0 ; configure model of heater #2
              
              ; Heated beds
              M140 P0 H0                        ; configure heated bed #0
              
              ; Fans
              M950 F0 C"out6"       ; create fan #0
              M106 P0 S0 L0 X1 B0.1 ; configure fan #0
              
              ; Tools
              ;T0__________________________________________________________
              M563 P0 S"E0 Filament" D0 H1 F0                 ; Define tool 0
              G10 P0 X0 Y0 Z0                                ; Set tool 0 axis offsets
              G10 P0 R0 S0                                 ; Set initial tool 0 active and standby temperatures to 0C
              
              ;T1__________________________________________________________
              M563 P1 S"E1 CF" D1 H2 F1               ; Define tool 1
              G10 P1 X0 Y0 Z0                               ; Set tool 1 axis offsets
              G10 P1 R0 S0                                 ; Set initial tool 1 active and standby temperatures to 0C
              
              ;T2__________________________________________________________
              M563 P2 S"E2 Both" D0:1 H1:2 F0:1              ; Define tool 2
              M567 P2 E1.00:1.00                             ; 100% Mix Ratio for both tools
              G10 P2 X0 Y0 Z0                                ; Set tool 2 axis offsets
              G10 P2 R0 S0                                 ; Set initial tool 2 active and standby temperatures to 0C
              
              
              ;M563 P0 D0 H1 F0 ; create tool #0
              M568 P2 R0 S0 ; set initial tool #0 active and standby temperatures to 0C
              
              ; Miscellaneous
              T2 ; select first tool
              

              M98"config.g" reports no errors, the only output is 'HTTP is enabled on port 80'.
              M112 reports the firmware is 3.5.3, which still is the latest release candidate. Switching the motors into the drivers for one of the motion axis reveals that the hardware is working fine. The interface seems to think it has two functional extruders, I see all the controls, but hitting extrude or using a command (ie G1 E100 or G1 E200:100) does nothing at all. I see no motor movement. Does anyone know why this might be happening?

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

                @NeelG you don’t appear to have M350 (commented out) or M906 (absent) set for your extruder drives. Are you sending M302 P1 to enable cold extrudes? Or are you heating up the two heaters (H1 and H2) before extrusion? Otherwise the ‘extrude’ and ‘retract’ buttons will be greyed out. Also check and/or set the mixing ratio with M567 (see https://docs.duet3d.com/User_manual/Reference/Gcodes#m567-set-tool-mix-ratios). Note

                The default is for the first driver to be set to 1, and all others to be set to 0. (ie for 2 drivers the default is E1:0)

                Ie only the first extruder will extrude by default with a G1 Ennn move. Though G1 Ennn:nnn should override this.

                Maybe post a screen shot of the DWC Dashboard, showing extruder drive control.

                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

                NeelGundefined 1 Reply Last reply Reply Quote 0
                • NeelGundefined
                  NeelG @droftarts
                  last edited by

                  @droftarts I am using an M302 P1 command, the buttons are not greyed out. I can press them and Duet accepts this, the DWC dashboard even shows the extruders moving, but the hardware does not move at all. I know it is not a hardware problem because I tested defining those extruder motors as axises and that allows them to move fine. I am testing with G1 Ennn:nnn already.

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

                    @NeelG What does it respond with if you send M906 without parameters? I suspect it will be

                    M906
                    Motor current (mA) - X:1500, Y:0, Z:1500, A:1500, E:0:0, idle factor 30%
                    

                    Note E0:0, because you haven't set M906 for the extruders, like I said in my previous post.

                    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

                    NeelGundefined 1 Reply Last reply Reply Quote 0
                    • NeelGundefined
                      NeelG @droftarts
                      last edited by

                      @droftarts Thank you, setting M906 fixed the issue. It is working now. I wonder how it was working the first time without this, maybe I accidentally checked out an older version of the code 😅
                      Thank you again for the help

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

                        @NeelG I think you just missed M906 when you separated the extruder settings from the other axis settings. They are commented out here:

                        M906 X1500 Y0 Z1500 A1500 ;E1000:1000 ; set motor driver currents
                        

                        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
                        • droftartsundefined droftarts marked this topic as a question
                        • droftartsundefined droftarts has marked this topic as solved
                        • First post
                          Last post
                        Unless otherwise noted, all forum content is licensed under CC-BY-SA