Subroutine With Program Repetition (P) - Siemens SINUMERIK 840D sl Programming Manual

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Subroutines, Macros

2.6 Subroutine with program repetition (P)

Caution
The user must always ensure that execution continues with the correct modal settings on
return over two or more program levels. This is done, for example, by programming an
appropriate main block.
2.6
Subroutine with program repetition (P)
2.6
Function
If a subroutine is to be executed several times in succession, the desired number of program
repetitions can be entered at address P in the block with the subroutine call.
Parameters
Caution
Subroutine call with program repetition and parameter transfer
Parameters are transferred only when the program is called, i.e., on the first run. The
parameters remain unchanged for the remaining repetitions.
If you want to change the parameters during program repetitions, you must make the
appropriate provision in the subroutine.
P
Value range:
Caution
The following applies to every subroutine call:
The subroutine call must always be programmed in a separate NC block.
2-18
Number of subroutine passes
1, ..., 9999 (unsigned integers)
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
Job planning

Advertisement

Table of Contents
loading

Table of Contents