NC program:
Program code Comment
N10 DEF REAL KTAB[9,6] ;Contour table with name KTAB and 9
table cells. These allow 8 contour
sets. The parameter value 6 (column
number in table) is a fixed size.
N20 DEF INT MODE = 0 ; Variable for the machining direc-
tion. Standard value 0: Only in the
programmed direction of the contour.
N30 DEF INT ERROR = 0 ; Variable for the error feedback sig-
nal.
...
N100 G18 G64 G90 G94 G710
N101 G1 Z100 X100 F1000
N105 CONTDCON (KTAB, MODE) ; Contour preparation call (MODE can
be omitted).
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) ; End filling the contour table,
switchover to normal program mode.
...
Contour 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
Feedrate
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
Work preparation
3.24 User stock removal programs
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0 1017