y
x
Part Programming
APT (Automatically Programmed Tool) is a
software compiler for simplifying numerical
control Programming.
7/3/2017
APT
APT (Automatically Programmed Tool) is a
software compiler for simplifying numerical
control Programming.
7/3/2017
APT Characteristics
Three-dimensional unbounded surfaces and points are
defined to represent the part to be made
7/3/2017
APT Statement Types (5)
Identification
Geometry
Motion
Postprocessor (feed, speed, coolant,
etc.)
Auxiliary (tool, tolerance, part, etc.)
7/3/2017
The general format for geometric statements is:
y
(3, 4, 5)
PTA
x
Point (POINT)
LIN2
PTB
LIN1
Point (POINT)
LIN3
C1
PTD
x
Point (POINT)
PTE
PTF C2
x
Point (POINT)
C6
PT7
x
Point (POINT)
PT11
7.3
27
x
Pattern (PATERN)
PATG
P16
Pattern (PATERN)
1 4 7 10
1
PAT2
PAT1 2 5 8 11
2
3 3 6 9 12
Grid = PAT7
Pattern (PATERN)
1 2 3 4
5 6 7 8 PAT8
9 10 11 12
Pattern (PATERN)
1 2 3 4
8 7 6 5
PAT11
9 10 11 12
Pattern (PATERN)
1 6 7 12
2 5 8 PAT12
11
3 4 9 10
Line (LINE)
P2
P1
LIN1
x
Line (LINE)
PT6
L4 (15, -30, 3)
x
Line (LINE)
y
(31, 6.2, 1.3)
x
Line (LINE)
L12 = LINE/ PT4, ATANGLE, 20, XAXIS
L14 = LINE/ PT1, ATANGLE, 40
L15 = LINE/ 32, -3, 2, ATANGLE, -15, XAXIS
L16 = LINE/ PT3, ATANGLE, 40, YAXIS
y
PT3 L14
40
PT1 L12
L16
PT4
40 20
15 x
L15
(32, -3, 2)
Line (LINE)
LIN = LINE/ POINT, SLOPE, NUMERICAL VALUE, LINE
y
LINE2
P1
LINE1
x
Line (LINE)
y
LINE2
P1
30 LINE1
x
Line (LINE)
LIN = LINE/ SLOPE, SLOPE VALUE, INTERC, MODIFIER, d
where the slope value is y/x. The modifier options are [XAXIS,
YAXIS], and d is the corresponding intercept value on the
selected axis (i.e., modifier).
LINE1
x
(6,0) Point of X-Intercept
Line (LINE)
LINE1
x
d
Line (LINE)
L1
C11
PT51
Line (LINE)
L3 Right
PT40
L1
Left
Left L4
PT51
Right L2
Line (LINE)
L6
Right
C4
Left
C3
Right
Left
L8 L9
L7
Line (LINE)
L6
Right
C4
Left
C3
Right
Left
L8 L9
L7
Line (LINE)
L6
Right
C4
Left
C3
Right
Left
L8 L9
L7
Line (LINE)
L6
Right
C4
Left
C3
Right
Left
L8 L9
L7
Line (LINE)
y
PNT6 PNT5
LN3
LN4
LN15
LN13
x
Plane (PLANE)
LN5
PLAN1
PLAN2
Plane (PLANE)
PLAN10
PT15
PT6 PT12
y 3.0
PT4
z
PLAN14
x
Plane (PLANE)
PLAN10
PT15
y PT6 PT12
3.0
PT4
z
PLAN14
x
Circle (CIRCLE)
C1 = CIRCLE/ 3, 6, 5, 4.3
C1 = CIRCLE/ CENTER, PT3, RADIUS, 4.3
y
C1
4.3
PT3
(3,6,5)
x
Circle (CIRCLE)
y y
LN4
PT5
PT6 PT8
C3 C7
x x
Circle (CIRCLE)
C1
y
3.0
C3
C2
2.0 YSMALL
1.5
YLARGE
LN4 LN6
XLARGE x
Circle (CIRCLE)
y C1
3.0
C3
C2
1.5 2.0 YSMALL
YLARGE
LN4
LN6
XLARGE
x
Circle (CIRCLE)
C1
y
3.0
C3
C2
1.5 2.0 YSMALL
YLARGE
LN4 LN6
XLARGE
x
Cylinder (CYLNDR)
CYL3 = CYLNDR/ XLARGE, TANTO, PLAN5, YSMALL, TANTO, PLAN10, RADIUS, 2.0
z
PLAN5
2.0
y
PLAN10
CYL3
x
Geometry Example
Top view
5.0 in.
The top view of a plate is Tangent point
0.5 in.
Side view
Geometry Example
PT1 = POINT/ 4, 5, 0 PT1 = (4,5,0)
Z = 0.0
0.6 in.
The Machining Plan
FROM/ PO P0 = (0,4,0.1)
GOTO/ P1
1.0 in. 1.0 in.
GODELTA/ 0, 0, -0.8
1.3 in.
GODELTA/ 0, 0, 0.8 P1 P2
GOTO/ P2
GODELTA/ 0, 0, -0.8 0.7 in.
P3
GODELTA/ 0, 0, 0.8
GOTO/ P3
GODELTA/ 0, 0, -0.8
GODELTA/ 0, 0, 0.8 Z = 0.0
GOTO/ PO
0.6 in.
The Machining Plan
TERMAC
The macro can be used any time in the APT program by
CALL macro name (, list of parameters)
The Machining Plan
P0 = (0,4,0.1)
PO = POINT/ 0, 4, 0.1
DELTA = MACRO/ DX, DY 1.0 in. 1.0 in.
GOTO/ DX, DY, ________ 1.3 in. P1 P2
GODELTA/ _______, ________, ________
GODELTA/ _______, ________, ________
TERMAC 0.7 in. P3
FROM/ PO
CALL DELTA/ DX = _______, DY = _______
CALL DELTA/ DX = _______, DY = _______
CALL DELTA/ DX = _______, DY = _______ Z = 0.0
GOTO/ PO
0.8 in.
The Machining Plan:
Contouring:
Part surface: the surface on which the end of the tool is
riding.
Drive surface: the surface against which the edge of the
tool rides.
Check surface: a surface at which the current tool motion
is to stop.
The Machining Plan
z
Drive surface Check surface
Direction of
cutter cutter motion
Part surface
The Machining Plan
CS CS CS
DS DS DS
TO ON PAST
The Machining Plan
TANTO :
A: GO/ TO, L1, TO, PL2, TANTO, C1
B: GO/ PAST, L1, TO, PL2, TANTO, C1
A (TO, L1)
Start point
C1
y
Check surface
L1 B (PAST, L1)
Drive surface
x
The Machining Plan
Motion commands:
GOLFT/ : Move left along the drive surface
GORGT/ : Move right along the drive surface
GOUP/ : Move up along the drive surface
GODOWN/ : Move down along the drive surface
GOFWD/ : Move forward from a tangent position
GOBACK/ : Move backward from a tangent position
The Machining Plan
B
A Start
Machining Specifications
FEDRAT/ : specifies the feed rate for moving the tool along the
part surface in inches per minute:
FEDRAT/ 4.5
SPINDL/ : gives the spindle rotation speed in revolutions per
minute:
SPINDL/ 850
TURRET/ : can be used to call a specific tool from an automatic
tool changer:
TURRET/ 11
Machining Specifications
Specified
Specified path
path
OUTTOL
INTOL
Machining Specifications
Specified
surface
Actual
surface
Offset = cutter radius - tool radius
Actual tool
(diameter = 0.5 in.) Cutter (diameter = 0.6 in.)
APT Contouring Example
PARTNO P1534
MACHIN/ MILL, 4 L4 P2
CLPRINT C2 L3
OUTTOL/ 0.0015 P3
P0 = POINT/ 0, 0, 1.1 P5
P1 = POINT/ 1, 1, 0.5
P2 = POINT/ 4, 3.5, 0.5 L5 L2
P3 = POINT/ 5.85, 2.85, 0.5 P4
PL1 = PLANE/ P1, P2, P3 y
PL2 = PLANE/ PARLEL, PL1, ZSMALL, 0.5
P1 = (1,1,0.5) C1
P4 = POINT/ 5, 1.85, 0.5
P5 = POINT/ 2, 2.5, 0.5 L1
x
C1 = CIRCLE/ CENTER, P4, RADIUS, 0.85
C2 = CIRCLE/ CENTER, P5, RADIUS, 1.0
L1 = LINE/ P1, RIGHT, TANTO, C1 Z = 0.5
L2 = LINE/ P3, LEFT, TANTO, C1
L3 = LINE/ P2, P3
Z=0
L4 = LINE/ P2, RIGHT, TANTO, C2
L5 = LINE/ P1, LEFT, TANTO, C2 z
MILLS = MACRO/ CUT, SSP, FRT, CLT
CUTTER/ CUT
x
APT Contouring Example
FEDRAT/ FRT
SPINDL/ SSP L4 P2
COOLNT/ CLT C2 L3
FROM/ P0 P3
GO/ TO, L1, TO, PL2, ON, L5 P5
GORGT/ L1, TANTO, C1
GOFWD/ C1, TANTO, L2 L5 L2
GOFWD/ L2, PAST, L3 P4
GOLFT/ L3, PAST, L4
y
GOFWD/ L4, TANTO, C2
GOFWD/ C2, TANTO, L5 P1 = (1,1,0.5) C1
GOFWD/ L5, PAST, L1
L1
COOLNT/ OFF
x
GOTO/ P0
Z = 0.5
TERMAC
TURRET 4
CALL/ MILLS, CUT = 0.52, SSP = 600, FRT = 3.0, CLT = FULL
TURRET/ 6 Z=0
CALL/ MILLS, CUT = 0.5, SSP = 900, FRT = 2.0, CLT = FULL
SPINDL/ 0
END
FINI
Complete APT Program
P0 = POINT/ 0, -2, 0
P1 = POINT/ 0.312, 0.312, 0
P2 = POINT/ 4, 1, 0
C1 = CIRCLE/ CENTER, P1, RADIUS, 0.312
C2 = CIRCLE/ CENTER, P2, RADIUS, 1
L2 = LINE/ RIGHT, TANTO, C2, RIGHT, TANTO, C1
L1 = LINE/ LEFT, TANTO, C2, LEFT, TANTO, C1
PL1 = PLANE/ P0, P1, P2
MILL = MACRO/ DIA
FROM/ P0 L2
GO/TO, L1, TO, PL1, TO, C2 P2
GOLFT/ L1, PAST, C1 P1
C1 C2
GOFWD/ C1, PAST, L2
L1
GOFWD/ L2, PAST, C2
GOFWD/ C2, PAST, L1
GOTO/ P0
TERMAC P0
CALL MILL / DIA = 0.70
END
FINI
Complete APT Program
P0 = POINT/ -1, -1
P1 = POINT/ 0, 0 y
P2 = POINT/ 3, 0
P3 = POINT/ 4, 0 C2
P4 = POINT/ 6.5, 5.5 L5
P0