Check Structures - Siemens SINUMERIK 840D sl Programming Manual

Nc programming
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Work preparation
3.1 Flexible NC programming
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 REPEAT statement should appear after the traversing block.
3.1.7

Check structures

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 IF, ELSE, ENDIF, LOOP, FOR,
WHILE and REPEAT.
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 jump
targets. No such check is made when the macro is defined.
Effectiveness
The check structure cannot be used program-wide.
474
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
NC programming

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents