EasyManuals Logo

Siemens MCP 398C Programming Manual

Siemens MCP 398C
1334 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #478 background imageLoading...
Page #478 background image
Meaning
LOOP: Initiates the endless loop.
ENDLOOP: Marks the end of the loop and results in a return jump to the beginning of the loop.
Example
Program code
...
LOOP
MSG ("no tool cutting edge active")
M0
STOPRE
ENDLOOP
...
3.1.7.3 Count loop (FOR ... TO ..., ENDFOR)
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
Meaning
FOR: Initiates the count loop.
ENDFOR: 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.
<variable>: 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>: Initial value of the count
Condition: The start value must be lower than the end value.
<full-scale
value>:
End value of the count
Work preparation
3.1 Flexible NC programming
NC programming
478 Programming Manual, 12/2019, 6FC5398-2EP40-0BA0

Table of Contents

Other manuals for Siemens MCP 398C

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens MCP 398C and is the answer not in the manual?

Siemens MCP 398C Specifications

General IconGeneral
BrandSiemens
ModelMCP 398C
CategoryControl Systems
LanguageEnglish

Related product manuals