-
-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added shared_fault_pin for stopping on driver faults/stalls #972
Conversation
How does this extend to future faults? Examples...
We don't need to define them now, but I think this feature should be flexible. A quick fix would be to make this one a top level fault. |
Maybe it would be better to have /control/fault_pin instead of /axes/shared_fault_pin . You could also have /control/estop_pin to do the same thing. The FaultPin class can be instantiated multiple times on different pin, using different config items. A FaultPin fires a faultPinEvent when it goes active, so that part "just works". The thing that needs to be added is a way to inquire if any faults are still active. Currently the code that looks for that just knows about the one fault pin at config->_axes->sharedFaultPin. |
/control/fault_pin sounds good to me. If I activate the fault in Idle I can still run motion. Should it activate the alarm in any state? |
I have been working on that. |
Added /control/estop_pin Faults now trigger in idle state and persist until the fault is cleared
Possible objections: It would be nice to see the states of fault pins and in fact all control pins in $limits/show. But that could get out of hand pretty quickly. Similarly one might want to display those pin states in the ? report; but same can of worms. |
I like the new position in the config file. It is working on my test machine, but I don't see anything reported with |
I intentionally omitted the fault pin from $limits/show because what about the other control pins? Should it also show the safety door pin and the macro pins and ... ? And what about the pin report in ? Big can of worms. For ?, we would have to come up with a schema for single-letter naming of future pins like spindle faults. |
I just saw that. That is fine. This needs to be changed though.
|
Another way to look at pin states is with $gpio/dump. It will show everything. |
I added http://wiki.fluidnc.com/en/features/commands_and_settings#gpiodump I added it at the top to show a new proposed format of that page. I have been frustrated by the limitations of the table format of that page. It would be similar the supported gcodes page. It makes better use of the nav panel. |
Something is wrong with the markup. The first sentence ends with "$" in the rendered version, omitting the rest of the sentence that is present in the markdown text. |
Thanks The renderer in edit mode shows it. That must have been missing for a while. I need to escape the <> characters in $<text>. |
See http://wiki.fluidnc.com/en/config/axes#axes shared_fault_pin for more info