Entry Point In Subroutine Level 2; Conditions Of Block Search Forwards - Siemens WF 723 C Programming Manual

Positioning module
Table of Contents

Advertisement

04.97

3.4.2.3 Entry point in subroutine level 2

Main program
Level 0
PR10
N1 ....
N2 ....
N10 L10 P100
N11 ....
N20 ....
With the command "Read in manual block search", the following data have to be transferred:
Programm number level 0
Block number level 0 at which the subroutine level 1 is called
Program number level 1
Block number level 1 at which the subroutine level 2 is called
Remaining number of loops of level 1
Programm number level 2
Block number level 2 at which program execution shall be continued
Remaining number of loops of level 2
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
WF 723 C (Programming Guide)
Subroutine
Level 1
PR20
N1 ....
N2 ....
N15 L30 P60
N16 ....
N20 ....
10
20
e.g. 20
30
e.g. 5
6ZB5 440-0VU02
Program Execution / Subroutines
Subroutine
Level 2
PR30
N1 ....
N2 ....
N25 ....
Entry point
N26 ....
N30 ....
10
15
25
3 – 7

Advertisement

Table of Contents
loading

Table of Contents