Number Of Program Repetitions (P) - Siemens Sinumerik 840D sl Programming Manual

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

Advertisement

Example 2: Subprogram call without declaration
Program code
N10 DEF REAL LENGTH, WIDTH, DEPTH
N20 ...
N30 LENGTH=15.3 WIDTH=20.2 DEPTH=5
N40 BORDER(LENGTH,WIDTH,DEPTH)
1.25.3.3

Number of program repetitions (P)

Function
If a subprogram 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 subprogram call.
Subprogram 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
subprogram.
Syntax
<program name> P<value>
Job planning
Programming Manual, 02/2011, 6FC5398-2BP40-1BA0
CAUTION
Flexible NC programming
1.25 Subprogram technique
Comments
; or: N40 BORDER(15.3,20.2,5)
197

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de slSinumerik 828d

Table of Contents