Subprogram With Program Repetition - Siemens sinumerik 840d Programming Manual

Hide thumbs Also See for sinumerik 840d:
Table of Contents
12.98
2
840D
840D
NCU 572
NCU 571
NCU 573
2.5

Subprogram with program repetition

Program repetition, P
If you want to execute a subprogram several times in
succession, you can program the required number
of program repetitions in the block in the
subprogram call under address P.
Example:
N40 BORDER P3
The subprogram Border must be executed three
times in succession.
Value range:
P: 1...9999
The following applies to every subprogram call:
The subprogram call must always be programmed in
a separate NC block.
Subprogram call with program repetition
and parameter transfer
Parameters are only transferred during the program
call or the first pass. The parameters remain
unchanged for the repetitions.
If you want to change the parameters in the program
repetitions you must define declarations in the
subprograms.
 Siemens AG 2000. All rights reserved
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition

2.5 Subprogram with program repetition

FM-NC
810D
840Di
Subprograms, Macros
Main program
Subprogram
N40 BORDER P3
2
1
2
3
2-103

Hide quick links:

Table of Contents
loading

This manual is also suitable for:

Sinumerik fm-ncSinumerik 840diSinumerik 810d

Table of Contents