User stock removal programs
15.3 Generate coded contour table (CONTDCON)
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
699
NC program:
Program code Comments
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
direction. Standard value 0:
Only in the programmed direction
of the contour.
N30 DEF INT ERROR = 0 ; Variable for the fault feedback
signal.
...
N100 G18 G64 G90 G94 G710
N101 G1 Z100 X100 F1000
N105 CONTDCON (KTAB, MODE) ; Call contour preparation (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,
change over to normal program
operation.
...