Rapid interruptions

i explain that i want doing and after i ask the question.

I have a rapid code in the real robot, the code is very long and it must be efficience and i dont stop because the robot is in production line. 

So, my question is: There is some form of program interruptions when a signals is activated by PLC, the code of rapid stop momentarily to execute a  few lines of code and after it, the code execute Follow where you were.

Because the code for interruptions can't wait to finish execute the other code must be 
immediate and you can't lose the pointer either since you have to continue where you went.
Tagged:

Answers

  • Hi...
    I believe that a Trap routine will solve your problem. Do some research on how this function works. If this is not what you are looking for, you can work with multitasking.
    Good Job