Emergency Stop and BS2p40
lee_hanc
Posts: 4
Hi,
I have a problem, I make a control system and has an emergency stop button.As I know, STAMP doesn't have an interrupt system, so do I need to check this button in every sequence? or is there any other function that I can use like interrupt system? And the other problem is, I use bs2p40 that has auxiliary IO. If I check this button every time, then it means I should change the state MAINIO or AUXIO everytime I check it? or any other way to always watch this button?
I have a problem, I make a control system and has an emergency stop button.As I know, STAMP doesn't have an interrupt system, so do I need to check this button in every sequence? or is there any other function that I can use like interrupt system? And the other problem is, I use bs2p40 that has auxiliary IO. If I check this button every time, then it means I should change the state MAINIO or AUXIO everytime I check it? or any other way to always watch this button?
Comments
An operators hand is not going to out run the BS2. Just check on it often.
Thanks for the reply. Yes, I make a circuit outside to cut off all the actuator's power, but off course I can't cut the controller power (STAMP), I still need to maintain all the parameter inside my controller. So, for my controller, what I need is just jump to a subroutine and looping as long as the E-Stop hit and go back to the start after it released, that's why I want to have an interrupt function
Having said that, you should never call anything an e-stop that is dependent on code running. An e-stop has to be able to stop the machine regardless of the code. As pointed out previously, the e-stop function should directly cut power to the outputs by dropping out a main power relay or equivalent.
There's nothing wrong with the processor sensing that an e-stop button has been activated and have the program halt or go to a recovery routine, but the action of stopping the machine should always be hard-wired. This is how most Dept. of Labour and Health and Safety folks enforce the law.