Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/14/05 13:15
Read: times


 
#99372 - Emergency stop
Responding to: ???'s previous message

If the 'Emergency stop' input is just used to put a message up on the lcd, why are you so worried about the response time? Most code works as a loop - otherwise it would run once then do nothing! If the cpu is controlling motors one would expect it would have some input then control the output then keep on looping - one would expect you would put an abort test in that loop. Even PLCs process their ladder code as a loop. In your instance, I would expect as the 'emergency stop' is just a logic input informing the cpu that the power has been cut to the motors so it can stop whatever it was trying to do, so putting it on an interrupt I would see as being unusual. Resetting the processor or causing a context change seems the hard way of doing it - the software should test the input and process the action is the input is activated as part of its normal operation.

The term 'EMERGENCY STOP' has legal and safety implications especially where humans and machines interact. There is also laws describing the location, labelling and operation of these switches in most countries. Equipment involved in machine safety is usually specifically designed for the job - if a logic controller is involved it must be certified as a safety controller or a simple reliable device such as a relay or switch. NEVER rely on a microprocessor alone to ensure safety - it is near impossible to prove that it will do what you want every time. A microprocessor and its associated software is very complex and succeptable to a number of random failures. Even a gun has a safety catch.

Again, do a search on 'therac 25' - that machine embodied most of the common mistakes in machine design and it killed people.

I might sound a bit heavy handed about the safety issues - I wouldn't want to be blamed for a death of a person due to my negligence.



List of 31 messages in thread
TopicAuthorDate
Interrupt question            01/01/70 00:00      
   Interrupt            01/01/70 00:00      
      then how?            01/01/70 00:00      
         One way is to            01/01/70 00:00      
            Little more description            01/01/70 00:00      
               Routine            01/01/70 00:00      
   interrupt exit            01/01/70 00:00      
      tried but gives error            01/01/70 00:00      
         assembler???            01/01/70 00:00      
            Assembler is Pinnacle            01/01/70 00:00      
               go to Pinnacle support            01/01/70 00:00      
               Asking for solutions            01/01/70 00:00      
      Now THAT was elegant!            01/01/70 00:00      
   use WDT to RESET the micro            01/01/70 00:00      
   some comments            01/01/70 00:00      
      Its like this            01/01/70 00:00      
         Emergency stop            01/01/70 00:00      
            I understand            01/01/70 00:00      
               If you REALLY want to do it            01/01/70 00:00      
                  optimizing            01/01/70 00:00      
                  possible troubles            01/01/70 00:00      
                     excellent point!            01/01/70 00:00      
                        This is not a solution            01/01/70 00:00      
                           Do it as you wish            01/01/70 00:00      
                              Makes sense            01/01/70 00:00      
                              the consensus last time was that the onl            01/01/70 00:00      
                                 WD reset - yes, why not            01/01/70 00:00      
                                    You say "no" and agree            01/01/70 00:00      
                                       no no = yes            01/01/70 00:00      
                                    Watchdog output            01/01/70 00:00      
                              Thanks, Done            01/01/70 00:00      

Back to Subject List