Professional Documents
Culture Documents
CAD/CAM Based Part Programming: surface and solid models using CAD software models contain the geometric data
Why?
Use of symbolic language Programming independent of machine tool Reduced programming time Reduced possibility of human error Capability of simple changeover of machining sequence from machine to machine Only postprocessor required to include new machine tool
6
Role of computer
Input translation
Covert the part program into computer usable format for further processing
Arithmetic calculations
complex arithmetic and trigonometric calculations to generate the part surface data
Postprocessing
Prepare the part program specific for a machine tool on the basis of CL data, and machining instructions such as speed, feed, machine tool constraints, etc.
8
Engineering Drawing Develop process plan for the part Write a part program using APT language Process part program generate CL data Generation of CL Data Correct the part program
Diagnostics
Part program
Flow Diagram
9
10
Subscripted Symbols Numbers Angles decimal degrees Arithmetic operators: + -Library functions
**
11
12
Postprocessor Statements
COOLNT/ : coolant to be turned on or off: COOLNT/ MIST COOLNT/ FLOOD COOLNT/ OFF UNITS UNITS/METRIC/INCH RAPID
13
Postprocessor Statements
FEDRAT/ : feedrate for moving the tool along the part surface
FEDRAT/ 75,MMPM
SPINDL/ : spindle rotation in revolutions per minute
LOADTL/ 11
14
Auxiliary Statements
MACHIN: specify machine tool and call the postprocessor
MACHIN/ MILL, 3
PARTNO: part program number, inserted at the start of the program.
PARTNO EXAMPLE6
PRINT: Display of tool geometry on screen (ON/OFF)
PRINT/ON
CLPRNT: indicates that a cutter location printout is desired.
15
Auxiliary Statements
CUTTER: cutter diameter for offset CUTTER/ 46 TOLERANCE : Nonlinear motion accomplished with straight-line segments INTOL/ 0.015 OUTTOL/ 0.01 FINI: specifies the end of the program
16
Specified path
Specifie d path
OUTTOL INTOL
17
Geometry statements
General format <Symbol>=Geometry/Definition & Modifiers Modifiers INTOF LARGE XSMALL PARLEL SMALL YLARGE PERPTO LEFT YSMALL TANTO RIGHT ZLARGE XLARGE ZSMALL
18
19
Center of a circle
PTG=POINT/CENTER,C4
20
Point (POINT)
PT C
LIN 3 PT D
C 1
= = = =
C1 C1 C1 C1
23
Line (LINE)
y
P2
P1
LIN1
Line (LINE)
L1A
PT51
C11
LEFT or RIGHT modifiers indicates whether the line is to the left or right tangent point
26
= = = =
Line (LINE)
L6
Right Left
C4
C3
Right Left
L8
L9 L7
L8=LINE/RIGHT,TANTO,C3,LEFT,TANTO,C4
29
PT6 C3
PT8 C7
Z Y
X
34
GOFWD/ : Move forward from a tangent position GOBACK/ : Move backward from a tangent position GOUP/ : Move up along the drive surface GODOWN/ : Move down along the drive surface
35
Exercise
36
PARTNO EXAMPLE5 $$POSTPROCESSOR STATEMENTS CLPRNT MACHIN/MILL,3 INTOL/0 OUTTOL/0.01 PRINT/ON $$ GEOMETRY STATEMENTS SP=POINT/0,0,10 P0=POINT/-70,-140 ZSURF/-10 $$ ALL GEOMTERY DEFINITIONS HAVE Z=-10
37
$$ CIRCLE DEFINITIONS C1=CIRCLE/0,0,30 C2=CIRCLE/-100,80,25 C3=CIRCLE/-100,-80,25 C4=CIRCLE/100,0,30 $$ LINE DEFINITIONS L1=LINE/RIGHT,TANTO,C1,LEFT,TANTO,C2 L2=LINE/LEFT,TANTO,C1,RIGHT,TANTO,C3 L3=LINE/LEFT,TANTO,C2,LEFT,TANTO,C4 L4=LINE/RIGHT,TANTO,C3,RIGHT,TANTO,C4
38
$$ TOOL PATH DEFINITION CUTTER/20 LOADTL/1 SPINDL/1200,RPM,CLW COOLNT/ ON $$ MOTION STATEMENTS FROM/SP RAPID TLLFT GOTO/P0 GODLTA/-20 AUTOPS GO/TO,L4 FEDRAT/50
39
$$ CONTINUOUS PATH MOTION STATEMENTS GOLFT/L4,TANTO,C3 GOFWD/C3,TANTO,L2 GOFWD/L2,TANTO,C1 GOFWD/C1,TANTO,L1 GOFWD/L1,TANTO,C2 GOFWD/C2,TANTO,L3 GOFWD/L3,TANTO,C4 GOFWD/C4,TANTO,L4 GOFWD/L4,TANTO,C3
40
GODLTA/20 GOTO/P0 COOLNT/OFF SPINDL/OFF RAPID GOTO/SP END $$ End of this program FINI $$ End of APT processing
41
CL File
$$ GEOMETRY STATEMENTS SP=POINT/0,0,10 *SP .0000 .0000 10.0000 P0=POINT/-70,-140 *P0 -70.0000 -140.0000 .0000 ZSURF/-10 $$ ALL GEOMTERY DEFINITIONS HAVE Z=-10 $$ CIRCLE DEFINITIONS C1=CIRCLE/0,0,30 *C1 .0000 .0000 30.0000 C2=CIRCLE/-100,80,25 *C2 -100.0000 80.0000 25.0000
42
CL File
$$ LINE DEFINITIONS L1=LINE/RIGHT,TANTO,C1,LEFT,TANTO,C2 *L1 .2288 .9735 .0000 30.0000 L2=LINE/LEFT,TANTO,C1,RIGHT,TANTO,C3 *L2 -.2288 .9735 .0000 -30.0000 L3=LINE/LEFT,TANTO,C2,LEFT,TANTO,C4 *L3 .3497 .9368 .0000 64.9739
43
CL File
$$ CONTINUOUS PATH MOTION STATEMENTS GOLFT/L4,TANTO,C3 *FEED -87.7591 -112.7897 -20.0000 GOFWD/C3,TANTO,L2 *CIR -100.0000 -80.0000 35.0000 CLW -108.0074 -45.9283 -20.0000 GOFWD/L2,TANTO,C1 *FEED 4.5756 -19.4695 -20.0000 GOFWD/C1,TANTO,L1 *CIR .0000 .0000 20.0000 CCLW 4.5756 19.4696 -20.0000
44
45