Converting From X Endstop On PCB to Simple Micro Switch
-
Duet Wifi( early model) running RRF3.4. 2 outer poles on micro switch wired to 2 outer poles on terminal of the board. Switch is showing triggered, but it's not and deleting the exclamation point from the M574 isn't having any effect. What am I missing? Here's the config.g
; Configuration file for Duet WiFi (firmware version 3.3)
; executed by the firmware on start-up
;
; generated by RepRapFirmware Configuration Tool v3.3.10 on Mon Jan 24 2022 20:50:56 GMT-0500 (Eastern Standard Time); General preferences
G90 ; send absolute coordinates...
M83 ; ...but relative extruder moves
M550 P"CoreXY 1" ; set printer name
M669 K1 ; select CoreXY mode; Network
M552 S1 ; enable network
M586 P0 S1 ; enable HTTP
M586 P1 S0 ; disable FTP
M586 P2 S0 ; disable Telnet; Drives
M569 P0 S0 ; physical drive 0 goes forwards
M569 P1 S0 ; physical drive 1 goes forwards
M569 P2 S0 ; physical drive 2 goes forwards
M569 P3 S0 ; physical drive 3 goes forwards
M584 X0 Y1 Z2 E3 ; set drive mapping
M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation
M92 X80.00 Y80.00 Z400.00 E852 ; set steps per mm
M566 X900.00 Y900.00 Z60.00 E120.00 ; set maximum instantaneous speed changes (mm/min)
M203 X6000.00 Y6000.00 Z900.00 E1200.00 ; set maximum speeds (mm/min)
M201 X500.00 Y500.00 Z20.00 E250.00 ; set accelerations (mm/s^2)
M906 X800 Y800 Z800 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 X320 Y185 Z300 S0 ; set axis maxima; Endstops
M574 X1 S1 P"xstop" ; configure switch-type (e.g. microswitch) endstop for low end on X via pin xstop
M574 Y2 S1 P"!ystop" ; configure switch-type (e.g. microswitch) endstop for high end on Y via pin ystop
M574 X1 Y2 S1 ; X home to min. Y home to max. Normally Closed limit switches.
M574 Z1 S2 ; Define Z to use Probe. Home to Min; Z-Probe
M950 S0 C"exp.heater3" ; create servo pin 0 for BLTouch
M558 P9 C"^zprobe.in" H5 F120 T6000
G31 P500 X-41.8 Y32.2 Z2.2
M557 X10:320 Y0:190 S50 ; define mesh grid; Heaters
M308 S0 P"bedtemp" Y"thermistor" T100000 B4138 ; 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 R0.495 K0.404:0.000 D4.40 E1.35 S1.00 B0; disable 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"e0temp" Y"thermistor" T100000 B4138 ; configure sensor 1 as thermistor on pin e0temp
M950 H1 C"e0heat" T1 ; create nozzle heater output on e0heat and map it to sensor 1
M307 H1 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit
M143 H1 S280 ; set temperature limit for heater 1 to 280C; Fans
M950 F0 C"fan0" Q500 ; create fan 0 on pin fan0 and set its frequency
M106 P0 S0 H-1 ; set fan 0 value. Thermostatic control is turned off
M950 F1 C"fan1" Q500 ; create fan 1 on pin fan1 and set its frequency
M106 P1 S1 H1 T45 ; set fan 1 value. Thermostatic control is turned on; Tools
M563 P0 D0 H1 F0 ; 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; Custom settings are not defined
M501 -
For the sake of a sanity check and you take a photo of the switch and the board endstop port?
Is there perhaps a solder bridge or stray wire making contact?
-
-
I would check the wires for continuity.
-
@gbusy24 Pushing the switch by hand, it goes to untriggered.
-
@phaedrux Okay.
-
@gbusy24
Did you also use the two outer pins on the microswitch ?
Are there symbols for the pin assignment on the microswitch housing ?A photo of the microswitch pins might be helpful.
Google Translate
----- Original Text -----Hast Du bei dem Microschalter auch die beiden äußeren Pins genommen ?
Stehen am Gehäuse des Microschalters Symbole für die Pinbelegung ?Ein Foto von den Microschalter Pins wäre eventuell hilfreich.
-
In my opinion you don't need the following line.
M574 X1 Y2 S1 ; X home to min. Y home to max. Normally Closed limit switches.
To test it, put a ; in front of it and restart the printer and test whether it works.Google Translate
----- Original Text -----Meiner Meinung nach brauchst Du folgende Zeile nicht.
M574 X1 Y2 S1 ; X home to min. Y home to max. Normally Closed limit switches.
Mach dort zum testen einemal ein ; davor und starte den Drucker neu und teste ob es dann geht. -
@günter-jibben
-
@günter-jibben I just tried that and it didn't help.
-
@gbusy24
Too bad it didn't work with the ; before the command line.
But I still think this command line is unnecessary, but the moderator can tell you more about it, he is more familiar with it because it is his daily job and he knows the various configurations.
I don't have the line and I couldn't find it anywhere in the documentation.
mine looks like this...; Endstops M574 X1 P"!xstop" ; configure unsupported switch-type endstop for low end on X via pin xstop M574 Y1 S1 P"ystop" ; configure switch-type (e.g. microswitch) endstop for low end on Y via pin ystop M574 Z1 P"!zstop+!e0stop" ; configure unsupported switch-type endstop for low end on Z via pin null
On the Z-axis (2 endstops) and on the Y-axis I have self-made endstops that work with a HAL-Sensor and a magnet that I can adjust.
I still have the original endstop microswitch on the Y-axis, but with an LED and three cables.You should use the two outer pins on the microswitch, i.e. C and NC
C is the input and NC and NO are the outputs.
NO = Normally Open
NC = Normally closedGoogle Translate
----- Original Text -----Schade das es nicht funktioniert hat mit dem ; vor der Kommandozeile.
Ich glaube aber immer noch, diese Kommandozeile ist unnötig, aber dazu kann Dir der Moderator mehr sagen, der kennt sich damit besser aus weil es sein täglicher Job ist und er die verschiedensten Konfigurationen kennt.
Bei mir ist die Zeile nicht vorhanden und in der Dokumentation konnte ich sie auch nirgends finden.
Meine sieht so aus...; Endstops M574 X1 P"!xstop" ; configure unsupported switch-type endstop for low end on X via pin xstop M574 Y1 S1 P"ystop" ; configure switch-type (e.g. microswitch) endstop for low end on Y via pin ystop M574 Z1 P"!zstop+!e0stop" ; configure unsupported switch-type endstop for low end on Z via pin null
An der Z-Achse (2 Endstops) und an der Y-Achse habe ich selbstgebaute Endstops die mit einem HAL-Sensor und einem Magneten funktionieren den ich justieren kann.
An der Y-Achse habe ich noch den Original Microschalter Endstop, aber mit LED und drei Kabeln.An dem Microschalter solltest Du die beiden äußeren Pins nutze, also C und NC
C ist der Eingang und NC und NO sind die Ausgänge.
NO = Normal Offen
NC = Normal geschlossen