User stock removal programs
14.3 Contour decoding (CONTDCON)
Job planning
14-10 Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
NC parts program
N10 DEF REAL KTAB[9,6]
;Contour table with name KTAB and 9 table
;cells.
;These allow 8 contour sets. Parameter value 6
;(column number in table) is a fixed size
N20 DEF INT MODE = 0 ;Default value 0: Only in programmed
;contour direction. Value 1 is not permitted.
N30 DEF INT ERROR = 0 ;Error checkback message
...
N100 G18 G64 G90 G94 G710
N101 G1 Z100 X100 F1000
N105 CONTDCON (KTAB, MODE) ;Call contour decoding
;MODE may be omitted, see above.
N110 G1 Z20 X20 F200
N120 G9 X45 F300
N130 Z0 F400
;Contour description
N140 G2 Z-15 X30 K=AC(-15) I=AC(45)F100
N150 G64 Z-30 F600
N160 X80 F700
N170 Z-40 F800
N180 EXECUTE(ERROR) ;Terminate filling of contour table,
;switch to normal program execution
...
Table KTAB
Column
index
0 1 2 3 4 5
Line index Contour
mode
End point
abscissa
End point
ordinate
Center point
abscissa
Center point
ordinate
Feed
0 30 100 100 0 0 7
1 11031 20 20 0 0 200
2 111031 20 45 0 0 300
3 11031 0 45 0 0 400
4 11032 -15 30 -15 45 100
5 11031 -30 30 0 0 600
6 11031 -30 80 0 0 700
7 11031 -40 80 0 0 800
8 0 0 0 0 0 0