Mixed up heater mapping with IDEX and 4 extruders,hotends



  • Hello all,

    I'm attempting to configure Duet 2 Wifi , with DueX5 in preparation for a large printer build which will be a cartesian configuration with dual X carriages, and 2 extruders on each carriage for a total of 4.

    I have updated to the latest firmware 2.01(RTOS), and am using stacked dual PT100 interface boards for sensors. The electronics are able to read the temperature for all 4 sensors correctly. However I'm having issue with defining the tool heads and getting the correct heater to correspond with the tool.

    With the configuration below, the LCD is showing only 2 of the tools. And If I try to turn on the first nozzle, just to a low 40C temp for testing, it starts to heat the correct hotend, but its acting like it thinks it is heating the 3rd one(temp highlighted red on LCD) and will thermally run away far beyond the set point on the first hotend.

    lcd_heater

    The setup is currently just being tested on the bench, printer mechanicals have not been completed yet for full integration testing. I have stepper motors connected to drivers for X/Y/Z/U , but none yet connected for extruder motors. (I don't think this should affect the toolhead definitions though?)

    My plan was to run all 4 heaters and extruder steppers off of the DueX5 board just for wiring neatness and consistency, and ignoring the 2 heaters on the main board. Any help is appreciated.

    config.g shown below:

    ; Configuration file for Duet WiFi (firmware version 1.21)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool on Tue Jul 31 2018 14:57:20 GMT-0500 (Central Daylight Time)
    
    ; General preferences
    G90                                        ; Send absolute coordinates...
    M83                                        ; ...but relative extruder moves
    
    ; Network
    M550 PFourHead                             ; Set machine name
    M552 S1                                    ; Enable network
    M586 P0 S1                                 ; Enable HTTP
    M586 P1 S0                                 ; Disable FTP
    M586 P2 S0                                 ; Disable Telnet
    
    ; Drives
    M569 P0 S1                                 ; Drive 0 goes forwards
    M569 P1 S1                                 ; Drive 1 goes forwards
    M569 P2 S1                                 ; Drive 2 goes forwards
    M569 P3 S1                                 ; Drive 3 goes forwards
    M569 P4 S1                                 ; Drive 4 goes forwards
    M569 P5 S1                                 ; Drive 5 goes forwards
    M569 P6 S1                                 ; Drive 6 goes forwards
    ; Secondary X axis is labeled "U"
    M584 X0 Y1 Z2 U3 E5:6:7:8                     ; Apply custom drive mapping
    M350 X16 Y16 Z16 U16 E16:16:16:16 I1           ; Configure microstepping with interpolation
    M92 X80 Y80 Z4000 U80 E420:420:420:420         ; Set steps per mm
    M566 X900 Y900 Z12 U900 E120:120:120:120        ; Set maximum instantaneous speed changes (mm/min)
    M203 X6000 Y6000 Z180 U6000 E1200:1200:1200:1200 ; Set maximum speeds (mm/min)
    M201 X500 Y20 Z250 U500 E250:250:250:250        ; Set accelerations (mm/s^2)
    M906 X800 Y800 Z800 U800 E800:800:800:800 I30   ; Set motor currents (mA) and motor idle factor in per cent
    M84 S30                                    ; Set idle timeout
    
    ; Axis Limits
    M208 X0 Y0 Z0 U0 S1                           ; Set axis minima
    M208 X500 Y700 Z1000 U500 S0                    ; Set axis maxima
    
    ; Endstops
    M574 X1 Y1 Z1 U2 S1                           ; Set active high endstops
    
    ; Z-Probe
    M558 P1 H5 F120 T6000                      ; Set Z probe type to unmodulated and the dive height + speeds
    G31 P500 X0 Y0 Z2.5                        ; Set Z probe trigger value, offset and trigger height
    M557 X15:485 Y15:685 S20                   ; Define mesh grid
    
    ; Heaters
    M305 P0 T100000 B4138 C0 R4700             ; Set thermistor + ADC parameters for heater 0
    M143 H0 S120                               ; Set temperature limit for heater 0 to 120C
    
    M305 P1 X200
    M143 H3 S280
    M305 P2 X201
    M143 H4 S280
    M305 P3 X202
    M143 H5 S280
    M305 P4 X203
    M143 H6 S280
    
    ; Fans
    M106 P0 S0.3 I0 F500 H-1                   ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
    M106 P1 S1 I0 F500 H1:2:3:4 T45            ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on
    M106 P2 S1 I0 F500 H1:2:3:4 T45            ; Set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned on
    
    ; Tools
    ; Pn is tool number, not heater
    ; H0 is for bed, skip H1 and H2 on main board, H3 is first heater on DueX5?
    ; D0 is first extruder driver, skip 2 on main board, so D2 is first extruder driver on DueX5?
    M563 P0 D2 H3                             ; Define tool 0
    G10 P0 X0 Y40 Z0                           ; Set tool 0 axis offsets
    G10 P0 R0 S0                               ; Set initial tool 0 active and standby temperatures to 0C
    M563 P1 D3 H4                              ; Define tool 1
    G10 P1 X0 Y40 Z0                           ; Set tool 1 axis offsets
    G10 P1 R0 S0                               ; Set initial tool 1 active and standby temperatures to 0C
    M563 P2 D4 H5                              ; Define tool 2
    G10 P2 X0 Y-40 Z0                          ; Set tool 2 axis offsets
    G10 P2 R0 S0                               ; Set initial tool 2 active and standby temperatures to 0C
    M563 P3 D5 H6                              ; Define tool 3
    G10 P3 X0 Y-40 Z0                          ; Set tool 3 axis offsets
    G10 P3 R0 S0                               ; Set initial tool 3 active and standby temperatures to 0C
    
    ; Automatic saving after power loss is not enabled
    
    ; Custom settings are not configured
    

  • administrators

    It's a limitation of the current PanelDue firmware that it doesn't know the tool-to-heater mappings, so it assumes that tool 0 uses heater 1, tool 1 uses heater 2 and so on.

    What I don't understand is why only 2 of your tools are showing in the top row. I will investigate this. Which version of PanelDue firmware are you using? Look on the Setup page to find out.



  • Thanks for the reply,

    The PanelDue shows: firmware version 1.17

    Also here is the full the copy-pasted "Software Information" from the web interface:
    Firmware Name: RepRapFirmware for Duet 2 WiFi/Ethernet
    Firmware Electronics: Duet WiFi 1.02 or later + DueX5
    Firmware Version: 2.01(RTOS) (2018-07-26b2)
    WiFi Server Version: 1.21
    Web Interface Version: 1.21.2-dc42

    So it sounds like I should probably just give in and rewire the heaters to use the first two on the main board for best compatibility?



  • OK, I just found the PanelDue firmware releases page and I see that there are much newer versions available.

    I guess I hadn't realized that the panel had its own firmware that's completely separate from the main board firmware. I'll try updating tomorrow when I'm back at the shop and see if that works better.


  • administrators

    Thanks, let me know whether the correct number of tools is displayed after you have updated the PanelDue firmware.



  • OK I updated the panel firmware, and it still showed only two tools.
    0_1533228992247_IMG_20180802_104827554.jpg
    0_1533229140990_IMG_20180802_104841419.jpg

    Also the web interface shows the same of only two tools
    0_1533228978142_Screenshot from 2018-08-02 11-30-13.png

    So I then tried rewiring the heaters to use E0 and E1 heaters on the Duet 2 Wifi board, and the first two on the DueX5.
    And I changed M143 and M563 config lines to use H1 through H4 instead of H3 through H6.

    It still shows two tools, but the 3rd and 4th temp sensor info is now also removed from the panel display.
    0_1533229149230_rewired_reconfig.jpg

    And again the web interface after rewiring and reconfiguring
    0_1533229039078_web_after_reconfig.png

    The two tools do heat and stop heating when target temp is reached with these settings, so that is good.



  • @thehans I have an idea what's wrong.

    In your config you've used M584 to map axes and extruders to physical drives which is all fine. The extruders are mapped to physical drives 5,6,7 and 8. But what this actually means is that extruder 0 is physical drive 5, extruder 1 is physical drive 6 etc. BUT, in the tool definitions, Duet is expecting extruders drive numbers, not the physical drive to which they have been mapped. So you first tool (P0) should be M563 P0 D0 H3 (not D2), the second tool should be M563 P1 D1 H4 (not D3) etc. The extruder drives are 0 to 3 (mapped to 5,6,7and 8 ) so the two tools defined to use drives 2 and 3 will work but you don't have extruder drives 4 and 5. Logically this could be the reason why only 2 tools show up.

    HTH


  • administrators

    @deckingman said in Mixed up heater mapping with IDEX and 4 extruders,hotends:

    @thehans I have an idea what's wrong.

    In your config you've used M584 to map axes and extruders to physical drives which is all fine. The extruders are mapped to physical drives 5,6,7 and 8. But what this actually means is that extruder 0 is physical drive 5, extruder 1 is physical drive 6 etc. BUT, in the tool definitions, Duet is expecting extruders drive numbers, not the physical drive to which they have been mapped. So you first tool (P0) should be M563 P0 D0 H3 (not D2), the second tool should be M563 P1 D1 H4 (not D3) etc. The extruder drives are 0 to 3 (mapped to 5,6,7and 8 ) so the two tools defined to use drives 2 and 3 will work but you don't have extruder drives 4 and 5. Logically this could be the reason why only 2 tools show up.

    HTH

    Thanks Ian, I think that explains it. The last two M563 commands are probably failing because the extruder drive number in them is invalid.


Locked
 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.