Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Change Homing Order

    Scheduled Pinned Locked Moved
    Firmware installation
    2
    3
    537
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Gummixundefined
      Gummix
      last edited by

      Hello,
      I have a little problem with the homing of the X and Y axes.
      I have to drive first Y and then X to the end stop.
      At the moment it drives both axles at the same time and so it doesn't work with my setup.

      Thanks

      1 Reply Last reply Reply Quote 0
      • SupraGuyundefined
        SupraGuy
        last edited by

        When does it do this?

        The G code file homeall.g gives the instructions to the printer in order to home all of the axes, X, Y and Z.

        homex.g homes the X axis only. homey.g homes the Y axis only. homez.g homes the Z axis only.

        At the end of print jobs, you will often see something like

        G28 X Y

        G28 is the home command, and the X and Y are the flags to tell it to only home those axes. By convention we tend to list them in alphabetical order (X, then Y, then Z) when we do that. It will then call the appropriate gcode file to home those axes.

        It sounds though like you're using homeall.g, since you mention that it does X and Y at the same time.

        My homeall.g file looks like this:

        ; homeall.g
        ; called to home all axes
        ;
        ; generated by RepRapFirmware Configuration Tool on Thu Aug 30 2018 14:11:29 GMT-0600 (Mountain Daylight Time)
        G91                   ; relative positioning
        G1 Z5 F6000 S2        ; lift Z relative to current position
        G1 S1 X245 Y280 F3000 ; move quickly to X and Y axis endstops and stop there (first pass)
        G1 X-5 Y-5 F6000      ; go back a few mm
        G1 S1 X225 Y280 F300  ; move slowly to X and Y axis endstops once more (second pass)
        G90                   ; absolute positioning
        

        In order to change it so that it homes Y first, then homes X afterwards:

        ; homeall.g
        ; called to home all axes
        ;
        G91                   ; relative positioning
        G1 Z5 F6000 S2        ; lift Z relative to current position
        G1 S1 Y280 F3000      ; move quickly to Y axis endstop and stop there (first pass)
        G1 Y-5 F6000          ; go back a few mm
        G1 S1 Y280 F300       ; move slowly to Y axis endstop once more (second pass)
        G1 S1 X245 F3000      ; move quickly to X axis endstop and stop there (first pass)
        G1 X-5 F6000          ; go back a few mm
        G1 S1 X225 F300       ; move slowly to X axis endstop once more (second pass)
        G90                   ; absolute positioning
        

        Lead screw driven printer, powered by Duet 2 Wifi
        MPCNC powered by Duet 2 Wifi
        CoreXY printer driven by Duet 3 6HC
        LowRider CNC powered by Duet 2 Wifi

        1 Reply Last reply Reply Quote 1
        • Gummixundefined
          Gummix
          last edited by

          Hi,
          thanks i will give it a try.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA