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

    Endstop issue - stopping delay

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    2
    2
    511
    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.
    • mamoronaundefined
      mamorona
      last edited by

      I have an endstop issue.
      I have a Makerbot clone (CTC) and have replaced the control board with a Duet WiFi.
      When clicking on XHome head moves ok; upon pressing the endstop with my finger I can see the x movement actually increases slightly, and carries on for about 7mm, then stops.
      If I leave the head to track across it crashes into the endstop.
      The endstops seem to work ok, in that LED illuminates on duet when pressed.
      I suspect I am missing something in my code!

      HOMEX.G
      ; generated by RepRapFirmware Configuration Tool on Sun Jan 14 2018 11:51:47 GMT+0000 (GMT Standard Time)
      G91 ; relative positioning
      G1 Z5 F600 ; lift Z relative to current position
      G1 S1 X-280 F400 ; move quickly to X axis endstop and stop there (first pass)
      G1 X-5 F600 ; go back a few mm
      G1 S1 X-233 F400 ; move slowly to X axis endstop once more (second pass)
      G1 Z-5 F600 ; lower Z again
      G90 ; back to absolute positioning

      CONFIG.G
      ; Configuration file for Duet WiFi (firmware version 1.20 or newer)
      ; executed by the firmware on start-up
      ;
      ; generated by RepRapFirmware Configuration Tool on Sun Jan 14 2018 11:51:46 GMT+0000 (GMT 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 Marlin
      M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; Configure automatic saving on power loss
      M208 X0 Y0 Z0 S1 ; Set axis minima
      M208 X228 Y148 Z156 S0 ; Set axis maxima

      ; Endstops
      M574 X2 Y1 S0 ; Set active low endstops
      M558 P0 H5 F120 T600 ; Disable Z probe but set dive height, probe speed and travel speed
      M557 X15:213 Y15:133 S20 ; Define mesh grid

      ; 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 ; Drive 3 goes forwards
      M569 P4 S1 ; Drive 4 goes forwards
      M350 X16 Y16 Z8 E16:16 I1 ; Configure microstepping with interpolation
      M92 X94.118 Y94.118 Z1280 E420:420 ; Set steps per mm
      M566 X900 Y900 Z12 E120:120 ; Set maximum instantaneous speed changes (mm/min)
      M203 X6000 Y6000 Z180 E1200:1200 ; Set maximum speeds (mm/min)
      M201 X500 Y20 Z250 E250:250 ; Set accelerations (mm/s^2)
      M906 X800 Y800 Z800 E800:800 I30 ; Set motor currents (mA) and motor idle factor in per cent
      M84 S30 ; Set idle timeout

      ; Heaters
      M301 H0 S1.00 P10 I0.1 D200 T0.4 W180 B30 ; Use PID on bed heater (may require further tuning)
      M305 P0 T110000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 0
      M143 H0 S120 ; Set temperature limit for heater 0 to 120C
      M305 P1 T95000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 1
      M143 H1 S270 ; Set temperature limit for heater 1 to 270C
      M305 P2 T95000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 2
      M143 H2 S270 ; Set temperature limit for heater 2 to 270C

      ; 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
      M563 P1 D1 H2 ; Define tool 1
      G10 P1 X0 Y0 Z0 ; Set tool 1 axis offsets
      G10 P1 R0 S0 ; Set initial tool 1 active and standby temperatures to 0C

      ; Network
      M550 PCTCdu ; Set machine name
      M551 Pxxxxxxx ; Set password
      M552 S1 ; Enable network
      M587 S"abcdefghijkl123" P"abcdefghijkl123" ; Configure access point. You can delete this line once connected
      M586 P0 S1 ; Enable HTTP
      M586 P1 S0 ; Disable FTP
      M586 P2 S0 ; Disable Telnet

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

      ; Custom settings
      G21
      M558 P0

      ; Miscellaneous
      M501 ; Load saved parameters from non-volatile memory

      1 Reply Last reply Reply Quote 0
      • deckingmanundefined
        deckingman
        last edited by

        One thing that leaps out at me is that you don't move away from the end stop, you move further towards it. You have this….....

        G1 S1 X-280 F400 ; move quickly to X axis endstop and stop there (first pass)
        G1 X-5 F600 ; go back a few mm
        G1 S1 X-233 F400 ; move slowly to X axis endstop once more (second pass)

        That second line should be
        G1 X5 F600

        That is to say, take out the minus sign.
        HTH

        Ian
        https://somei3deas.wordpress.com/
        https://www.youtube.com/@deckingman

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