Programming Examples With Parameters - Siemens SINUMERIK 880 Programming Manual

Hide thumbs Also See for SINUMERIK 880:
Table of Contents

Advertisement

7 Parameters

7.5 Programming examples with parameters

7.5
Programming examples with parameters
Parameters for subroutines without values
In the case of subroutines without values, the current data are transferred by means of para-
meters R00 to R99.
These parameters are used in the subroutine instead of numerical data.
A maximum of 10 parameters can be programmed in each block.
When the subroutine is called the parameters used must have the correct values.
Values are assigned to the parameters in the main program.
Example:
R8=
140
R6=
120
The contour to be cut is stored in a subroutine.
L F
%250
N05 X . . Z . .
L F
N10 L47 P1 R0=125 R1=50 R2=170 R3=30
R4=135 R5=–95 R6=120 R7=–105 R8=140
Subroutine
L F
L47
L F
N30 G90 Z=0
L F
N35 X=R1
N40 A=R2 Y=R4 X=R6 Z=R5 B=R3
L F
N45 Z=R7
N50 X=R8
L F
L F
N55 Z=R0 M17
7–6
R7=–105
R5=–95
R4=135
R3=30
R0=125
L F
L F
© Siemens AG 1991 All Rights Reserved
05.91
X
R2=170
A
R1= 50
Z
W
6ZB5 410-0HD02
SINUMERIK 880, (PG)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sw 6Sinumerik 880 ga2Sw 1

Table of Contents