Siemens SINUMERIK 808D Programming And Operating Manual page 158

Iso turning/milling
Hide thumbs Also See for SINUMERIK 808D:
Table of Contents

Advertisement

Programming example
PROC MAIN
. . .
N0090 G291
N0100 G1 G21 X10 Y20 F1000 G90
. . .
N0500 G90 X20 Y30 G123 G1 G54
. . .
N0800 G90 X20 Y30 G421 G1 G54
. . .
N0900 M30
PROC G21_MAKRO
. . .
N0010 R10 = R10 + 11.11
N0020 IF $C_X_PROG == 0
N0030 SETAL(61000)
N0040 ENDIF
N0050 IF $C_Y_PROG == 0
N0060 SETAL(61001)
N0070 ENDIF
N0080 IF $C_F_PROG == 0
N0090 SETAL(61002)
N0100 ENDIF
N0110 G90 X=$C_X Y=$C_Y
N0120 G291
N0130 G21 M6 X100
N0140 G290
. . .
N0150 M17
PROC G123_MAKRO
. . .
N0010 R10 = R10 + 11.11
N0020 IF $C_G == 421 GOTOF label_G421
N0040 G91 X=$C_X Y=$C_Y F500
. . .
. . .
N1990 GOTOF label_end
N2000 label_G421:
N2010 G90 X=$C_X
Y=$C_Y F100
N2020
. . .
. . .
N3000 G291
158
; ISO mode
;
Call of G21_MAKRO.spf,
;
G1 and G90 are activated
;
before the call of
;
G21_MAKRO.spf
;
Call of G123_MAKRO.spf,
;
G1, G54 and G90 are activated
;
before the call of
;
G123_MAKRO.spf
;
Call of G123_MAKRO.spf,
;
G1, G54 and G90 are activated
;
before the call of
;
G123_MAKRO.spf
;
programmed variable not transferred cor-
;
rectly
;
G21->activate metric measuring system
;
(no macro call)
; Macro functionality for G123
; Macro functionality for G421
Programming and Operating Manual (ISO Turning/Milling)
01/2017

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 808d advanced

Table of Contents