User stock removal programs
15.2 Generate contour table (CONTPRON)
Job planning
694 Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
NC program:
Program code Comments
N10 DEF REAL KTAB[92,11] ; Contour table with name KTAB and
max. 92 contour elements,
parameter value 11 is a fixed
quantity.
N20 DEF CHAR BT="L" ; Mode for CONTPRON: Longitudinal
turning, outer machining
N30 DEF INT HE=0 ; Number of relief cut elements=0
N40 DEF INT MODE=1 ; Preparation, forwards and
backwards
N50 DEF INT ERR=0 ; Fault feedback signal
...
N100 G18 X100 Z100 F1000
N105 CONTPRON(KTAB,BT,HE,MODE) ; Activate contour preparation.
N110 G1 G90 Z20 X20
N120 X45
N130 Z0
N140 G2 Z-15 X30 K=AC(-15) I=AC(45)
N150 G1 Z-30
N160 X80
N170 Z-40
N180 EXECUTE(ERR) ; End filling the contour table,
change over to normal program
operation.
...