Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Homing Y Max & Z

    Tuning and tweaking
    3
    3
    1622
    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.
    • Adamfilip
      Adamfilip last edited by

      Having trouble configuring my CoreXY machine endstops

      this is my current config

      it homes and moves properly but when it homes Y the Y position shows 0 but since its homing to Y Max it should show Y 280

      also for my Z endstop I have it plugged into E0 endstop (Z probe) but i cant get it to trigger,

      ; Configuration file for Duet WiFi
      ; executed by the firmware on start-up
      ;
      ; generated by RepRapFirmware Configuration Tool on Sun Oct 23 2016 10:30:40 GMT-0400 (Eastern Standard Time)
      
      ; 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 RepRapFirmare
      
      M667 S1 ; Select CoreXY mode
      M208 X0 Y0 Z0 S1 ; Set axis minima
      M208 X280 Y280 Z300 S0 ; Set axis maxima
      
      ; Endstops
      M574 Z0 S0 ; Define active low and unused microswitches
      M574 X1 Y1 S1 ; Reverse Microswitches
      M558 P0 X0 Y0 Z0 H5 F120 T6000 ; Set Z probe type to switch, the axes for which it is used and the probe + travel speeds
      G31 P600 X0 Y0 Z2.5 ; Set Z probe trigger value, offset and trigger height
      
      ; Drives
      M569 P0 S0 ; Drive X goes backwards
      M569 P1 S1 ; Drive Y goes forwards
      M569 P2 S0 ; Drive Z goes backwards
      M569 P3 S0 ; Drive E3D Titan goes backwards
      M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation
      M92 X200 Y200 Z2560 E418.5 ; Set steps per mm
      M566 X900 Y900 Z12 E600 ; Set maximum instantaneous speed changes (mm/min)
      M203 X9000 Y9000 Z180 E3600 ; Set maximum speeds (mm/min)
      M201 X500 Y500 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
      
      ; Heaters
      M143 S280 ; Set maximum heater temperature to 280C
      M301 H0 S1.00 P10 I0.1 D200 T0.4 W180 B30 ; Use PID on bed heater (may require further tuning)
      M305 P0 T100000 B4138 C0 R4700 L0 H0 ; Set thermistor + ADC parameters for heater 0
      M305 P1 X200
      
      ; 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
      
      ; Network
      M550 PTitanXY ; Set machine name
      M552 P0.0.0.0 S1 ; Enable network and acquire dynamic address via DHCP
      
      ; 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 H1 T45 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on
      M106 P2 S1 I0 F500 H1 T45 ; Set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned on
      
      ; Custom settings are not configured
      
      

      Here is my Z homing code

      ; homez.g
      ; called to home the Z axis
      ;
      ; generated by RepRapFirmware Configuration Tool on Sun Oct 23 2016 10:30:40 GMT-0400 (Eastern Standard Time)
      
      ; Lift Z relatively to current position
      G91
      G1 Z5 F6000
      G90
      
      ; Go to first bed probe point and home the Z axis
      G1 X15 Y15
      G30
      
      ; Uncomment the following lines to lift Z after probing
      ;G91
      ;G1 Z5 F100
      ;G90
      
      

      Here is my Y homing code

      ; homey.g
      ; called to home the Y axis
      ;
      ; generated by RepRapFirmware Configuration Tool on Sun Oct 23 2016 10:30:40 GMT-0400 (Eastern Standard Time)
      
      ; Lift Z relative to current position
      G91
      G1 Z5 F6000
      G90
      
      ; Move quickly to Y axis endstop and stop there (first pass)
      G1 Y285 F1800 S1
      
      ; Go back a few mm
      G91
      G1 Y-5 F6000
      G90
      
      ; Move slowly to X axis endstop once more (second pass)
      G1 Y285 F360 S1
      
      ; Lower Z again
      G91
      G1 Z-5 F6000
      G90
      
      
      1 Reply Last reply Reply Quote 0
      • dc42
        dc42 administrators last edited by

        Your M574 command has X1 Y1 which means low end homing switches. Use X2 Y2 if your switches are at the upper end of each axis.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        1 Reply Last reply Reply Quote 0
        • Dougal1957
          Dougal1957 last edited by

          make the second M574 line to be

          M574 X1 Y2 S1

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