User stock removal programs
14.2 Contour preparation (CONTPRON)
Job planning
14-4 Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
NC parts 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 quantity
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 the table
Table KTAB
Index
Line
Column
(0) (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)
7 7 11 0 0 20 150 0 82.40535663 0 0
0 2 11 20 150 30 110 -1111 104.0362435 0 0
1 3 11 30 110 30 65 0 90 0 0
2 4 13 30 65 45 50 0 180 45 65
3 5 11 45 50 70 50 0 0 0 0
4 6 11 70 50 85 40 0 146.3099325 0 0
5 7 11 85 40 90 30 0 116.5650512 0 0
6 0 11 90 30 90 0 0 90 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0