Count Loop (For - Siemens SINUMERIK 840D sl Programming Manual

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

Advertisement

Flexible NC programming
1.12 Check structures
1.12.3
Count loop (FOR ... TO ..., ENDFOR)
Function
The count loop is used if an operation must be repeated with a fixed number of runs.
Syntax
FOR <variable> = <initial value> TO <end value>
...
ENDFOR
Significance
FOR:
ENDFOR:
<variable>:
<initial
value>:
<full-scale
value>:
112
Initiates the count loop.
Marks the end of the loop and results in a return jump to the beginning
of the loop, as long as the end value of the count has still not been
reached.
Count variable, which is incremented from the initial to the end value
and is increased by the value "1" at each run.
Type
INT or REAL
Note:
The REAL type is used if R parameters are programmed for a
count loop, for example. If the count variable is of the REAL
type, its value is rounded to an integer.
Initial value of the count
Condition: The start value must be lower than the end value.
End value of the count
Programming Manual, 06/2009, 6FC5398-2BP20-0BA0
Job Planning

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents