Reactivare the end stopps for x and y only



  • Running dwc2 wifi
    Inductive bead leveling sensor
    and ball screw with 5mm pitch
    All 3endstop sw.. Do not function
    They do activate the led on the board so the issue has to be in the software. i believe the code was changes to current limiting when i uploaded the code for the inductive sensor. it changed the end sw functions. All 3 of them
    How does one reactivate 2 out of the three endstop sensors so my inductive bed sensor will continue to work. i would like y and x back on the end sw. Is anyone running current limiting on a ball screw??
    This coding is all new to me so thanks for the help



  • Can you run a ball screww off of stall insted of sw.



  • You can run any stepper off of stall, if you are willing to tune the stall.

    When you say "the code was changed" did you change firmware releases?

    Please post your config.g



  • No i loaded someons code to get my capacitive b l sensor to work thats when i believe tje tsal feature was activated and my end sw. Were deactivated.
    How can i set the stall on my y axes since i instaled the ball screw? Or would it be better to just use a sw. ?



  • Unfortunately im accessing this blogon my phone i will repost my question when i have this loaded on my laptop where i can past my gcode. Sorry about that.



  • @ziggymanpopo said in Reactivare the end stopps for x and y only:

    No i loaded someons code

    Not sure what that means. Loaded someone's firmware? Loaded someone's config.g? All of it? Part of it?



  • It was a section of cod i got off of github



  • This was almost a year ago and i apologize for my inexperienced with coding. Im learning 😊



  • ; Configuration file for Duet WiFi (firmware version 1.21)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool on Thu Sep 06 2018 21:21:12 GMT-0700 (Pacific Daylight Time)

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

    ; Network
    M550 Pe3 ; Set machine name
    M552 S1 ; Enable network
    ;*** Access point is configured manually via M587
    M586 P0 S1 ; Enable HTTP
    M586 P1 S0 ; Disable FTP
    M586 P2 S0 ; Disable Telnet

    ; Drives
    M569 P0 S0 ; Drive 0 goes forward
    M569 P1 S1 ; Drive 1 goes backwards
    M569 P2 S1 ; Drive 2 goes forwards
    M569 P3 S0 ; Drive 3 goes backwards

    M569 P3 S1 ; Drive 3 (Extruder 0) goes backwards

    M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation
    ; M92 X79.7 Y79.6 Z400.4 E96 ; Set steps per mm
    M92 X79.2 Y79.2 Z400.5 E96 ; Set steps per mm

    M566 X600 Y600 Z24 E300 ; Set maximum instantaneous speed changes (mm/min)
    M203 X30000 Y30000 Z300 E1500 ; Set maximum speeds (mm/min)
    M201 X300 Y300 Z100 E5000 ; Set accelerations (mm/s^2) was 500 you changed it to 300 for stall guard
    M906 x950 Y950 Z850 E950 I30 ; Set motor currents (mA) and motor idle factor in per cent
    M84 S300 ; Set idle timeout

    ; Axis Limits
    ; M208 X-5.5 Y-10 Z0 S1 ; Set axis minima
    ; M208 X258.5 Y246 Z260 S0 ; Set axis maxima

    M208 X0 Y0 Z0 S1 ; Set axis minima
    M208 X500 Y500 Z500 S0 ; Set axis maxima

    ; Endstops
    M574 X0 Y0 Z0 S1 ; Set endstops controlled by motor l

    ; Z-Probe
    ; M558 P5 H5 F100 T2000 ; Set Z probe type to bltouch and the dive height + speeds
    M558 P9 H5 F100 T4000 ; Set Z probe type to bltouch and the dive height + speeds
    G31 P500 X-42 Y-5 Z1.35 ; Set Z probe trigger value, offset and trigger height - is Nozzle hoger

    M557 X15:215 Y35:215 S20 ; Define mesh grid

    ; Heaters
    M305 P0 T100000 B4138 R4700 ; Set thermistor + ADC parameters for heater 0
    M143 H0 S120 ; Set temperature limit for heater 0 to 80C
    M305 P1 T100000 B4400 R4700 ; Set thermistor + ADC parameters for heater 1
    M143 H1 S280 ; Set temperature limit for heater 1 to 240C

    ; M307 H1 A245.3, C121.7, D4.0, S0.5 ; PID

    ; Fans
    ; M106 P0 S1 I0 F500 H T45 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned on
    ; M106 P1 S0 I0 F500 H-1 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned off

    M106 P0 S0 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

    ; 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

    ; BLTouch - Heaters
    M307 H3 A-1 C-1 D-1 ; Disable heater on PWM channel for BLTouch

    ; Enable Bed Leveling
    G29 S1 ; Enable Mesh Bed Leveling



  • i have an inductive sensor not a bl Touch i have a sneaky suspicion i have several code issues that need addressing such as it takes two hommings to completely home . any advice as far as code goes really helps


  • Moderator

    @ziggymanpopo said in Reactivare the end stopps for x and y only:

    ; Endstops
    M574 X0 Y0 Z0 S1 ; Set endstops controlled by motor l

    This is where your endstops are defined. See https://duet3d.dozuki.com/Wiki/Gcode#Section_M574_Set_endstop_configuration for full definition.

    'X0 Y0 Z0' means that endstops are disabled. 'S1' means they are set to active high endstop input. If you were using motor stall detection, this should be 'S3'. I'm assuming you want microswitch endstops to work again, so change this to:

     ; Endstops
    M574 X1 Y1 Z1 S1                              ; Set active high endstops
    

    This will set the X, Y and Z endstop to low end endstops (ie home to axis minimum) using active-type endstops. You may need to change your homeall.g files if it's expecting to use stall detection, though. For full details on endstops, see https://duet3d.dozuki.com/Wiki/Connecting_endstop_switches, particularly the 'testing endstop switches' at the end of that page.

    ; Z-Probe
    ; M558 P5 H5 F100 T2000 ; Set Z probe type to bltouch and the dive height + speeds
    M558 P9 H5 F100 T4000 ; Set Z probe type to bltouch and the dive height + speeds
    G31 P500 X-42 Y-5 Z1.35 ; Set Z probe trigger value, offset and trigger height - is Nozzle hoger

    ; BLTouch - Heaters
    M307 H3 A-1 C-1 D-1 ; Disable heater on PWM channel for BLTouch

    For an inductive sensor (I assume NPN) see https://duet3d.dozuki.com/Wiki/Connecting_a_Z_probe#Section_NPN_output_normally_open_inductive_or_capacitive_sensor

    You should be using M558 P5 for an inductive sensor. You don't need the M307 command (it's specifically for BLTouch).
    For testing and calibrating, see: https://duet3d.dozuki.com/Wiki/Test_and_calibrate_the_Z_probe
    You will also want to test it for accuracy and repeatability, by probing multiple times in one place, so you can tune the dive height and other parameters to get reliable readings.

    Ian



  • awesome thank you Ian.that helps tremendously i vaguely remember doing some of this about a year ago. ill see what i can clean up 🙂



  • You were correct that i need to change thing in the homall.g file all up and running
    thanks everone


Log in to reply