APT Programming
APT Programming
Geometry Statements
Points
P1 = POINT/20.0,40.0,60.0
P2 = POINT/INTOF,L1,L2
Lines
A line defined in APT is considered to be infinite length
in both directions. Also, APT treats a line as a vertical
plane that is perpendicular to the x-y plane.
L3 = LINE/P3,P4
L4 = LINE/P5,PARLEL,L3
Computer-Assisted Part Programming
Geometry Statements
Circles
In APT, a circle is considered to be a cylindrical surface
that is perpendicular to the x-y plane and extends to infinity
in the z-direction.
C1 = CIRCLE/CENTER,P1,RADIUS,25.0
C2 = CIRCLE/P4,P5,P6
Planes
In APT, a plane extends indefinitely.
PL1 = PLANE/P1,P2,P3
PL2 = PLANE/P2,PARLEL,PL1
Computer-Assisted Part Programming
Geometry Statements
Motion Commands
The format of an APT motion command is:
Point-to-point motions
Motion Commands
Point-to-point motions
GOTO/P2
GODLTA/0,0,-50.0
GODLTA/0,0,50.0
Computer-Assisted Part Programming
Motion Commands
Contouring Motion Commands
Motion Commands
There are several ways in which the check
surface can be used. This is determined by
using any of four APT modifier words in the
descriptive data of the motion statement. The
four modifier words are TO, ON, PAST, and
TANTO.
Computer-Assisted Part Programming
Motion Commands
Use of the APT motion words. The tool has moved from a previous
position to its present position. The direction of the next move is
determined by one of the APT motion words GOLFT, GORGT,
GOFWD, GOBACK, GOUP, or GODOWN.
Computer-Assisted Part Programming
Motion Commands
To begin the sequence of motion commands, the FROM
statement is used. The statement following the FROM
command defines the initial drive surface, part surface, and
check surface. With reference to the following figure, the
sequence takes the following form:
FROM/PTARG
GO/TO,PL1,TO,PL2,TO,PL3
GO/TO,PL1,TO,PL2,TO,PL3
GORGT/PL3,PAST,PL4
Computer-Assisted Part Programming
Motion Commands
Note that PL2 is not mentioned in this new
command. PL3, which was the check surface
in the preceding command is now the drive
surface in the new command. And the new
check surface is PL4. Although the part
surface may remain the same throughout the
motion sequence, the drive surface and
check surface must be redefined in each new
contouring motion command.
Computer-Assisted Part Programming
Motion Commands
The planes around the part outline can be
replaced by lines, and the APT commands can
be replaced by the following:
FROM/PTARG
GO/TO,L1,TO,PL2,TO,L3
GORGT/L3,PAST,L4
Computer-Assisted Part Programming
Example APT Contouring Motion Commands
Computer-Assisted Part Programming
Example APT Contouring Motion Commands
Computer-Assisted Part Programming
Example APT Contouring Motion
Commands
Let us write the APT motion commands to profile
mill the outside edges of our sample workpart.
The tool begins its motion sequence from a target
point PTARG located at x=0, y=-50mm and z=10mm.
We also assume that "part surface" PL2 has been
defined as a plane parallel to the x-y plane and
located 25mm below the top surface of the part. The
reason for defining in this way is to ensure that the
cutter will machine the entire thickness of the part.
Computer-Assisted Part Programming
Examples:
PARTNO is the first statement in an APT program, used
to identify the program; for example, PARTNO SAMPLE
PART NUMBER ONE
REMARK is used to insert explanatory comments into
the program that are not interpreted or processed by the
APT processor.
FINI indicates the end of an APT program.
Computer-Assisted Part Programming
Example:
Computer-Assisted Part Programming
Example:
Drilling
Drill tool diameter = 7 mm
Tool number 1
N = 1000 r.p.m clockwise
Vf = 0.05 mm/min
Milling
End mill tool diameter = 20 mm
Tool number 2
N = 1000 r.p.m clockwise
Vf = 50 mm/min
Starting point (PTARG) at 0,-50,10
Computer-Assisted Part Programming
Solution:
PARTNO DRILLING AND MILLING
UNITS/MM
CUTTER/20
PTARG = POINT/0,-50,10
P1 = POINT/0,0,-10
P2 = POINT/160,0,-10
P3 = POINT/16,60,-10
P4 = POINT/35,90,10
P5 = POINT/70,30,10
P6 = POINT/120,30,10
P7 = POINT/70,60,10
P8 = POINT/130,60,10
L1 = LINE/P1,P2
L2 = LINE/P2,P3
L3 = LINE/P4,PARLEL,L1
L4 = LINE/P4,P1
Computer-Assisted Part Programming
C1 = CIRCLE/CENTER,P8,RADIUS,30
PL1 = PLANE/P1,P2,P3
REMARK Start Milling Operation
FROM/PTARG
LOADTL/02
SPINDL/1000,CLW
FEDRAT/50,IPM
COOLNT/FLOOD
GO/TO,L1,TO,PL1,TOL4
GORGT/L1,PAST,L2
GOLFT/L2,TANTO,C1
GOFWD/C1,PAST,L3
GOFWD/L3,PAST,L4
GOLFT/L4,PAST,L1
Computer-Assisted Part Programming
REMARK Start Drilling Operation
RAPID
GOTO/PTARG
SPINDL/OFF
COOLNT/OFF
LOADTL/01
RAPID
GOTO/P5
COOLNT/FLOOD
SPINDL/1000,CLW
FEDRAT/0.05,IPM
GODLTA/0,0,-20
GODLTA/0,0,20
RAPID
GOTO/P6
FEDRAT/0.05,IPM
GODLTA/0,0,-20
GODLTA/0,0,20
Computer-Assisted Part Programming
RAPID
GOTO/P7
FEDRAT/0.05,IPM
GODLTA/0,0,-20
GODLTA/0,0,20
RAPID
GOTO/P8
FEDRAT/0.05,IPM
GODLTA/0,0,-20
GODLTA/0,0,20
RAPID
GOTO/PTARG
SPINDL/OFF
COOLNT/OFF
FINI