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-467
Programming example 1
Create a contour table with
•
name KTAB,
•
up to 30 contour elements (circles, straight lines),
•
a variable for the number of relief cut elements,
•
a variable for error messages
150
(20.150)
100
50
50
100 150
Z
X
(30.110)
(30.65)
(70.50)
(85.40)
(90.30)
(90.0)
(45.50)
NC part program
N10 DEF REAL KTAB[30,11]
Contour table named KTAB and, for
example, a maximum of 30 contour
elements
Parameter value 11 is a fixed size
N20 DEF INT ANZHINT
Variable for number of relief cut elements
with name ANZHINT
N30 DEF INT ERROR
Variable for acknowledgment
0 = no error, 1 = error
N40 G18
N50 CONTPRON (KTAB,"G",ANZHINT)
Contour preparation call
N60 G1 X150 Z20
N70 X110 Z30
N80 X50 RND=15
N90 Z70
N100 X40 Z85
N110 X30 Z90
N120 X0
N60 to N120 contour description
N130 EXECUTE(ERROR)
Terminate filling of contour table, switch to
normal program execution
N140 …
Continue processing table