HomeZ



  • why is it that my X axis goes the wrong way when i use the HomeZ but homes fine when i use the home x



  • Please post your config.g and homing files.



  • @will-baxter config.g file
    Configuration file for Duet WiFi (firmware version 1.21)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool on Sun Jan 13 2019 13:36:28 GMT+0000 (Greenwich Mean Time)

    ; General preferences
    G90 ; Send absolute coordinates...
    M83 ; ...but relative extruder moves

    ; Network
    M550 PBaxters beast ; Set machine name
    M551 Pboomboom6663 ; Set password
    M552 S1 ; Enable network
    M586 P0 S1 ; Enable HTTP
    M586 P1 S0 ; Disable FTP
    M586 P2 S0 ; Disable Telnet

    ; Drives
    M569 P0 S0 ; Drive 1 goes forwards
    M569 P1 S1 ; Drive 1 goes forwards
    M569 P2 S0 ; Drive 2 goes backwards
    M569 P3 S0 ; Drive 3 goes forwards
    M569 P4 S0 ; Drive 4 goes forwards
    M569 P5 S0 ; Drive 5 goes forwards
    M569 P6 S1 ; Drive 6 goes forwards
    M584 X0 Y1:2 Z3:4:5 E6
    M671 X390:219:0.0 Y400:10:400 S4 ; leadscrews at front left, front right and rear middle
    M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation
    M92 X80 Y79.9 Z386.5 E420 ; Set steps per mm
    M566 X900 Y900 Z12 E120 ; Set maximum instantaneous speed changes (mm/min)
    M203 X6000 Y6000 Z180 E1200 ; Set maximum speeds (mm/min)
    M201 X500 Y20 Z250 E250 ; Set accelerations (mm/s^2)
    M906 X800 Y800 Z800 E800 I30 ; Set motor currents (mA) and motor idle factor in per cent
    M84 S30 ; Set idle timeout

    ; Axis Limits
    M208 X0 Y0 Z0 S1 ; Set axis minima
    M208 X390 Y400 Z600 S0 ; Set axis maxima

    ; Endstops

    ; Z-Probe
    M574 X2 Y2 Z0 S1 ; Define active low and unused microswitches
    M558 P1 I0 R0.4 F300 X0 Y0 Z0
    G31 X0 Y0 Z-0.1 P600
    M557 X25:375 Y15:395 S50 ; Define mesh grid

    ; Heaters
    M140 H-1 ; Disable heated bed
    M305 P1 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 1
    M143 H1 S300 ; Set temperature limit for heater 1 to 260C

    ; 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 H T45 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on
    M106 P2 S1 I0 F500 H T45 ; Set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned on

    ; 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

    ; Automatic saving after power loss is not enabled

    ; Custom settings are not configured

    HomeZ.g file

    homez.g
    ; called to home the Z axis
    ;
    ; generated by RepRapFirmware Configuration Tool on Sun Jan 13 2019 13:36:28 GMT+0000 (Greenwich Mean Time)
    G91 ; relative positioning
    G1 Z5 F6000 S2 ; lift Z relative to current position
    G90 ; absolute positioning
    G1 X15 Y15 F6000 ; go to first probe point
    G30 ; home Z by probing the bed

    ; Uncomment the following lines to lift Z after probing
    ;G91 ; relative positioning
    ;G1 S2 Z5 F100 ; lift Z relative to current position
    ;G90 ; absolute positioning



  • @aidar just posted them any help would be appreciated



  • Can you post homex.g as well?



  • homex.g file
    ; homex.g
    ; called to home the X axis
    ;
    ; generated by RepRapFirmware Configuration Tool on Sun Jan 13 2019 13:36:28 GMT+0000 (Greenwich Mean Time)
    G91 ; relative positioning
    G1 Z5 F6000 S2 ; lift Z relative to current position
    G1 S1 X-395 F1800 ; move quickly to X axis endstop and stop there (first pass)
    G1 X5 F6000 ; go back a few mm
    G1 S1 X-395 F360 ; move slowly to X axis endstop once more (second pass)
    G1 Z-5 F6000 S2 ; lower Z again
    G90 ; absolute positioning



  • Do you mean it goes the wrong way when you home all? or home z?

    Can you post the rest of your homing files?

    Where are your end stops located?

    Where is your 0,0 origin position?

    When you home, does the head travel towards the origin?



  • I see from your files , that you are homing x to min end (G1 S1 X-395), but in your config x endstop is configured as max end (M574 X2 ....), so something is messed up here. If you answer to Phaedrux questions, then we can help better.



  • x axis goes the wrong way when i home all
    my end stops are located bottom left corner
    my origin is located bottom left corner
    when i home the head travels towards origin

    ; homeall.g
    ; called to home all axes
    ;
    ; generated by RepRapFirmware Configuration Tool on Sun Jan 13 2019 13:36:28 GMT+0000 (Greenwich Mean Time)
    G91 ; relative positioning
    G1 Z5 F6000 S2 ; lift Z relative to current position
    G1 S1 X395 Y405 F1800 ; move quickly to X and Y axis endstops and stop there (first pass)
    G1 X5 Y-5 F6000 ; go back a few mm
    G1 S1 X395 Y405 F360 ; move slowly to X and Y axis endstops once more (second pass)
    G90 ; absolute positioning
    G1 X60 Y60 F6000 ; go to first bed probe point and home Z
    G30 ; home Z by probing the bed

    ; Uncomment the following lines to lift Z after probing
    ;G91 ; relative positioning
    ;G1 S2 Z5 F100 ; lift Z relative to current position
    ;G90 ; absolute positioning

    ; homey.g
    ; called to home the Y axis
    ;
    ; generated by RepRapFirmware Configuration Tool on Sun Jan 13 2019 13:36:28 GMT+0000 (Greenwich Mean Time)
    G91 ; relative positioning
    G1 Z5 F6000 S2 ; lift Z relative to current position
    G1 S1 Y405 F1800 ; move quickly to Y axis endstop and stop there (first pass)
    G1 Y-5 F6000 ; go back a few mm
    G1 S1 Y405 F360 ; move slowly to Y axis endstop once more (second pass)
    G1 Z-5 F6000 S2 ; lower Z again
    G90 ; absolute positioning



  • @will-baxter said in HomeZ:

    G1 S1 X395 Y405 F1800 ; move quickly to X and Y axis endstops and stop there (first pass)

    If your end stops and origin are located at the bottom left I would expect these values to be negative rather than positive, since you want it to move towards 0.

    In your home X it moves in the negative direction, so I think that's your issue. You'd have to change the direction of the next move which pulls away from the endstop abit before going back more slowly.

    Make sense?


 

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