Check Structures - 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

Program code
N10 G1 F300 Z-10
N20 BEGIN1:
N30 X=10
N40 Y=10
N50 GOTOF BEGIN2
N60 ENDLABEL:
N70 BEGIN2:
N80 X20
N90 Y30
N100 ENDLABEL: Z10
N110 X0 Y0 Z0
N120 Z-10
N130 REPEAT BEGIN1 P=2
N140 Z10
N150 X0 Y0
N160 M30
Note
The
1.12
Check structures
Function
The control processes the NC blocks as standard in the programmed sequence.
This sequence can be variable by programming alternative program blocks and program
loops. These check structures are programmed using the key words
FOR
NOTICE
Programming error
Check structures may only be inserted in the statement section of a program. Definitions in
the program header may not be executed conditionally or repeatedly.
It is not permissible to superimpose macros on keywords for check structures or on branch
destinations. No such check is made when the macro is defined.
108
Example:
statement should appear after the traversing block.
REPEAT
,
and
.
WHILE
REPEAT
,
IF
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
,
,
,
ELSE
ENDIF
LOOP
Job Planning

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents