-
Notifications
You must be signed in to change notification settings - Fork 87
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
troggle stepper enable on reset #150
Comments
A plugin can do that by hooking code into Toggling the enable signal can be done by calling hal.stepper.enable(). |
So if i understand correctly
} |
You have to cast the argument to 1 sec delay is |
awesome, i'll have a try. |
ssr.c (probably don't need half of these includes)
plugins_init.h add:
my_machine.h add: I was kinda suprised that it found my ssr.c as nowhere i let it know it is in the /ssr/ folder but it seems to compile. |
yup this works. When my servo goes in alarm -> pulls e-stop -> pressing reset in iosender now pulls drive enable and clears servo alarm. |
Correct, you'll have to check if e-stop is active and delay action until it is cleared?
|
during e-stop drivers can stay enabled. I should toggle enable after this code is cleared. |
|
i think something like this should work. need to check where i can put the estop event code |
It is not an event callback, the |
If you want to trap the e-stop event you can attach your code to hal.control.interrupt_callback in the same manner as you do for Lines 92 to 139 in 45b0e10
|
grblHAL blocks this - the servo alarm should trigger the motor fault signal instead? If the driver you are using has aux inputs you could claim one and use that to trigger the signal. |
Hi i'm using the grblhal2k: I believe it has aux inputs. Will investigate further |
Using this code for now, works well enough. At some point i might use the motor fault input. |
My use case: alarm of IHSV57 servo's are hooked up to my e-stop circuit.
In the case of a alarm, e-stop input pulls low.
In order to reset this either power cycle servo's (not ideal) or troggle drive enable .
To my suprise this drive enable/disable does not occur when you reset the board. It only occurs if you change a setting (in IO SENDER).
Ideally you would see an option somewhere to troggle enable/disable of stepper/servo's on init/reset.
The text was updated successfully, but these errors were encountered: