Siemens SINUMERIK 880 Programming Manual page 197

Hide thumbs Also See for SINUMERIK 880:
Table of Contents

Advertisement

11 Programming of Cycles
11.4 Program branches
Main group 1/subgroup 4: REPEAT loop
@14x <Var> <Value> <Const>
The REPEAT loop is a repetition instruction with scanning of the repetition conditions at
the end of the loop. The compare operators correspond to those in the IF-THEN-ELSE
branch. As long as the comparison is not satisfied, a return jump is made to the block
defined in <Const>. If the condition is satisfied, the loop is exited and the program is
resumed.
Examples:
N400
.
.
@141 R13 R27 K-400
N400
.
@143 R13 R27 K-400
Main group 1/subgroup 5: FOR-TO loop
@151 <Var> <Value> <Const>
The FOR-TO loop is a counting loop in which the contents of the R parameter defined in
<Var> are incremented with each pass. The scanning for "equal to" is made at the
beginning of the loop. As long as there is no equality, the loop is processed, otherwise a
jump is made to the block defined in <Const>. At the end of the loop the variable
<Var> must be incremented (@620) and an absolute jump must be made to the
beginning of the loop.
Example:
R5 = 1 R51 = 5 R52 = 10
@201 R50 P51
N500 @151 R50 R52 K505
.
.
......
.
@620 R50
@100 K-500
N505
11–10
Repeat the following instructions until condition
R13 = R27 is satisfied.
Repeat the following instructions until condition
R13 > R27 is satisfied.
Value assignments for R5, R51, R52
Data transfer from R51 to R50
Beginning of FOR-TO loop
© Siemens AG 1991 All Rights Reserved
05.91
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