14
12.98 User Stock Removal Programs
14.2 Contour
re
aration: CONTPRON
14
840D
NCU 571
840D
NCU 572
NCU 573
FM-NC 810D 840Di
ï›™
Siemens AG 2000. All rights reserved
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition
14-469
Programming example 2
Create a contour table with
•
name KTAB,
•
up to 92 contour elements (circles, straight lines),
•
mode: Longitudinal turning, external machining
•
preparation forwards and backwards
(100.100)
-50
50 100
Z
(-30.80)
(-30.30)
(20.20)
(20.45)
(0.45)
(-15.30)
150
100
50
X
(-40.80)
NC part program
N10 DEF REAL KTAB[92,11]
Contour table named KTAB and, for
example, a maximum of 92 contour
elements
Parameter value 11 is a fixed size
N20 CHAR BT="L"
Mode for CONTPRON:
Longitudinal turning, external machining
N30 DEF INT HE=0
Number of relief cut elements=0
N40 DEF INT MODE=1
Preparation forwards and backwards
N50 DEF INT ERR=0
Error check-back message
...
N100 G18 X100 Z100 F1000
N105 CONTPRON (KTAB, BT, HE, MODE)
Contour preparation call
N110 G1 G90 Z20 X20
N120 X45
N130 Z0
N140 G2 Z-15 X30 K=AC(-15) I=AC(45)
N150 G1 Z-30
N160 X80
N170 Z-40
N180 EXECUTE(ERR)
Terminate filling of contour table, switch to
normal program execution
...