Programming
8.8 Program jumps
8-182
SINUMERIK 802D sl Operation and Programming Nibbling (BP-N), 06/2006 Edition
6FC5 398-3CP10-0BA0
8.8.4 Program example for jumps
Task
Approaching points on a circle section:
Given: Starting angle: 30° in R1
Circle radius: 32 mm in R2
Distance between the positions:10° in R3
Number of points: 11 in R4
Position of the circle center point in Z: 50 mm
in R5
Position of the circle center point in X: 20 mm
in R6
R3
R5
20
50
R4 = 11 (number of points)
Y
X
Point 1
R1
Point 2
Point 11
R3
Point 10
R3
Point 3
R6
.
.
.
Fig. 8-33 Linear approach of points on a circle segment
Programming example
N10 R1=30 R2=32 R3=10 R4=11 R5=50 R6=20 ; Assignment of the initial values
N20 MA1: G0 X=R2
*
COS (R1)+R5 Y=R2
*
SIN(R1)+R6 ; Calculation and assignment to axis
; addresses
N30 R1=R1+R3 R4= R4–1
N40 IF R4 > 0 GOTOB MA1
N50 M2
Explanation
In block N10, the starting conditions are assigned to the corresponding arithmetic parame-
ters. The calculation of the coordinates in X and Y and the processing takes place in N20.
In block N30, R1 is incremented by the clearance angle R3; R4 is decremented by 1.
If R4 > 0, N20 is reprocessed; otherwise, N50 with end of program.