04.97
Program Execution / Subroutines
3.4.2.3 Entry point in subroutine level 2
N10 L10 P100
a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a
Main program
Level 0
PR10
a a a a
a a a a
a a a a
a a a a
a a a a
➃
a a a a
a a a a
a a a a
a a a a
a a a a
➀
a a a a
a a a a
a a a a
a a a a
a a a a
➁
a a a a
a a a a
a a a a
a a a a
a a a a
➄
N1 ....
N2 ....
N11 ....
N20 ....
N15 L30 P60
a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a
Subroutine
Level 1
PR20
a a a a
a a a a
a a a a
a a a a
a a a a
➂
N1 ....
N2 ....
N16 ....
N20 ....
a a a a a a a a a a a a a
a a a a a a a a a a a a a
a a a a a a a a a a a a a
a a a a a a a a a a a a a
Entry point
a a a a
a a a a
a a a a
a a a a
a a a a
➆
a a a a
a a a a
a a a a
a a a a
a a a a
➇
N25 ....
a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a
Subroutine
Level 2
PR30
a a a a
a a a a
a a a a
a a a a
a a a a
➅
N1 ....
N2 ....
N26 ....
N30 ....
With the command "Read in manual block search", the following data have to be transferred:
①
Programm number level 0
➯
10
➁
Block number level 0 at which the subroutine level 1 is called
➯
10
➂
Program number level 1
➯
20
➃
Block number level 1 at which the subroutine level 2 is called
➯
15
➄
Remaining number of loops of level 1
➯
e.g. 20
➅
Programm number level 2
➯
30
➆
Block number level 2 at which program execution shall be continued
➯
25
➇
Remaining number of loops of level 2
➯
e.g. 5
3.4.3
Conditions of block search forwards
Block search forwards has to be activated in the master axis and can only be executed under
the following conditions:
•
Automatic operating mode [BA] 5 has been selected.
•
The program number [PROG] of the main program (level 0) has been selected.
•
Program execution is inactive, stopped or aborted ([ST] must not be available).
•
The block search data have correctly been defined.
Any faulty operation generates a corresponding Data exchange/traversing WF error message.
After successful activation through the command "read in automatic/manual block search", the
current block search data can be checked with the command "read out block search", as long
as program execution has not yet been started. Afterwards, the output block search data will
be "0".
©
Siemens AG 1997 All Rights Reserved 6ZB5 440-0VU02
3 – 7
WF 723 C (Programming Guide)