Hi,
I have two momentary switches one for E-stop and one for E-stop reset.
So I have two pins that go high when each of the buttons is pressed.
Anyone have an idea on how I can halt the program when the Estop is pushed and resume when the Estop reset is pushed?
I was thinking about using Switch/case but not sure how to actually do it. Any help would be appreciated..
Thanks
Dana
Momentary switch? That strikes me as a contradiction to "emergency". Are you building an emergency stop?
No, it is actually on a machine. I can switch it to a normal palm button, but I would like to keep it all original.
I got it to work with simple If statements, seems to work.`
if (in_platform_estop == HIGH)
{
digitalWrite (e_stop_pin, HIGH);
}
if (in_platform_estop_reset == HIGH)
{
digitalWrite (e_stop_pin, LOW);
}
system
Closed
5
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.