Reverse Endstop Trigger
-
Hi all, I need to change my endstops to trigger once pressed, not to be triggered when in steady state. I have tried a couple things but with no luck. I even tried changing some commands in source code and no luck either. Any help would be appreciated. The M119 Command shows the X-Axis as not triggered but it is currently presses down. The rest is not pressed but triggered.
m119
Endstops - X: not stopped, Y: at min stop, Z: at max stop, Z probe: at min stop; Configuration file for Duet Maestro (firmware version 3.3) ; executed by the firmware on start-up ; ; generated by RepRapFirmware Configuration Tool v3.4.0 on Thu Jan 25 2024 18:26:57 GMT-0800 (Pacific Standard Time) ; General preferences G90 ; send absolute coordinates... M83 ; ...but relative extruder moves M550 P"Promega" ; set printer name M669 K1 ; select CoreXY mode ; Network M552 P0.0.0.0 S1 ; enable network and acquire dynamic address via DHCP M586 P0 S1 ; enable HTTP M586 P1 S0 ; disable FTP M586 P2 S0 ; disable Telnet ; Drives M569 P0 S1 D3 V0 ; physical drive 0 goes backwards M569 P1 S0 D3 V0 ; physical drive 1 goes forwards M569 P2 S1 D3 V0 ; physical drive 2 goes forwards M569 P3 S0 D3 V800 ; physical drive 3 goes forwards M584 X0 Y1 Z2 E3 ; set drive mapping M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation M92 X79.80 Y79.80 Z282.70 E476.50 ; set steps per mm M566 X6000.00 Y6000.00 Z600.00 E3600.00 ; set maximum instantaneous speed changes (mm/min) M203 X540000.00 Y540000.00 Z72000.00 E300000.00 ; set maximum speeds (mm/min) M201 X3000.00 Y3000.00 Z15.00 E150.00 ; set accelerations (mm/s^2) M906 X680 Y680 Z680 E1200 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 X350 Y350 Z370 S0 ; set axis maxima ; Endstops M574 X1 S1 P"xstop" ; configure switch-type (e.g. microswitch) endstop for high end on X via pin xstop M574 Y1 S1 P"ystop" ; configure switch-type (e.g. microswitch) endstop for high end on Y via pin ystop M574 Z2 S1 P"zstop" ; configure switch-type (e.g. microswitch) endstop for high end on Z via pin zstop ; Z-Probe M558 P0 H5 F120 T6000 ; disable Z probe but set dive height, probe speed and travel speed M557 X15:215 Y15:195 S10 ; define mesh grid ; Heaters M308 S0 P"bedtemp" Y"thermistor" T100000 B4138 A"Bed" ; configure sensor 0 as thermistor on pin bedtemp M950 H0 C"bedheat" T0 ; create bed heater output on bedheat and map it to sensor 0 M307 H0 B1 S1.00 ; enable bang-bang mode for the bed heater and set PWM limit M140 H0 ; map heated bed to heater 0 M143 H0 S120 ; set temperature limit for heater 0 to 120C M308 S1 P"e1temp" Y"PT1000" A"Hotend" ;Pt1000 located in right side of hot block M950 H1 C"e0heat+e1heat" T1 ;2 Heaters wired to separate connectors but treated as a single logical heater M143 H1 S310 ; set temperature limit for heater 2 to 310C ; Fans ; Tools M563 P0 D0 H1 S"Mosquito Magnum+" F1 ;Define Mosquito Magnum+ Tool T0 ;Set tool 0 as active tool G10 P0 S0 R0 ;Set tool operating and standby temperatures ; Custom settings are not defined ; Miscellaneous M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss T1 ; select first tool
; homeall.g ; called to home all axes ; ; generated by RepRapFirmware Configuration Tool v3.4.0 on Thu Jan 25 2024 18:26:57 GMT-0800 (Pacific Standard Time) M564 H0 S0 G91 ; relative positioning G1 H0 Z10 F750 ; lift Z relative to current position G1 H1 X355 Y355 F1200 ; move quickly to X or Y endstop and stop there (first pass) G1 H1 X355 ; home X axis G1 H1 Y355 ; home Y axis G1 X-5 Y-5 F1200 ; go back a few mm G1 H1 X355 F120 ; move slowly to X axis endstop once more (second pass) G1 H1 Y355 ; then move slowly to Y axis endstop G1 H1 Z375 F120 ; move Z up stopping at the endstop G90 ; absolute positioning G92 Z370 ; set Z position to axis maximum (you may want to adjust this) M564 H1 S1 ; Uncomment the following lines to lift Z after probing ;G91 ; relative positioning ;G1 Z5 F100 ; lift Z relative to current position ;G90 ; absolute positioning
-
@milosss add a ! to the pin name for the endstop you want to invert
-
@jay_s_uk like M574 X1 S1 !P"xstop" ?
-
@milosss
M574 X1 S1 P"!xstop"
-
@jay_s_uk Worked perfectly. Thanks
-
-