80 or 160??



  • I was following the Duet WiFi – Configuration walkthrough and adjust – Part 1
    when talking about the Drives they state

    Steps pr mm

    Since I just changed microstepping from 32 to 16, I need to change the line, where I used the M92 Gcode to define steps pr mm.

    My current setting is 160 steps pr mm for XY, 800 for Z and 2050 for E:

    M92 X160 Y160 Z800 E2050 ; Set steps per mm

    I’ll change that to 80 steps pr mm for XY, 400 for Z and 1025 for E

    M92 X80 Y80 Z400 E1025 ; Set steps per mm

    Now if I use 80 i get only 1/4 of the bed . If I use 160 all is well

    Is this because in that guide they are talking about a delta while I have a CoreXY?


  • administrators

    My advice us to put the M92 command(s) to set steps/mm before the M350 command to set microstepping. Set the steps/mm in the M92 commands to the correct values for 1/16 microstepping. Then when the M350 command is executed, the steps/mm will be adjusted automatically to compensate for the change in microstepping.



  • @dc42:

    My advice us to put the M92 command(s) to set steps/mm before the M350 command to set microstepping. Set the steps/mm in the M92 commands to the correct values for 1/16 microstepping. Then when the M350 command is executed, the steps/mm will be adjusted automatically to compensate for the change in microstepping.

    like this
    ;Drives
    M667 S1 ; set CoreXY mode
    M569 P0 S1 ; Drive 0 goes forwards (change to S0 to reverse it)
    M569 P1 S1 ; Drive 1 goes forwards
    M569 P2 S1 ; Drive 2 goes forwards
    M569 P3 S1 ; Drive 3 goes forwards
    M92 X160 Y160 Z4266.667 E837 ; Set axis steps/mm Set extruder steps/mm
    M350 X16 Y16 Z16 E16 I1 ; Set 16x microstepping with interpolation
    M566 X900 Y900 Z40 E120 ; Maximum jerk speeds mm/minute
    M201 X2000 Y2000 Z20 E1000 ; Accelerations (mm/s^2)
    M203 X15000 Y15000 Z250 E3600 ; Maximum speeds (mm/min)
    M906 X1200 Y1200 Z1500 E1200 I30 ; Set motor currents (mA)extruder current just enough will click not strip
    M84 S30 ; Set idle timeout

    Also in the giude they used M555 P1 for RepRafirmare while when I used the configratir by default is was Marlin which by you would be best?


  • administrators

    Yes. Your XY steps/mm is probably 80 if your motors are 1.8deg/step, or 160 if they are 0.9deg/step.



  • @dc42:

    Yes. YourXY steps/mm is probably 80 if your motors are 1.8deg/step, or 160 if they are 0.9deg/step.

    Yes I have 0.96 degree motors.

    Quick question, my extruder is behaving in a strange manner If like I have above if I say load filament it turns in the correct distance and the same fie unload.
    but when I say extrude 5 mm it turns in the wrong direction a spits out the filament.
    Now if I use S0 the the extrude turns ion the correct manner but load and unload turn in the wrong direction.
    Also they turn for a long time like seconds almost and the E motors off button does not stop them.


  • administrators

    @Synapsis:

    Quick question, my extruder is behaving in a strange manner If like I have above if I say load filament it turns in the correct distance and the same fie unload.
    but when I say extrude 5 mm it turns in the wrong direction a spits out the filament.
    Now if I use S0 the the extrude turns ion the correct manner but load and unload turn in the wrong direction.
    Also they turn for a long time like seconds almost and the E motors off button does not stop them.

    What commands or macros are you using for load and unload filament?



  • @dc42:

    @Synapsis:

    Quick question, my extruder is behaving in a strange manner If like I have above if I say load filament it turns in the correct distance and the same fie unload.
    but when I say extrude 5 mm it turns in the wrong direction a spits out the filament.
    Now if I use S0 the the extrude turns ion the correct manner but load and unload turn in the wrong direction.
    Also they turn for a long time like seconds almost and the E motors off button does not stop them.

    What commands or macros are you using for load and unload filament?

    The ones in the web control interface. Now I trieds to see what happemed in a print and it dose not turn at all.

    ;General preferences
    M111 S0 ; Debug off
    G21 ; Work in millimetres
    G90 ; Send absolute coordinates…
    M555 P2 ; Set output to look like Marlinp
    ;M83 ; ...but relative extruder moves
    M208 X399 Y360 Z400 S0 ; set axis maxima (adjust to suit your machine)
    M208 X0 Y0 Z0 S1 ; set axis minima (adjust to make X=0 and Y=0 the edges of the bed)

    ;Wifi
    M550 P3DSteve ; Machine name (can be anything you like)
    M551 P3d181 ; Machine password (used for FTP connections)
    M540 P0xBE:0xEF:0xDE:0xAD:0xFE:0xED ; MAC Address
    ;*** Adjust the IP address and gateway in the following 2 lines to suit your network
    M552 P0.0.0.0 ; IP address (0 = use DHCP)
    M554 P192.168.0.1 ; Gateway
    M553 P255.255.255.0 ; Netmask
    M555 P2 ; Set output to look like Marlin
    M575 P1 B57600 S1 ; Comms parameters for PanelDue
    M552 S1 ;start wifi

    ;Endstops ; If you use an endstop switch for Z homing, change Z0 to Z1 in the following line,
    and see also M558 command later in this file
    M574 X2 Y2 Z2 S1 ; set endstop configuration (X, Y, Z endstops only, at low end XY, high Z, active low)
    ; Z probe
    M558 P1 R1.0 H10 F200 T1500 X0 Y0 Z0 ;digital piezo sensor, output falls on contact, probing speed, not used to home axes
    G31 Z2.03 P500 ;sensor is nozzle and debounce value.

    ;Mesh Levelling
    M557 X20:385 Y15:355 S50 ;define mesh
    M376 H10 ;taper off after 10mm
    G29 S1 ;load mesh

    ;Drives
    M667 S1 ; set CoreXY mode
    M569 P0 S1 ; Drive 0 goes forwards (change to S0 to reverse it)
    M569 P1 S1 ; Drive 1 goes forwards
    M569 P2 S1 ; Drive 2 goes forwards
    M569 P3 S0 ; Drive 3 goes forwards
    M92 X160 Y160 Z4266.667 E837 ; Set axis steps/mm Set extruder steps/mm
    M350 X16 Y16 Z16 E16 I1 ; Set 16x microstepping with interpolation
    M566 X900 Y900 Z40 E120 ; Maximum jerk speeds mm/minute
    M201 X2000 Y2000 Z20 E1000 ; Accelerations (mm/s^2)
    M203 X15000 Y15000 Z250 E3600 ; Maximum speeds (mm/min)
    M906 X1200 Y1200 Z1500 E1200 I30 ; Set motor currents (mA)extruder current just enough will click not strip
    M84 S30 ; Set idle timeout

    ; The following M557 commands are not needed if you are using a bed.g file to perform bed compensation
    ;*** Adjust the XY coordinates in the following M557 commands to suit your build and the position of the Z probe
    ;M557 P0 X60 Y0 ; Four...
    ;M557 P1 X60 Y165 ; ...probe points...
    ;M557 P2 X222 Y165 ; ...for bed...
    ;M557 P3 X222 Y0 ; ...levelling
    ;M557 P4 X141 Y82.5 ; 5th probe point for levelling

    ; Heaters
    M305 P0 T100000 B3950 C0 R4700 ; Set thermistor + ADC parameters for heater 0
    M143 H0 S150 ; Set temperature limit for heater 0 to 120C
    M305 P1 T100000 B4725 C7.060000e-8 R4700 ; Set thermistor + ADC parameters for heater 1
    M143 H1 S285 ; Set temperature limit for heater 1 to 285C
    ;M305 P103 X3 S"TEMP2" T100000 B6725 C0 R4700

    ; Tools
    M563 P0 D0 H1 ; 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


  • administrators

    Have you selected a tool (e.,g. by sending command T0) before printing or trying to extrude?



  • Correction it does turn in the print only very slowly.

    No when i try the buttons I do not send any commands.

    Ok if select S1 when i do a print it turns in the right direction, its the button on the interface that are not working as they should.


  • administrators

    Let me get this clear.

    • If you select as tool (e.g. T0) and do a print, it extrudes correctly;

    • If you select the same tool T0 and then press the Extrude button on the web interface, it retracts filament instead of extruding it; and if you press Retract than it extrudes filament instead of retracting it.

    Is that what you are saying?


Log in to reply