Custom Drive Mapping stopped working



  • Hi

    I added yesterday a second extruder in my machine and suddenly things got really weird. Looks like the M584 line does not work anymore. Here is my config.g:

    ; General preferences
    M111 S0 ; Debugging off
    G21 ; Work in millimetres
    G90 ; Send absolute coordinates...
    M83 ; ...but relative extruder moves
    M555 P2 ; Set firmware compatibility to look like Marlin
    M208 X0 Y0 Z0 S1 ; Set axis minima
    M208 X900 Y800 Z800 S0 ; Set axis maxima

    ; Endstops
    M574 X1 Y1 Z1 S1 ; Define active high microswitches
    M558 P0 X0 Y0 Z0 H5 F120 T6000 ; Set Z probe type to switch, the axes for which it is used and the probe + travel speeds
    ;G31 P600 X0 Y0 Z2.5 ; Set Z probe trigger value, offset and trigger height
    ;M557 X15:885 Y15:785 S20 ; Define mesh grid

    ; Drives (Tn for longer pulse)
    M569 P0 S0 ; Drive 0 goes forwards X
    M569 P1 S0 ; Drive 1 goes forwards Y
    M569 P2 S1 ; Drive 2 goes forwards
    M569 P3 S1 ; Drive 3 goes forwards
    M569 P4 S1 ; Drive 4 goes forwards
    M569 P5 S0 ; Drive 5 goes forwards Y
    M569 P6 S1 ; Drive 6 goes forwards
    M569 P7 S1 ; Drive 7 goes forwards
    M569 P8 S1 ; Drive 8 goes forwards

    M584 X0 Y1:5 Z6:7:8:9 E2:3:4 ; Apply custom drive mapping

    M350 X16 Y32 Z4 E16:16:16:16 I0 ; Configure microstepping without interpolation

    ;M92 X80.1 Y40.1 Z180.4 E570:570:570:570 ; Set steps per mm
    M92 X160 Y160 Z180 E570:570:570:570 STEPS PER MM

    M566 X1200 Y1000 Z5 E5000:5000:5000:5000:5000:5000 ; Set maximum instantaneous speed changes (mm/min) “JERK”
    M203 X18000 Y18000 Z250 E1200:1200:1200:1200:1200:1200 ; Set maximum speeds (mm/min) SPEED
    M201 X700 Y700 Z100 E250:250:250:250:250:250 ; Set accelerations (mm/s^2) “ACCELERATION”
    M906 X1900 Y1900 Z1900 E500 I30 ; Set motor currents (mA) and motor idle factor in per cent

    M84 S30 ; Set idle timeout

    ; Heaters
    M143 S280 ; Set maximum heater temperature

    M305 P0 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 0

    M305 P1 T100000 B4138 C0 R4700 H-40 L-100 ; Set thermistor + ADC parameters for heater 1
    M307 H1 A528.3 C226.8 D5.3 B0 ; Autotune
    M143 H1 S300

    M305 P2 T100000 B4138 C0 R4700 H-40 L-100 ; Set thermistor + ADC parameters for heater 2
    M307 H2 A477.7 C209 D4 B0 ; Autotune
    M143 H2 S300

    M305 P3 T100000 B4138 C0 R4700 H-40 L-100 ; Set thermistor + ADC parameters for heater 3
    M307 H3 A491.8 C198.5 D5,1 B0 ; Autotune
    M143 H3 S300

    M305 P4 T100000 B4138 C0 R4700 H-40 L-100 ; Set thermistor + ADC parameters for heater 4
    M307 H4 A623.1 C198.6 D5 B0 ; Autotune
    M143 H4 S300

    ; Tools

    M563 P0 D0 H1 ; Define tool 0
    M567 P0 E1
    ;G10 P0 X0 Y0 Z0 ; Set tool 0 axis offsets
    ;G10 P0 R0 S0 ; Set initial tool 0 active and standby temperatures to 0C
    M568 P0 S1 ; TURN MIXING RATIOS ON

    M563 P1 D0:1 H1:2 ; Define tool 1
    M567 P1 E1: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
    M568 P1 S1 ; TURN MIXING RATIOS ON

    M563 P2 D0:1:2 H1:2:3 ; Define tool 2
    M567 P2 E1:1:1
    ;G10 P2 X0 Y0 Z0 ; Set tool 2 axis offsets
    ;G10 P2 R0 S0 ; Set initial tool 2 active and standby temperatures to 0C
    M568 P2 S1 ; TURN MIXING RATIOS ON

    M563 P3 D0:1:2:3 H1:2:3:4 ; Define tool 3;
    M567 P3 E1:1:1:1 ; MIXING RATIO
    ;G10 P3 X0 Y0 Z0 ; Set tool 3 axis offsets
    ;G10 P3 R0 S0 ; Set initial tool 3 active and standby temperatures to 0C
    M568 P3 S1 ; TURN MIXING RATIOS ON

    M563 P4 D1 H2 ; Define tool 4
    M567 P4 E1
    ;G10 P4 X0 Y0 Z0 ; Set tool 0 axis offsets
    ;G10 P4 R0 S0 ; Set initial tool 0 active and standby temperatures to 0C
    M568 P4 S1 ; TURN MIXING RATIOS ON

    M563 P5 D0:2:3 H1:3:4 ; Define tool 5;
    M567 P5 E1:1:1 ; MIXING RATIO
    ;G10 P5 X0 Y0 Z0 ; Set tool 3 axis offsets
    ;G10 P5 R0 S0 ; Set initial tool 5 active and standby temperatures to 0C
    M568 P5 S1 ; TURN MIXING RATIOS ON

    M563 P6 D1:2:3 H2:3:4 ; Define tool 6;
    M567 P6 E1:1:1 ; MIXING RATIO
    ;G10 P6 X0 Y0 Z0 ; Set tool 3 axis offsets
    ;G10 P6 R0 S0 ; Set initial tool 3 active and standby temperatures to 0C
    M568 P6 S1 ; TURN MIXING RATIOS ON

    M563 P7 D1:3 H2:4 ; Define tool 7;
    M567 P7 E1:1 ; MIXING RATIO
    ;G10 P7 X0 Y0 Z0 ; Set tool 3 axis offsets
    ;G10 P7 R0 S0 ; Set initial tool 3 active and standby temperatures to 0C
    M568 P7 S1 ; TURN MIXING RATIOS ON

    M563 P8 D2:3 H2:3 ; Define tool 8;
    M567 P8 E1:1 ; MIXING RATIO
    ;G10 P8 X0 Y0 Z0 ; Set tool 3 axis offsets
    ;G10 P8 R0 S0 ; Set initial tool 3 active and standby temperatures to 0C
    ;M568 P8 S1 ; TURN MIXING RATIOS ON

    ; Network
    M550 PLSBP Mk4 ; Set machine name
    M540 PBE:EF:DE:AD:FE:ED ; Set MAC address
    M552 P0.0.0.0 S1 ; Enable network and acquire dynamic address via DHCP
    M586 P0 S1 ; Enable HTTP
    M586 P1 S0 ; Disable FTP
    M586 P2 S0 ; Disable Telnet

    ; Fans
    M106 P0 S1 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
    M106 P1 S1 I0 F500 H-1 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned off
    M106 P2 S1 I0 F500 H-1 ; Set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned off

    I have tried for hours to make it work but now I don't know what to try anymore. Only one side of my dual motor Y is moving (the one connected on drive 1) and trying to move Z has moved the extruder motor connected on driver 2. X works since it is in drive 0.

    If somebody sees the problem it would really make my day!

    thanks!



  • @propellerhat Oh yes, I tried also putting the custom mapping in the macros and commanding it separately after the startup. No effect.



  • @propellerhat Also tried without the tool configurating and with only the tools that were working configurated in the config.g before the changes. No help.



  • I also moved the M208 next to movement lines but no help.



  • Just wondering.... M584 defines 3 extruders, for drives 2, 3 and 4. In many places the E parameter is followed by 4 values, like the M350 and M92 codes. Have you tried insuring that you don't have more than 3 values for any E parameter present in the file?



  • Removed now all the extra E parameters from M566,M203 and M201. Also the tools are cleaned from everything else than T8.

    Still same behaviour 😞



  • Now updated the firmware to 1.21. It has been a while since updating it. After the successfull in-app update from the SD card nothing moves.



  • Now when trying to move the axes I get this in the console: "G0/G1: insufficient axes homed"



  • Firmware 1.21 requires all axis to be homed before allowing movements in order to properly enforce actual machine area. There are workarounds, just search the forum.



  • M564 H0 got the things in movement, pity that exactly the same problem remains as before updating.

    Drive custom mapping doing nothing.


  • administrators

    If you run M584 from the command line, what does it report?



  • Oh heck... Just found the flat between Duet and Duex being a tad loose. Stuff making a lot more sense now after pushing that corner in.


Locked
 

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