Professional Documents
Culture Documents
MEE 4430
UNIT 4
Unit 4
2
AUTOMATICALLY PROGRAMMED TOOLS (APT)
APT or Automatically Programmed Tool is a high-level
computer programming language used to generate
instructions for numerically controlled machine tools.
• Developed by Douglas T. Ross of the Servomechanisms Laboratory
at MIT in 1956.
• This early language was used widely in the 1970s and is still a
standard internationally.
• APT is used to program CNC machine tools to create complex
parts using a cutting tool moving in space.
• It is used to calculate a path that a tool must follow to generate a
3
desired form.
APT
There are four types of statements in the APT language.
• Geometry Statements:
– These define the geometric elements that comprise the work
part. They are also sometimes called definition statements.
• Motion Statements:
– These are used to describe the path taken by the cutting tool.
• Postprocessor Statements:
– These apply to specific machine tool and control system.
– They are used to specify feeds and speeds and to actuate other
features of the machine.
• Auxilliary Statements:
– These are miscellaneous statements and to identify the part,
tool, tolerances and so on.
4
APT
Geometry Statement:
A geometric statement in APT takes the following form:
symbol = geometric type/ descriptive data
P1 = POINT/L1, L2
P1
C1 L3
7
C1 P4
4. By two intersecting circles C2
P4 = POINT/YLARGE, INTOF, CI, C2
P5 = POINT/YSMALL, INTOF, C1,C2 P5
C1 .
8
LINE
L1
1. By the coordinates of two points. P1 .
L1 = LINE/2,1,0,5,3,0 P2
2. By two points.
.
L1= LINE/ P1,P2
L1
C1
3. By a point and tangent to a circle.
L1 = LINE/P1, LEFT, TANTO, C1
L2 = LINE/P1, RIGHT, TANTO, C1 L2
P1
The descriptive words LEFT and RIGHT are
used by looking from the point toward the
Circle.
9
4. By a point and the angle of the line to the x-axis or another line.
L3 = LINE/ P1, LEFT, ATANGL, 20 L4
10
CIRCLE
12
There are several ground rules that must be followed in formulating
an APT geometry statement:
14
Problem: Write the geometry statement for the figure shown
below.
15
P0 = POINT/ 0, -1.0, 0
P1 = POINT/ 6.0, 1,125, 0
P2 = POINT/0, 0, 0
P3 = POINT/6.0, 0,0
P4 = POINT/1.75, 4.5, 0
L1 = LINE/P2, P3
C1 = CIRCLE/CENTER, P1, RADIUS, 1.125
L2 = LINE/P4, LEFT, TANTO, C1
L3 = LINE/P2, P4
PL1 = PLANE/P2, P3, P4
16
APT
Motion Statement:
A motion statement in APT takes the following form:
Motion command/descriptive data
The statement consists of two sections separate by slash.
The first section is the basic motion command, which tells the tool
What to do?.
The second section comprised of descriptive data, which tells the
tool Where to go.
FROM is a APT vocabulary which indicates that this is the initial point
from which others will be referenced.
FROM statement occurs only at the starting of the motion sequence.
TARG is the symbol given to the starting point. Any other APT symbol
could be used to define the target point. Another way to make this
statement is: FROM/-2.0, -2.0, 0.0
Where the descriptive data in this case are the x, y, and z coordinates
of the target point.
18
POINT- TO- POINT MOTIONS
There are only two basic PTP motion commands.
GOTO, GODLTA
GOTO: GOTO statement instructs the tool to go to a particular point
location specified in the descriptive data.
For example:
GOTO/P1
GOTO/2.0, 7.0, 0.0
GODLTA: GODLTA command specifies an increment move for the
tool.
For example:
GODLTA/2.0, 7.0, 0.0
The statement instructs the tool to move from its present position 2
in the x-direction and 7 in the y- direction. The z coordinates
remains unchanged.
19
The GODLTA command is useful for drilling and related operations
The tool can be directed to a particular hole location with GOTO
statement.
Then the GODLTA command would be used to drill the hole.
GOTO/P2
GODLTA/0,0,-1.5
GODLTA/0,0.+1.5
20
Problem 2: Write the APT geometry and motion statement necessary
to perform drilling operation.
21
P1 = POINT/1.0, 2.0, 0
P2 = POINT/1.0, 1.0, 0
P3 = POINT/ 3.5, 1.5, 0
P0 = POINT/ -1.0, 3.0, 2.0
FROM/P0
GOTO/P1
GODLTA/0, 0, -1.0
GODLAT/0, 0, +1.0
GOTO/P2
GODLTA/0, 0, -1.0
GODLAT/0, 0, +1.0
GOTO/P3
GODLTA/0, 0, -1.0
GODLAT/0, 0, +1.0
GOTO/P0
22
CONTOUR MOTIONS
Contouring commands are
somewhat more complicated
because the tool positions must
be continuously controlled
throughout the move.
23
Part Surface: This is a surface on
which the bottom of the cutter
rides. It controls the depth of the
machining operation.
24
• There are several ways in which the check surface can be used.
• This is determined by APT modifier words within the descriptive
data of the motion statement.
• The three main modifier words are:
TO, ON, PAST, TANTO
25
• The APT contour motion statement commands the cutter to
move along the drive and part surface and the movement ends
when the tool is at the check surface.
• There are six motion commands:
GOLFT, GOFWD, GOUP, GORGT, GOBACK, GODOWN
26
• There are six 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
27
• In commanding the cutter, the programmer must keep in mind
where it is coming from.
• As the tool reaches the new check surface, does the next
movement involve a right turn or an upward turn or what?
28
• To begin the sequence of motion commands, the FROM
statement, is used in the same manner as for PTP moves.
• The statement following the FROM statement defines the initial
drive surface, part surface, and check surface.
FROM/TARG
GO/TO, drive surface, TO, part surface, TO, check surface
FROM/TARG
GO/TO, PL1,TO, PL2 TO, PL3
29
FROM/TARG
GO/TO, PL1,TO, PL2 TO, PL3
The symbol TARG represents the target point where the operator
has set up the tool.
The periphery of the cutter is tangent to PL1 and PL3 and the
bottom of the cutter is touching PL2.
When looking at a part drawing the sides of the part appear as lines.
On the actual part, they are three-dimensional surfaces.
34
MOTION STATEMENT
FROM/P0
GO/TO, L1, TO, PL1, TO L3
GORGT/L1, TANTO, C1
GOFWD/C1, PAST, L2
GOFWD/L2, PAST, L3
GOLFT/L3, PAST, L1
GOTO/P0
GEOMETRY STATEMENT
P0 = POINT/ 0, -1.0, 0 How is cutter size accounted
P1 = POINT/ 6.0, 1,125, 0 for in the APT program?
P2 = POINT/0, 0, 0 How are feeds and speeds
P3 = POINT/6.0, 0,0 specified?
P4 = POINT/1.75, 4.5, 0
L1 = LINE/P2, P3 These and some other
C1 = CIRCLE/CENTER, P1, RADIUS, 1.125 questions are answered by
L2 = LINE/P4, LEFT, TANTO, C1 POSTPROCESSOR and
L3 = LINE/P2, P4 AUXILLIARY statements.
35
PL1 = PLANE/P2, P3, P4
Postprocessor Statements
Such statements are used to define cutter size, specify speeds and
feeds, turn coolant flow on and off, and control other features of the
m/c tool.
36
Postprocessor Statements
MACHIN/ Used to specify the machine tool and to call the post
processor for the machine tool.
MACHIN/MILL, 1
The MILL identifies the machine tool type and 1 identifies the
particular machine and postprocessor.
42
symbol = MACRO/parameters definition (s)
• The rules for naming MACRO symbol are the same as for any
other APT symbol.
• The parameter definition (s) following the slash would identify
certain variables in the subroutines which might change each time
the subroutine was called in use.
• The very last statement in the set must be the APT word TERMAC.
This signifies the termination of the MACRO.
• To activate the MACRO subroutine within an APT program, the
following call statements would be used:
L2
P2
P1
C1 C2
L1
P0
Exercise 2
C2
L5
P4
C3
L6 L3
L2
P1 L0 L1
P2 P3
x
C1
P0
Exercise 3
P3
L4 L5
P2 P4
L3 L3
L2 L6
P1 L1
P0
END OF 4th UNIT
49