G0/G1 H1 commands not executing in homeu.g



  • I am trying to set up my machine with independent lifting tools. At first I could not home any axis as I would keep receiving and insufficient axis homed error, which I found ironic, which I fixed by adding M564 H0 to the config file. now my x and y axis home just fine but I cannot home the u or v axis as it ignores G1 H1 and G1 H3 commands and only executes G1 H2 commands.

    Here are my config.g and homeu.g files. hopefully you guys can see where i went wrong.

    ; Configuration file for Duet WiFi (firmware version 1.19.2)
    ; executed by the firmware on start-up
    ;

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;;; GENERAL INFORMATION ;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    ;This config file corresponds to the 3DP with custom lifting extruders
    ;Author T.VANDER PAS
    ;Date: 10/26/2019
    ;Revision: 1A
    ;Revision 1: original release alpha

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;;; 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

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;;; ENDSTOPS ;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    M574 X1 Y1 Z1 S0 ; Define active low and unused microswitches
    M574 U1 V2 S3 ; Define motor load detection as Min endstop for U and V axis
    M574 E0 S0 ; Define E0 endstop active low for filament sensor
    M915 P0 S0 F0 H200 R0 ; Define Stall detection parameters for U axis
    M915 P1 S0 F0 H200 R0 ; Define Stall detection parameters for V axis

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;;; BLTouch Bed Probe ;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    M307 H6 A-1 C-1 D-1 ; Set Heater 6 as servo pin for BLTouch
    M558 P6 X0 Y0 Z1 H5 F120 T6000 ; Set Z probe type to unmodulated, the axes for which it is used and the probe + travel speeds
    G31 P100 X0 Y0 Z0.00 ; Set Z probe trigger value, offset and trigger height

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;;; 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 ; left extruder goes forwards
    M569 P4 S0 ; right extruder goes backwards
    M569 P5 S0 T2 ; 2 microsecond minimum step pulse width on x-axis
    M569 P6 S1 T2 ; 2 microsecond minimum step pulse width on y-axis
    M569 P7 S0 ; Drive 7 goes backwards
    M584 X5 Y6 Z7 U1 V0 E3:4 ; Apply custom drive mapping (X=Drive5, Y=Drive6, Z=Drive7, U=X-Stepper, V=Y-Stepper, E3=Extruder0, E4-Extruder1 )
    M208 X0 Y0 Z0 U0 V0 S1 ; Set axis min travel
    M208 X1000 Y1000 Z550 U50 V50 ; Set axis max travel
    M350 X16 Y16 Z16 U16 V16 E16:16 I1 ; Configure microstepping with interpolation
    M92 X160 Y160 Z2000 U320 V320 E450:450 ; Set steps per mm
    M566 X900 Y900 Z12 U6 V6 E120:120 ; Set maximum instantaneous speed changes (mm/min)
    M203 X12000 Y12000 Z180 U600 V600 E1200:1200 ; Set maximum speeds (mm/min)
    M201 X2000 Y2000 Z250 U12 V12 E250:250 ; Set accelerations (mm/s^2)
    M906 X800 Y800 Z800 U1200 V1200 E1200:1200 I30 ; Set motor currents (mA) and motor idle factor in percent
    M84 S30 ; Set idle timeout

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;;; HEATERS ;;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    M143 S300 ; Set maximum heater temperature to 300C
    M143 H0 S150 ; set max bed temp to 150C
    M301 H0 S1.00 P10 I0.1 D200 T0.4 W180 B30 ; Use PID on bed heater(may require further tuning)
    M301 H1 S1.0 P10 I0 D100 T0.4 W180 B30 ; Use PID on extruder1 (may require further tuning)
    M301 H2 S1.0 P10 I0 D100 T0.4 W180 B30 ; Use PID on extruder2 (may require further tuning)
    M305 P0 T47500 B3988 C0 R4700 ; Set thermistor + ADC parameters for heater 0
    M305 P1 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 1
    M305 P2 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 2

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;;; TOOLS ;;;;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    M563 P0 D0 H1 ; Define tool 0
    G10 P0 X0 Y0 ; Set tool 0 axis offsets
    G10 P0 R0 S0 ; Set initial tool 0 active and standby temperatures to 0C
    M563 P1 D1 H2 ; Define tool 1
    G10 P1 X0 Y23.5 ; Set tool 1 axis offsets
    G10 P1 R0 S0 ; Set initial tool 1 active and standby temperatures to 0C

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;;; NETWORK ;;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    M550 P3DP1 ; Set machine name
    M551 P1103 ; Set password
    M552 S1 P10.0.0.8 ; Enable network and acquire dynamic address via DHCP

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;;; FANS ;;;;;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

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

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;;; CUSTOM SETTINGS ;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    M106 P0 S0 ; Turn fan off on start up
    M280 P7 S60 I1 ; Clear Bed Probe Errors
    M564 H0 ; Allow axis movement without homing
    M552 S1 ; Enable networking

    ;''' Home U at the low end of the axis'''
    M400 ;make sure everything has stopped
    M913 U50 ;reduce motor current by 50%
    G91 ;relative motion
    G1 Z4 F200 ;move Z up 4mm
    G1 H1 U-1000 F600 ;send U to Home
    G1 U4 F600 S2 ;lift U 4mm
    G1 U-10 H1 ;slowly home U
    G1 Z-4 F200 ;move Z back to beginning position
    G90 ;absolute position



  • You have defined your endstops and Probe before the drive mapping M584. See the 'Order dependence' section of M584:

    M584 must come earlier in config.g than any M350 and M906 commands. If it creates new axes, it must also be earlier than any M92, M201, M203, M208, M350, M566, M574 , M667 and M669 commands.

    Move the 'Drives' section to before 'Endstops'.

    Ian



  • Its funny how easy it is to overlook that, that seems to fix the issue for now as my u axis is now homing correctly. I guess this goes to show what happens when your creating config files super late at night lol.

    Thank you very much @droftarts

    Cheers 🙂



  • @R3D No worries, I'm constantly caught out by this one! But then it's one of the first things I look for in non-working config.g files, now.

    Ian



  • @droftarts Well it will definitely be one of my first places to check from now on XD


Log in to reply