custom endstop for z
-
hi, i have BLE touch to work as Zstop but i modified hardware to sense bed collision and i want to use Z_stop or other endstop port (i have DUEX5)
basic goal, if my extruder crashes into bed to stop z motion (ideally with custom script, ex if im calibrating and not printing stop Z and move back) if im printing ex part warped and colided then pause script.
anyway now triggering Zstop does not stop motion at all. I guess because BLE proble is configured?
How can i make probe and limit switch work together? Probe for Z0 and limit switch as emergency shutoff?
and any way to have hook so when zstop triggered call my script?tnx
edit:
ok so i found this
https://docs.duet3d.com/User_manual/Connecting_hardware/IO_E_stoplooks like what i want
-
@alexus Switches defined as endstops only stop movement during G1 H1 homing moves. However, you can configure an endstop, or any other switch, as a trigger, and set up the action you want to happen when it is activated. See https://docs.duet3d.com/en/User_manual/Reference/Gcodes#m581-configure-external-trigger
Ian
-
yep that's pretty much what i managed to dig last night
so i can get M112 or call external scriptnow im facing problem thta if i call M112 then there no motion is possible at all
where i want to go back in case of collision... ex say we are homing and there something on bed causing collision so we tiger may switch stop homing process and go back -10mm from last known position to avoid hardware tension... then will test what happens during print, caz if its printing woudl need to do same but pause printing... could be easier during printing