Axis remapping and parameters
-
So I had a Duet Ethernet with a faulty z-axis driver (motor was never energized) and to debug it, I remapped the Z-axis to Motordriver 4:
M584 Z04 ; remap z axis to motor driver 4
After doing this, I setup the driver, using
M208 X-128 Y0 Z0 U0 S1 ; Set axis minima
M208 X652 Y550 Z800 U387 S0 ; Set axis maximaM350 X16 Y16 Z16 U16 E16:16 I0 ; Configure microstepping without interpolation
M92 X80 Y80 U80 Z490 E1850:1850 ; Set steps per mm
M566 X1000 Y1000 U1000 Z30 E500:500 ; XYZEE-Jerk - Set maximum instantaneous speed changes (mm/min)
M203 X52000 Y52000 U52000 Z1000 E400:400 ; Set maximum speeds (mm/min)
M201 X100 Y100 U100 Z150 E1000:1000 ; Set accelerations (mm/s^2)
M906 X1200 Y1200 U1200 Z2200 E800:800 I30 ; Set motor currents (mA) and motor idle factor in per cent
M84 S30 ; Set idle timeoutBut all these settings (for the z-axis) were not applied to driver 4, but only to the "original" z-axis driver.
How would one change the settings for driver 4 when it has been remapped to Z?
For the record, I changed the duet, just thought I would report the bug or missing documentation.
-
As described at https://duet3d.com/wiki/G-code#M584:_Set_drive_mapping, when using M584 to map drives you must also specify the mapping for the drive that was previously using the driver, in this case E1. So you should have used:
M584 Z4 E3
Otherwise driver 4 is used by both Z and E1, so the settings for using it as Z may get overridden by the settings for E1.