grblHAL / ESP32

grblHAL driver for ESP32
Other
62 stars 39 forks source link

How to invert motor fault pin? #98

Closed RealTadango closed 3 months ago

RealTadango commented 3 months ago

I am trying to build for my custom CNC and i have closed loop steppers with a fault output that pulls to ground when an error occurs. I want to use the motor fault input for this but this input is active high. There is a pullup in place so this fault is triggered by default unless the pin is pulled low... but my motors work in the opposite way. How can i reverse the fault trigger? So pin high in normal state and low in faulted state?

terjeio commented 3 months ago

It is controlled by a bit in $14. Send $$=14 for info.

RealTadango commented 3 months ago

Ah perfect. Btw, where should i have found this in the Wiki?