Exit from trap and subprogram1 simaltaneously?

  • Hi,


    I am having a main program of 10lines.


    in line no4. Iwatch interrupt1
    in line no5. i am calling a subprogram1
    in line no6. Isleep interrupt1


    in line no7. I am calling subprogram2



    TRap reaction
    .
    .
    ENDTRAP


    Lets say for example: Subprogram1 has 100lines. during the 50th. my interrupt is triggered and my trap program reaction is activated.


    After the Trap program I need the PP(program pointer) in line no.6 :help:


    in the trap program. I tried to use
    Return: It's coming back to 50th line in subprogram1
    Exitcycle: goes to firstling of main program
    Exit: Exit the program


    After the Trap program I need the PP(program pointer) in line no.6 :help:


    Thank in advance.


  • Try this.

Advertising from our partners