Detailed Description 
  2.6 Block search Type 5 SERUPRO 
Mode Group, Channel, Program Operation, Reset Response (K1) 
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0 
2-63 
Nesting rules 
The following points govern the interaction between language commands IPTRLOCK and 
IPTRUNLOCK with nesting and the subroutine end. 
1.  IPTRUNLOCK is activated implicitly at the end of the subprogram in which IPTRLOCK 
was called. 
2.  IPTRLOCK has no effect in an existing search-suppressed area. 
3.  If subprogram1 calls subprogram2 in a search-suppressed area, subprogram2 remains 
search-suppressed. In particular, IPTRUNLOCK is ignored if programmed in 
subprogram2. 
Examples of nesting with two program levels 
Nesting of search-suppressed program sections in 2 program levels. 
 
  ;  Interpretation of the blocks in an 
illustrative sequence. 
  ;  Subprogram1 is prepared for the 
block search: 
N10010 IPTRLOCK()  ;  Program level 1 
N10020 R1 = R1 + 1  ;   
N10030 G4 F1  ;  Hold block 
of the search-suppressed program 
section starts 
... ;  
N10040 Subprogram2  ;  Interpretation of subprogram2 
...  ;  Program level 2 
N20010 IPTRLOCK ()  ;  Is ineffective 
... ;  
N20020 IPTRUNLOCK ()  ;  Is ineffective 
... ;  
N20030 RET  ;   
... ;  
N10050 IPTRLOCK()  ;   
N10060 R2 = R2 + 2  ;   
N10070 G4 F1  ;  End of search-suppressed program 
section 
 
An interruption in the search-suppressed program section of the above program always 
returns block "N10030 G4 F1".