Siemens SINUMERIK 840DE Programming Manual page 403

Hide thumbs Also See for SINUMERIK 840DE:
Table of Contents

Advertisement

Example of ENDLABEL
N10 G1 F300 Z-10
N20 BEGIN1:
N30 X10
N40 Y10
N50 BEGIN2:
N60 X20
N70 Y30
N80 ENDLABEL: Z10
N90 X0 Y0 Z0
N100 Z-10
N110 BEGIN3: X20
N120 Y30
N130 REPEAT BEGIN3 P=3
N140 REPEAT BEGIN2 P=2
N150 M100
N160 REPEAT BEGIN1 P=2
N170 Z10
N180 X0 Y0
N190 M30
Example of milling: Machine drill position with different technologies
N10 CENTER DRILL()
N20 POS_1:
N30 X1 Y1
N40 X2
N50 Y2
N60 X3 Y3
N70 ENDLABEL:
N80 POS_2:
N90 X10 Y5
N100 X9 Y-5
N110 X3 Y3
N120 ENDLABEL:
N130 DRILL()
N140 THREAD(6)
N150 REPEAT POS_1
N160 DRILL()
N170 THREAD(8)
N180 REPEAT POS_2
N190 M30
Fundamentals
Programming Manual, 10.2004 Edition, 6FC5 298-7AB00-0BP1
Subprograms and Repetition of Program Sections
11.4 Program section repetition
;Execute area from N110 to N120 three times
;Execute area from N50 to N80 twice
;Execute area from N20 to N80 twice
;Load center drill
;Drilling positions 1
;Drilling positions 2
;Change drill and drilling cycle
;Load tap M6 and ;threading cycle
;Repeat program section once from
;POS_1 up to ENDLABEL
;Change drill and drilling cycle
;Load tap M8 and ;threading cycle
;Repeat program section once from
;POS_2 up to ENDLABEL
11-11

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents