Generate NC Data

task target This task shows you how to generate NC data in APT format from the program.

For more information about this procedure please refer to Program Output.

scenario 1. Use the right mouse key on the Manufacturing Program.1 entity in the tree to select Manufacturing Program.1 object > Generate NC Code Interactively. The Generate NC Output Interactively dialog box appears.

  2. Select APT as the desired NC data type.
3. Click the Output File [...] button to select the folder where you want the file to be saved and specify the name of the file.
4. Click Execute to generate the APT source file.
An extract from a typical APT source file is given below.

Please note that the Flank Contouring portion of this source contains information for cutter radius compensation. Output is the tool tip point (XT, YT, ZT), tool axis vector (IJK) and the drive surface normal (PQR).

$$ -----------------------------------------------------------------
$$ Generated on Thursday, October 16, 2003 09:52:12 AM
$$ CATIA APT VERSION 1.0
$$ -----------------------------------------------------------------
$$ Manufacturing Program.1
$$ Part Operation.1
$$*CATIA0
$$ Manufacturing Program.1
$$ 1.00000 0.00000 0.00000 0.00000
$$ 0.00000 1.00000 0.00000 0.00000
$$ 0.00000 0.00000 1.00000 0.00000
PARTNO PART TO BE MACHINED
COOLNT/ON
CUTCOM/OFF
$$ OPERATION NAME : Tool Change.1
$$ Start generation of : Tool Change.1
MULTAX
$$ TOOLCHANGEBEGINNING
RAPID
GOTO / 0.00000, 0.00000, 100.00000, 0.000000, 0.000000, 1.000000
CUTTER/ 32.000000, 4.000000, 12.000000, 4.000000, 0.000000,$
0.000000, 50.000000
TOOLNO/3, 32.000000
TPRINT/T1 End Mill D 32 RC4
LOADTL/3
$$ End of generation of : Tool Change.1
$$ OPERATION NAME : Roughing.1
$$ Start generation of : Roughing.1
SPINDL/ 70.0000,RPM,CLW
RAPID
GOTO / 49.14075, -129.01000, 50.20000, 0.000000, 0.000000, 1.000000
RAPID
GOTO / 49.14075, -129.01000, 50.00000, 0.000000, 0.000000, 1.000000
FEDRAT/ 300.0000,MMPM
GOTO / 49.14075, -129.01000, 40.00000, 0.000000, 0.000000, 1.000000
.
.
.
GOTO / -22.69277, -110.01000, -0.00000, 0.000000, 0.000000, 1.000000
FEDRAT/ 1000.0000,MMPM
GOTO / -22.69277, -110.01000, 10.00000, 0.000000, 0.000000, 1.000000
RAPID
GOTO / -22.69277, -110.01000, 50.20000, 0.000000, 0.000000, 1.000000
$$ End of generation of : Roughing.1
$$ OPERATION NAME : Isoparametric Machining.1
$$ Start generation of : Isoparametric Machining.1
FEDRAT/ 1000.0000,MMPM
SPINDL/ 70.0000,RPM,CLW
GOTO / 94.69478, -9.32685, 6.00000, 0.000000, 0.000000, 1.000000
GOTO / 86.33038, -9.32685, 6.00000, 0.000000, 0.000000, 1.000000
.
.
.
GOTO / 91.86793, -4.77816, 7.49749, 0.000000, 0.000000, 1.000000
GOTO / 2.80778, -4.79095, 35.40089, 0.000000, 0.000000, 1.000000
$$ End of generation of : Isoparametric Machining.1
$$ OPERATION NAME : Tool Change.2
$$ Start generation of : Tool Change.2
$$ TOOLCHANGEBEGINNING
RAPID
GOTO / 0.00000, 0.00000, 100.00000, 0.000000, 0.000000, 1.000000
CUTTER/ 16.000000, 4.000000, 4.000000, 4.000000, 0.000000,$
0.000000, 50.000000
TOOLNO/4, 16.000000
TPRINT/T1 End Mill D 16 RC4
LOADTL/4
$$ End of generation of : Tool Change.2
$$ OPERATION NAME : Multi-Axis Flank Contouring.1
$$ Start generation of : Multi-Axis Flank Contouring.1
LOADTL/4,1
FEDRAT/ 1000.0000,MMPM
SPINDL/ 70.0000,RPM,CLW
CUTCOM/ SAME, NORMDS
CUTCOM/ NORMDS
$$ START CUTCOM NORMDS XT,YT,ZT,I,J,K,P,Q,R
GOTO / 100.00276, -17.79095, 34.00000, 0.000000, 0.000000, 1.00000$
0, 0.000000,-1.000000, 0.000000
GOTO / -17.69092, -17.79095, 34.00000, 0.000000, 0.000000, 1.00000$
0, 0.000000,-1.000000, 0.000000
.
.
.
GOTO / 117.59356, -82.66197, 4.36385,-0.000004,-0.087155, 0.99619$
5,-0.012004, 0.996123, 0.087149
GOTO / 142.86522, -82.35744, 4.36385,-0.000004,-0.087155, 0.99619$
5,-0.022595, 0.995940, 0.087133
CUTCOM/OFF
$$ END CUTCOM NORMDS XT,YT,ZT,I,J,K,P,Q,R
$$ End of generation of : Multi-Axis Flank Contouring.1
SPINDL/OFF
REWIND/0
END

end of task