Endstop switches doesnt work
-
activate the end stop then send M119 to the duet and it will tell you its status.
And as said we need to see how you have configured the end stops in the config. g
the g code that deals with configuration of the end stops is M574.If you need info on how to set up the end stops that is available on dozuki
you can also physically test the end stops are doing what they are supposed to using a multi meter set to continuity
-
; Configuration file for Duet WiFi (firmware version 2.xx)
; executed by the firmware on start-up
;
; generated by RepRapFirmware Configuration Tool v2.0.0 on Thu Sep 05 2019 11:57:45 GMT+0200 (Mitteleuropäische Sommerzeit); General preferences
G90 ; send absolute coordinates...
M83 ; ...but relative extruder moves
M550 P"Cinemucker" ; set printer name
; automatic saving on power loss is not configured; Drives
M569 P0 S1 ; physical drive 0 goes forwards
M569 P1 S1 ; physical drive 1 goes forwards
M569 P2 S0 ; physical drive 2 goes backwards
M569 P3 S1 ; physical drive 3 goes forwards
M584 X0 Y1 Z2 E3 ; set drive mapping
M350 Z16 I0 ; configure microstepping without interpolation
M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation
M92 X160.00 Y160.00 Z800.00 E458.81 ; set steps per mm
M566 X900.00 Y900.00 Z12.00 E120.00 ; set maximum instantaneous speed changes (mm/min)
M203 X6000.00 Y6000.00 Z180.00 E1200.00 ; set maximum speeds (mm/min)
M201 X500.00 Y500.00 Z20.00 E250.00 ; set accelerations (mm/s^2)
M906 X1500 Y1500 Z1500 E1000 ; set motor currents (mA)
M84 S0 ; Disable motor idle current reduction; Axis Limits
M208 X0 Y0 Z0 S1 ; set axis minima
M208 X300 Y400 Z400 S0 ; set axis maxima; Endstops
M574 X1 Y1 Z1 S1 ; set active high endstops
M574 Z1 S3 ; set endstops controlled by motor stall detection; Z-Probe
M574 Z1 S2 ; set endstops controlled by probe
M558 P0 H0 F300 T3000 ; disable Z probe but set dive height, probe speed and travel speed
M557 X25:215 Y25:195 S20 ; define mesh grid; Heaters
M307 H0 B0 S1.00 ; disable bang-bang mode for the bed heater and set PWM limit
M305 P0 T100000 B4138 R4700 ; set thermistor + ADC parameters for heater 0
M143 H0 S120 ; set temperature limit for heater 0 to 120C
M305 P1 T100000 B4138 R4700 ; set thermistor + ADC parameters for heater 1
M143 H1 S300 ; set temperature limit for heater 1 to 300C; Fans
M106 P0 S0 I0 F500 H-1 ; set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off; Tools
M563 P0 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; Network
M552 P192.168.1.36 S1 ; enable network and acquire dynamic address via DHCP
M586 P0 S1 ; enable HTTP
M586 P1 S0 ; disable FTP
M586 P2 S0 ; disable Telnet; Custom settings are not defined
; Miscellaneous
M501 ; load saved parameters from non-volatile memory -
I have wired the right, because when i measure on the plug, its right.
-
@goodchrhere said in Endstop switches doesnt work:
M574 Z1 S2 ; set endstops controlled by probe
M558 P0 H0 F300 T3000 ; disable Z probe but set dive height, probe speed and travel speedif you plugged it into the z endstop that would not work because you have disabled it.
M305 P0 T100000 B4138 R4700 ; set thermistor + ADC parameters for heater 0
M305 P1 T100000 B4138 R4700 ; set thermistor + ADC parameters for heater 1B4138 is the default and most likely wrong for your thermistors.
-
@goodchrhere said in Endstop switches doesnt work:
Does this type of endstop doesnt work?
Yes, its a common SPDT switch, that can be used as both normally closed and normally open switch.
@goodchrhere said in Endstop switches doesnt work:
I have wired the right, because when i measure on the plug, its right.
elaborate? and ref Veti's comment, which axis are you having trouble with?
Which board do you have, the Duet2 Ethernet and Duet2 Wifi has LEDs to indicate the state of the endstops, makes for easy diagnostic. The Duet2 Maestro does not have these LEDs.
But M119 will print the status of the endstops, please run
M119
before activating the enstop, and again while the endstop is active. -
Thermistor are right, the thermistor from bed and the thermistor from extruder 1 are in function.
i have a normal endstop switch like the first post for all 3 axes. for x and for y and for z.
it doesn't work on all axes.
I know about normaly open and normaly closed.
i tested both, with changes the wires in the plug, and change the firmware from active high to active low.I have a Duet 2 Ethernet with firmware version 2.02
I can test the M119 in yat in the evening, when i'm back at home.
-
faster to look at the endstop leds than to use m119, but you can also use m119 in the web interface and g-code console instead of the serial terminal.
but as veti points out, there are multiple lines configuring the z endstop, ending up with it disabled. so only x and y will work as the config is now.
-
okay, i will look to the endstops leds.
okay, i will change the configuring for the z endstop.Thanks for your help.
-
Check your wiring. See https://duet3d.dozuki.com/Wiki/Connecting_endstop_switches#Section_Microswitch
Connect the switch between GND and STP (the outer 2 pins of the 3-pin connector). Note: this is not the same as on RAMPS.
We recommend you use the normally-closed contacts of the microswitches, which are generally the outside two connections on the microswitch, and set the signal polarity to active high (S1) in the M574 command.`See wiring diagram: https://d17kynu4zpq5hy.cloudfront.net/igi/duet3d/4k56ZjaaAHrTJI6Z.huge
As others have pointed out, only X and Y endstops will work with your current config.g
Ian
-
@bearer said in Endstop switches doesnt work:
faster to look at the endstop leds than to use m119,
That only works if you can see the board when you press the switch, some put the boards in boxes and cant see the led's
-
@goodchrhere said in Endstop switches doesnt work:
Thermistor are right, the thermistor from bed and the thermistor from extruder 1 are in function.
they may be displaying a temperature, but when the temperature is hotter than room temperature it will display incorrect results.
-
@droftarts i checked my wiring 3 times. i measured with a multimeter on the plug, and ih have signal or no signal, but the duet doesn't recognize the signal. i know that only work in x and y because my config.
But x and y doesn't work. -
@goodchrhere said in Endstop switches doesnt work:
M574 X1 Y1 S1can you manually put this command in the console and try again?
post the actual output of M119 before and after the closing the endstop -
@veti i will do that today or tomorrow evening.
-
Looking at https://d17kynu4zpq5hy.cloudfront.net/igi/duet3d/4k56ZjaaAHrTJI6Z.huge
... where exactly did you plug in the two wires coming from the endstop switches? -
@themelle i did that, i checked the wiring 3 times.
-
@themelle said in Endstop switches doesnt work:
Looking at https://d17kynu4zpq5hy.cloudfront.net/igi/duet3d/4k56ZjaaAHrTJI6Z.huge
... where exactly did you plug in the two wires coming from the endstop switches?This.. we need pictures of where the switches are plugged in to the switches and the duet. And dont take it that we are saying you are wrong we are only trying to help you, so for us to do that we need to see if there is anything wrong you might have missed.
-
@calvinx okay i will make photos today or tomorrow evening.
thanks for your help -
okay, i dont know, i had new wired and x and y works. i'm an idiot xD
What i have to chance in my config, to active z with the same switch? -
@goodchrhere I'm glad you got it working!
To have Z axis behaving as X and Y you should just remove the linesM574 Z1 S3 ; set endstops controlled by motor stall detection ; Z-Probe M574 Z1 S2 ; set endstops controlled by probe from
config.g
-
I‘t works fine, thanks for your helps!