Hi,
I connect dc motor to my duet 2 wifi board - through a driver, an external power source and it works great.
The question I have is how can I use one of my endstop switches to stop a dc motor (like a stepper motor) when the endstop switch is pressed?
Or other option -
how can I catch an event of "endstop pressed" and after that event execute specific command?
-->
I tried to connect the end stop switch to Y (without a motor)
In addition, I added to sys trigger1.g file that contains the following command: M42 P7 S0.
I also add this line at the end of the config file -
; Custom settings are not defined
M581 T1 Y S1.
Why is the trigger not executed and the DC motor continues to run?
Additionally, I have tried adding M300 in the trigger file to understand if the file is executed when the end stop is pressed, but the beep is not working.
What am I doing wrong? Any suggestions?
Thanks,
Adi