User stock removal programs
14.2 Contour preparation (CONTPRON)
Job planning
14-6 Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
Example 2: Creating curve table
Create a contour table with
• name KTAB,
• up to 92 contour elements (circles, straight lines),
• mode: Longitudinal turning, external machining,
• preparation forwards and backwards.
;
=
NC parts program
N10 DEF REAL KTAB[92,11] ;Contour table named KTAB and, for example,
;a maximum of 92 contour elements
;parameter value 11 is a fixed quantity
N20 CHAR BT="L" ;Mode for CONTPRON:
;longitudinal turning, external 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 ;Error checkback message
...
N100 G18 X100 Z100 F1000
N105 CONTPRON (KTAB, BT, HE, MODE) ;Contour preparation call
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) ;Terminate filling of contour table,
;switch to normal program execution
...