Jump Destination For Program Jumps - Siemens SINUMERIK User Manual

Hide thumbs Also See for SINUMERIK:
Table of Contents

Advertisement

See the following illustration for linear approach of points on a circle segment:
Programming example
N10 R1=30 R2=32 R3=10 R4=11 R5=50 R6=20
N20 MC1: G0 Z=R2*COS (R1)+R5 X=R2*SIN(R1)+R6
N30 R1=R1+R3 R4= R4-1
N40 IF R4 > 0 GOTOB MC1
N50 M2
Explanation
In block N10, the starting conditions are assigned to the corresponding arithmetic parameters. The calculation of the
coordinates in X and Z and the processing takes place in N20.
In block N30, R1 is incremented by the clearance angle R3, and R4 is decremented by 1.
If R4 > 0, N20 is executed again; otherwise, N50 with End of program.
11.15.4

Jump destination for program jumps

Functionality
A label or a block number serve to mark blocks as jump destinations for program jumps. Program jumps can be used to
branch to the program sequence.
Labels can be freely selected, but must contain a minimum of 2 and a maximum of 8 letters or numbers of which the first two
characters must be letters or underscore characters.
Labels that are in the block that serves as the jump destination are ended by a colon. They are always at the start of a block.
If a block number is also present, the label is located after the block number.
Labels must be unique within a program.
Programming example
N10 LABEL1: G1 X20
N20 G0 X10 Z10
TR789: G0 X10 Z20
G0 X30 Z30
N100 G0 X40 Z40
M30
130
;Assignment of initial values
;Calculation and assignment to axis addresses
;LABEL1 is the label, jump destination
;TR789 is the label, jump destination
- No block number existing
;Block number can be jump target
Programming and Operating Manual (Turning)
01/2017

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 808dSinumerik 808d advanced

Table of Contents