Is it possible that the ERR command is changing or destroying the return stack? :-(
In my main program I call a subroutine (with XEQ 81) and this subroutine makes a loop with a maximum of 100 runs. If the this loop reaches the desired accuracy before the counter is at 100, it makes a usual RTN and everything is working fine.
But if the counter reaches 100 I have a ERR 20 statement and a GTO 81 just after it, so if I just press R/S when the error message appears it repeats this subroutine (GTO 81) and should try another 100 iterations.
Now if within these next 100 iterations the accuracy is ok, then it goes to the RTN command again and so should return to the main program - but it doesn't! :-(
It jumps to the very first program step as if this RTN in the subroutine would be the RTN in the main program.
So I'm wondering if this ERR command has any effect on the return stack? Maybe it resets this stack?
Franz