Generate NC Code

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.

  1. Right-click the Manufacturing Program.1 entity in the tree and 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 Output File 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.

$$ -----------------------------------------------------------------
$$ Generated on Thursday, May 10, 2001 04:58:20 PM
$$ -----------------------------------------------------------------
$$ 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
PPRINT OPERATION NAME : Tool Change.1
$$ Start generation of : Tool Change.1
TLAXIS/ 0.000000, 0.000000, 1.000000
$$ TOOLCHANGEBEGINNING
RAPID
GOTO / 0.00000, 0.00000, 100.00000
CUTTER/ 10.000000, 2.000000, 3.000000, 2.000000, 0.000000$
, 0.000000, 100.000000
TOOLNO/1, 10.000000
TPRINT/T1 End Mill D 10
LOADTL/1
$$ End of generation of : Tool Change.1
PPRINT OPERATION NAME : Pocketing.1
$$ Start generation of : Pocketing.1
FEDRAT/ 1000.0000,MMPM
SPINDL/ 70.0000,RPM,CLW
GOTO / 30.61644, 2.50000, 5.00000
GOTO / 17.50000, 2.50000, 5.00000
...
GOTO / 30.61644, 35.00000, 5.00000
$$ End of generation of : Pocketing.1
PPRINT OPERATION NAME : Tool Change.2
$$ Start generation of : Tool Change.2
$$ TOOLCHANGEBEGINNING
RAPID
GOTO / 0.00000, 0.00000, 100.00000
CUTTER/ 16.000000, 0.000000, 8.000000, 0.000000, 0.000000$
, 0.000000, 100.000000
TOOLNO/2, 16.000000
TPRINT/16 Flat Milling Tool
LOADTL/2
$$ End of generation of : Tool Change.2
PPRINT OPERATION NAME : Profile Contouring.1
$$ Start generation of : Profile Contouring.1
FEDRAT/ 300.0000,MMPM
SPINDL/ 70.0000,RPM,CLW
GOTO / -69.00000, 40.00000, 46.00000
...
GOTO / -69.00000, 50.00000, 0.00000
$$ End of generation of : Profile Contouring.1
PPRINT OPERATION NAME : Tool Change.3
$$ Start generation of : Tool Change.3
$$ TOOLCHANGEBEGINNING
RAPID
GOTO / 0.00000, 0.00000, 100.00000
CUTTER/ 9.000000, 0.000000, 4.500000, 2.598076, 30.000000$
, 0.000000, 100.000000
TOOLNO/3, 9.000000
TPRINT/9mm Drill
LOADTL/3
$$ End of generation of : Tool Change.3
PPRINT OPERATION NAME : Drilling.1
$$ Start generation of : Drilling.1
LOADTL/3,1
SPINDL/ 70.0000,RPM,CLW
RAPID
GOTO / -40.00000, -30.00000, 25.00000
RAPID
GOTO / -40.00000, -30.00000, 21.00000
CYCLE/DRILL, 10.000000, 1.000000, 1000.000000,MMPM
GOTO / -40.00000, -30.00000, 20.00000
GOTO / -40.00000, 30.00000, 20.00000
CYCLE/OFF
RAPID
GOTO / -40.00000, 30.00000, 21.00000
RAPID
GOTO / -40.00000, 30.00000, 25.00000
$$ End of generation of : Drilling.1
SPINDL/OFF
REWIND/0
END

end of task