36 dinplus program example, Example of a subprogram with contour repetitions – HEIDENHAIN SW 54843x-02 DIN Programming User Manual
Page 416

416
DIN programming
4.36 DINplus pr
ogr
a
m example
4.36 DINplus program example
Example of a subprogram with contour
repetitions
Contour repetitions, including saving of the contour
HEADER
#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
SUBPROGRAM "1"
N16 M108
N17 G702 Q1 H1
Load saved contour
This manual is related to the following products: