In the beginning of my main routine I setup interrupts from digital intputs and I connect the interrupts to trap routines.
Like : CONNECT intdoorop WITH trapDoorOp;
ISignalDI diDem_Porte,1,intdoorop;
After that I have my endless loop with code.
The interrupts work fine. But if for testing I select 'PP to routine' on the teachpendant (I select f.i. the first line in the endless loop of the main routine), the interrupts are not generated anymore.
I did not do a 'PP to main', only a PP to routine.
I know that 'PP to routine' cleans the execution stack, but does it also erases the interupt connections?
I also saw that 'Call routine' does not erase the interrupt connections, but that also does not clean the execution stack : after executing the called routine, the PP returns to the position before calling the routine.
Or are there ways to maintain the interrupt connections?