Preeya
Member
- Join Date
- Nov 2003
- Posts
- 112
Hi everyone, I am fairly new to programming subroutines and interrupts. I am used to dumping evrything on the main program. But with the Siemens S7 200 I am currently using now, I wish to use subroutines and interrupts. My question is -
When a subroutine/interrupt is called (on say instruction 1 of the main program) and executed, does it come back to the next instruction on the main program (instruction 2)?
Or Does both the subroutine and the main program run simultaneously?When the subroutine is being executed, what is the status of the main program?
May be this is a very basic question, but please help me understand the sequence. Thanks for your time!
When a subroutine/interrupt is called (on say instruction 1 of the main program) and executed, does it come back to the next instruction on the main program (instruction 2)?
Or Does both the subroutine and the main program run simultaneously?When the subroutine is being executed, what is the status of the main program?
May be this is a very basic question, but please help me understand the sequence. Thanks for your time!