Detailed description
2.6 Block search Type 5 SERUPRO
Basic logic functions: Mode group, channel, program operation, reset response (K1)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0
79
Nesting rules
The following features regulate the interaction between NC commands IPTRLOCK and
IPTRUNLOCK with nesting and end of subroutine:
1. IPTRLOCK is activated implicitly at the end of the subroutine in which IPTRUNLOCK is
called.
2. IPTRLOCK in an untraceable section has no effect.
3. If subprogram1 calls subprogram2 in a search-suppressed area, subprogram2 remains
search-suppressed. IPTRUNLOCK in particular has no effect in subroutine 2.
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 a search-suppressed program section of the above program always
returns N10030 G4 F1 block.