Siemens SINUMERIK 840D sl Programming Manual page 51

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

Advertisement

Parameters
IF
LOOP
FOR
WHILE
REPEAT
Example: endless program
%_N_LOOP_MPF
LOOP
IF NOT $P_SEARCH
G01 G90 X0 Z10 F1000
WHILE $AA_IM[X] <= 100
G1 G91 X10 F500
Z–F100
Z5
ENDWHILE
Z10
ELSE
MSG("No drilling during block search")
ENDIF
$A_OUT[1] = 1
G4 F2
ENDLOOP
M30
Example: production of a fixed quantity of parts
%_N_WKPCCOUNT_MPF
DEF INT WKPCCOUNT
FOR WKPCCOUNT = 0 TO 100
G01 ...
ENDFOR
M30
Runtime response
In interpreter mode (active as standard), it is possible to shorten program processing times
more effectively by using program branches than can be obtained with control structures.
There is no difference between program branches and control structures in precompiled
cycles.
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
Selection between 2 alternatives
Endless loop
Count loop
Loop with condition at beginning of loop
Loop with condition at end of loop
Flexible NC programming
1.12 Control structures
;No block search
;Drilling pattern
;Block search
;Next drilling plate
1-37

Advertisement

Table of Contents
loading

Table of Contents