@jay_s_uk Thanks works like a charm. For any interested, I reconfigure the endstop with as M581 X T2 S1 in the homex.g macro. The only thing I also need to do of course is to make sure to disable it at the beginning of the homex.g with M581 T2 P-1 so that I can press home twice if I want to.
Best posts made by D.J. Klomp
-
RE: Configuring limit switches or changing default H0
Latest posts made by D.J. Klomp
-
RE: Stop movement immediatly
@oliof Indeed a bit hacky but might work, I will try this.
-
RE: Stop movement immediatly
@T3P3Tony Yeah this is a workaround that I am familiar with and is already enforced, but that only works for printed files. I do not like it that much since I need to set limitations to what my colleagues develop and it makes the file much larger than they have to be. One problem is that it does not work for manual movement which I would also like.
-
Stop movement immediatly
I want my endstop configured to stop movement immediatly in all case, whether I manually move it, or move it when running a file or macro.
After homing I reconfigure my endstops with: M581 X T2 S1 ;Reconfigure endstop to be used as limit switches (triggers). Triggers macro trigger2.g
In trigger2.g I tried all options:
;M291 P"X limit switch triggered" R"trigger2" S0 ;M0 ;Stop after buffer is completed ;M25 ;Pause print from SD card. ;M1 ;Sleep after buffer is completed ;M226 ;Gcode initiated pause M18 X ;Disable stepper motor, and resets homing does not work immideatly ;M84 X ;Stops the x motor, idle hold and resets homing, Does not works immediatly ;M112 ;Emergency stop, everyhting shuts down immediatly
But only M112 reacts instantly, and that is not what I want.
M18 X kind of does what I want, but I need the axis to stop, I do not want to reinitialize homing.Any suggestions?
-
RE: Configuring limit switches or changing default H0
@jay_s_uk Thanks works like a charm. For any interested, I reconfigure the endstop with as M581 X T2 S1 in the homex.g macro. The only thing I also need to do of course is to make sure to disable it at the beginning of the homex.g with M581 T2 P-1 so that I can press home twice if I want to.
-
Configuring limit switches or changing default H0
I am configuring a DUET3 board and want the end-stops to act as limit switches, but I cannot seem to find that option.
I Configured my endstops as follows:
; Endstops
M574 X1 S1 P"^io0.in"
M574 Y1 S1 P"^io2.in"
M574 Z2 S1 P"^io4.in"
and they work correctly when homing and are also correctly registering during movement when I push them.What I want is that if after homing a limit switch (endstop) is hit the machine stops. Are the endstops configurable in this way.
Alternatively I could use G1 H4 X Y, but I do not want to have to adjust all my other programs to include H4. Is there a way to set H4 as default for a G1 move instead of the H0.Thanks in advance for any help/suggestions.