DIN/ISO programming | DINplus program example
4
HEIDENHAIN | User's Manual smart.Turn and DIN Programming | 12/2017
507
4.37 DINplus program example
Example of a subprogram with contour repetitions
Contour repetitions, including saving of the contour
PROGRAM HEAD
#SLIDE $1
TURRET 1
T2 ID "121-55-040.1"
T3 ID "111-55.080.1"
T4 ID "161-400.2"
T8 ID "342-18.0-70"
T12 ID "112-12-050.1"
BLANK
N1 G20 X100 Z120 K1
FINISHED PART
N2 G0 X19.2 Z-10
N3 G1 Z-8.5 BR0.35
N4 G1 X38 BR3
N5 G1 Z-3.05 BR0.2
N6 G1 X42 BR0.5
N7 G1 Z0 BR0.2
N8 G1 X66 BR0.5
N9 G1 Z-10 BR0.5
N10 G1 X19.2 BR0.5
MACHINING
N11 G26 S2500
N12 G14 Q0
N13 G702 Q0 H1
Save contour
N14 L"1" V0 Q2
Qx = number of repetitions
N15 M30
SUBROUTINE "1"
N16 M108N17 G702 Q1 H1
Load saved contour
N18 G14 Q0
N19 T8
N20 G97 S2000 M3
N21 G95 F0.2
N22 G0 X0 Z4
N23 G147 K1
N24 G74 Z-15 P72 I8 B20 J36 E0.1 K0
N25 G14 Q0