Position:Home>Solutions>Common NC program> SIEMENS 802SM

Common NC Program-SIEMENS 802SM

1. Machining program listing

main program

G54X0Y0Z10F100M03S100

R10=-15 R11=-9.06

L1

R10=15 R11=-9.06

L1

R10=0

L2

subprogram:

L1.SPF

G0 X=R10+12.5-4 Y=R11

G1 Z-6 F100

G3 I=4-12.5

G1 X=R10+8 Y=R11

G41 D1 X=R10+4 Y=R11

G2 I-4

G0 Z5

R1=4

R2=90

AAA:

R3=R1*COS(R2)+4+R10

R4=R1*SIN(R2)-R1

G0 X=R3 Y=R11

G1 Z=R4 F300

G2 I=R10-R3

G0 Z1

R2=R2-1

IF R2>=0 GOTOB AAA

G0 Z10

M17

L2.SPF

R1=35

R2=15

R3=0

G0 X=R1+R10 Y=R11

G1 Z-5 F100

AAA:

R4=R1*COS(R3)+R10

R5=R2*SIN(R3)+R11

G1 X=R4 Y=R5 F100

R3=R3+1

IF R3<=360 GOTOB AAA

G0 Z5

M17

2. 3DM machining window
3. Two-dimensional machining trochoid