Need help to define Z max endstop
-
Hi guys,
I want to add an endstop to m'y coreXY printer to detect when the bed is down. I modify the config.g file with :; Endstops
M574 X1 Y1 S3 ; set endstop to use motor stall
M574 Z2 S0 ; Endstop plateau en bas
When I press the Switch the led react but the bed continue to going down... Any Idea ?
Thanks
-
@olivier said in Need help to define Z max endstop:
When I press the Switch the led react but the bed continue to going down... Any Idea ?
the bed will only stop on movements with the parameter S1
-
Ok I will try, thanks
-
It's the same problem ... The bed not stop going down when I press the Switch.
-
post your homez script
-
; homez.g
; called to home the Z axis
;
; generated by RepRapFirmware Configuration Tool on Tue Oct 02 2018 19:18:29 GMT+0200 (heure d’été d’Europe centrale)
G91 ; relative positioning
G1 Z10 F2000 S2 ; lift Z relative to current position
G90 ; absolute positioning
G1 X140 Y140 F2000 S2 ; go to first probe point
M98 Pdeployprobe.g
G30 ; home Z by probing the bed
M98 Pretractprobe.g; Uncomment the following lines to lift Z after probing
G91 ; relative positioning
G1 S2 Z10 F2000 ; lift Z relative to current position
G90 ; absolute positioning -
that script is set up to use a probe to homez not the endstop at max.
-
I have a bltouch, but I want also add a switch to lower the bed at the end of the print (like ultimaker)
-
you can either have a probe or an endstop, not both.
see
https://duet3d.dozuki.com/Wiki/Gcode#Section_M574_Set_endstop_configurationSnnn Endstop type: 0 = active low endstop input, 1 = active high endstop input, 2 = Z probe, 3 = motor load detection
-
Ok thank you. I will find another solution.
Thanks. -
what are you trying to achieve?
-
Hypercube evolution
-
what are you trying to achieve with the z max endstop?
-
@olivier Rather than using a switch, if you just want to lower the bed then send it to that specific position at the end of the print: G1 Zzzz Fnnnn
You don't need a switch because the printer knows where Z is at the end of the print.
-
Hi @T3P3Tony ,
Yes but I would like to add a user macro "down the bed" without homing (for exemple after a power failure).Maybe it's possible with stall detection ?
-
@olivier It may be possible with stall detection. but if you just want a macro and you have a switch then just write the macro to move and stop when the switch is sensed, wrap the movement in a line to configure that switch as the Z endstop and then configure it back to the probe after the movement has finished.
-
I tryed to do that but without good result,
Could you just write this 2 or 3 lines ? Thank you for your help. -
@olivier If you determine the Z axis setting to use a switch at Z max (i think you have already done that) then the macro would be something like:
Z_Max_home.g macro in /macros/
M574 Z2 S0
G1 Z300 F<something sensible> H1
M574 <whatever you have in your config.g to setup for the BL touch>Note i have not tried this so you will need to experiment a bit and have your hand on the power button as things move!
-
@t3p3tony said in Need help to define Z max endstop:
M574 Z2 S0
Bed going down but don't stop when I press the switch. The endstop LED react correctly
-
@olivier
add S1 to the G1 command