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
Syntax
LOOP
...
ENDLOOP
Meaning
LOOP
ENDLOOP
Example
Program code
...
LOOP
MSG ("no tool cutting edge active")
M0
STOPRE
ENDLOOP
...
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
112
:
Initiates the endless loop.
:
Marks the end of the loop and results in a return jump to the beginning of the
loop.
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
Job Planning

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents