Examples; Preprocessing Individual Files - Siemens SINUMERIK 840D sl Function Manual

Special functions
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

V2: Preprocessing

18.5 Examples

18.5
Examples
18.5.1

Preprocessing individual files

PROC UP1 PREPRO
N1000 DEF INT COUNTER
N1010 TARGET: G1 G91 COMPON
N1020 G1 X0.001 Y0.001 Z0.001 F100000
N1030 COUNTER=COUNTER+1
N1040 COUNTER=COUNTER-1
N1050 COUNTER=COUNTER+1
N1060 IF COUNTER<=10 GOTOB TARGET
N1070 M30
PROC UP2
N2000 DEF INT VARIABLE, ARRAY[2]
N2010 IF $AN_NCK_Version < 3.4
N2020 SETAL(61000)
N2030 ENDIF
N2040 START:
N2050 FOR VARIABLE = 1 TO 5
N2060 G1 F1000 X=VARIABLE*10-56/86EX4+4*SIN(VARIABLE/3)
N2070 ENDFOR
N2080 M17
PROC MAIN
N10 G0 X0 Y0 Z0
N20 UP1
N30 G0 X10 Y10 Z10
N40 UP2
N50 G0 X100 Y100
N60 UP3
N70 G0 X10 Y10
N80 M30
Sample constellations:
a) Bit 5 = 1
MD10700 $MN_PREPROCESSING_LEVEL=45 ; bit 0, 2, 3, 5
Subroutine UP1 is pretranslated, and the call description is generated.
692
; Preprocessing if bit 5 = 1
; in PREPROCESSING_LEVEL
Function Manual, 09/2011, 6FC5397-2BP40-2BA0
Special Functions

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents