Apt

Post on 12-Aug-2015

18 views 0 download

Tags:

description

cad

transcript

• NC program preparation may be tedious and difficult if the part to be machined has a complex geometry. The main difficulty is to find out the

Computer Aided Part Programming:

geometry. The main difficulty is to find out the cutter locations during the machining. Computers may be used to assist the programmers in preparing the NC codes.

2004 1

Advantages of applying computer-aided part programming include the following:

• It reduces the manual calculations involves indetermining the geometric characteristics of thedetermining the geometric characteristics of thepart.

• It provides the cutter path simulation.

• It provides tool collision checking.

• It shortens the program preparation time.

• It makes the program preparation easier.

2004 2

• The Aerospace Industries Association sponsored the work that led to the first part programming language, developed in MIT in 1955.

• This was called: Automatically Programmed Tools (APT).

APT

• This was called: Automatically Programmed Tools (APT).• APT is an English like simple programming language which

basically produce the Cutter Location (CL) data. • Using the cutter location data, the program can generate

the actual NC codes by using a postprocessor .

2004 3

APT Characteristics

•Three-dimensional unbounded surfaces and points are

defined to represent the part to be made

•Surfaces are defined in a X-Y-Z coordinate system

4/17/2011

•In Programming, the tool does all the moving; the part is

stationary.

•Linear interpolation is used for curved tool paths

APT Statement Types (5)

•Identification

•Geometry

•Motion

•Postprocessor (feed, speed, coolant, 0

4/17/2011

•Postprocessor (feed, speed, coolant, 0

etc.)

•Auxiliary (tool, tolerance, part, 0 etc.)

The general format for geometric statements is:

<Symbol> = Geometric Type/ Definitional

ModifiersModifiers

PointsPoints

Point (POINT)

PTA = POINT/ 3,4,5

y

(3, 4, 5)

PTA

x

z

Point (POINT)

PTB = POINT/ INTOF, LIN1, LIN2

LIN2

LIN1PTB

Point (POINT)

PTD = POINT/ YSMALL, INTOF, LIN3, C1

PTD = POINT/ XSMALL, INTOF, LIN3, C1

PTC = POINT/ YLARGE, INTOF, LIN3, C1

PTC = POINT/ XLARGE, INTOF, LIN3, C1 PTC

y

PTD

LIN3

C1

x

Point (POINT)

PTE = POINT/ YLARGE, INTOF, C1, C2

PTE = POINT/ XLARGE, INTOF, C1, C2

PTF = POINT/ YSMALL, INTOF, C1, C2

PTF = POINT/ XSMALL, INTOF, C1, C2

y

C1

PTE

x

C2

PTE

PTF

Point (POINT)

PT7 = POINT/ CENTER, C6

C6

y

PT7

x

Point (POINT)

PT11 = POINT/ P63, RADIUS, 7.3, ATANGLE, 27

y

27°

P63 = 3.1, 6.7

PT11

x

7.3

Pattern (PATERN)

<Symbol> = PATERN/ LINEAR, <start>, <end>, <n>

PATG = PATERN/ LINEAR, P16, PT3, 6

PTZ = POINT/ PATG, 5

PT3

PTZ = POINT/ PATG, 5

P16

PTZ

PATG

Pattern (PATERN)

<Symbol> = PATERN/ COPY, PAT1, ON, PAT2

PAT7 = PATERN/ COPY, PAT1, ON, PAT2

PAT2

PAT1

3

2

1

1

2

3

4

5

6

7

8

9

10

11

12

Grid = PAT7

Pattern (PATERN)

SAME: after the pattern designator will force that pattern

sequence no.s to follow their original sequence.

PAT8 = PATERN/ COPY, PAT1, ON, PAT2, SAME

1 2 3 4

5 6 7 8

9 10 11 12

PAT8

Pattern (PATERN)

UNLIKE: the sequence of points will be reversed on the 2nd

cycle from that of the 1st & the 3rd will be reversed from the

second & so on.

PAT11 = PATERN/ COPY, PAT1, ON, PAT2, UNLIKEPAT11 = PATERN/ COPY, PAT1, ON, PAT2, UNLIKE

1 2 3 4

57 68

9 10 11 12

PAT11

Pattern (PATERN)

PAT12 = PATERN/ COPY, PAT1, UNLIKE, ON, PAT2

1 6 7 121

2

3 4

5

6 7

8

9 10

11

12

PAT12

LinesLines

Line (LINE)

LIN1 = LINE/ P1, P2

y

LIN1

P1

P2

x

Line (LINE)

LIN4 = LINE/ PT6, 15, -30, 3

PT6

y

L4 (15, -30, 3)

x

Line (LINE)

LIN10 = LINE/ 20, 3.5, 0.2, 31, 6.2, 1.3

(31, 6.2, 1.3)

y

(20, 3.5, 0.2)

L10

x

Line (LINE)

L12 = LINE/ PT4, ATANGLE, 20

L14 = LINE/ PT1, ATANGLE, 40

L15 = LINE/ 32, -3, 2, ATANGLE, -15

L16 = LINE/ PT3, ATANGLE, 40, YAXIS

yPT3 L14

x

L16

PT3

PT1

L14

L12

PT4

(32, -3, 2)L15

40°

40° 20°

15°

Line (LINE)

LIN = LINE/ POINT, SLOPE, NUMERICAL VALUE, LINE

LINE2

y

P1

LINE1

x

LINE2 = LINE/ P1, SLOPE, 0.6, LINE1

Line (LINE)

LIN = LINE/ POINT, ATANGL, ANGLE (in degrees), LINE

LINE2

y

P1

LINE1

x

LINE2 = LINE/ P1, ATANGL, 30, LINE1

30°

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).

y

x

y

(6,0) Point of X-Intercept

LINE1

LINE1 = LINE/ SLOPE, 1, INTERC, x-axis, 6

Line (LINE)

LIN = LINE/ ATANGL, DEGREES, INTERC, MODIFIER, d

The modifier options are [XAXIS, YAXIS], and d is the

corresponding intercept value on the selected axis (i.e.,

modifier).

y

x

y

d

LINE1

θ = 30°

LINE1 = LINE/ ATANGL, 30, INTERC, d

Line (LINE)

The LEFT & RIGHT modifier indicates whether the line

is at the left or right tangent point, depending on how

one looks at the circle from the point.

L1 = LINE/ PT51, LEFT, TANTO, C11L1 = LINE/ PT51, LEFT, TANTO, C11

L1

C11

PT51

Line (LINE)

L2 = LINE/ PT51, RIGHT, TANTO, C11

L3 = LINE/ PT51, LEFT, TANTO, C11

L4 = LINE/ PT40, LEFT, TANTO, C11

L3 Right

Left

Right

PT51

L4

L2

Left

PT40

Line (LINE)

L6 = LINE/ LEFT, TANTO, C3, LEFT, TANTO, C4

L6

C3

L9

C4

L8

L7

Right

Left

Left

Right

Line (LINE)

L7 = LINE/ LEFT, TANTO, C3, RIGHT, TANTO, C4

L7 = LINE/ LEFT, TANTO, C4, RIGHT, TANTO, C3

L6

C3

L6

L9

C4

L8

L7

Right

Left

Left

Right

Line (LINE)

L8 = LINE/ RIGHT, TANTO, C3, LEFT, TANTO, C4

L6

C3

L6

L9

C4

L8

L7

Right

Left

Left

Right

Line (LINE)

L9 = LINE/ RIGHT, TANTO, C3, RIGHT, TANTO, C4

L9 = LINE/ LEFT, TANTO, C4, LEFT, TANTO, C3

C3

L6

L9

C4

L8

L7

Right

Left

Left

Right

Line (LINE)

LN3 = LINE/ PNT6, PARLEL, LN15

LN4 = LINE/ PNT5, PERPTO, LN13

yy

x

PNT6 LN3

LN15LN13

PNT5

LN4

Plane (PLANE)

LN5 = LINE/ INTOF, PLAN1, PLAN2

LN5

PLAN2

PLAN1

Plane Plane

Plane (PLANE)

PLAN10 = PLANE/ PT6, PT12, PT15

PT15

PLAN10

PT12PT6

PT4

y

x

zPLAN14

3.0

Plane (PLANE)

PLAN14 = PLANE/ PT4, PARLEL, PLAN10

PLAN14 = PLANE/ PARLEL, PLAN10, YSMALL, 3.0

PT15

PLAN10

PT15

PT12PT6

PT4

y

x

z

PLAN14

3.0

CirclesCircles

Circle (CIRCLE)

C1 = CIRCLE/ 3, 6, 5, 4.3

C1 = CIRCLE/ CENTER, PT3, RADIUS, 4.3

y

PT3

(3,6,5)

C1

y

x

4.3

Circle (CIRCLE)

C3 = CIRCLE/ CENTER, PT6, TANTO, LN4

C7 = CIRCLE/ CENTER, PT8, PT5

y y

C3

y

x

LN4

PT6

C7

y

x

PT8

PT5

Circle (CIRCLE)

C3 = CIRCLE/ YLARGE, LN6, XLARGE, LN4, RADIUS, 2.0

C3 = CIRCLE/ XLARGE, LN6, YSMALL, LN4, RADIUS, 2.0

yC1

1.5

3.0

2.0

y

x

C1

C3

C2

LN4 LN6

YSMALL

YLARGE

XLARGE

Circle (CIRCLE)

C1 = CIRCLE/ YLARGE, LN6, YLARGE, LN4, RADIUS, 3.0

y C1

1.5

3.0

2.0

y

x

C1

C3

C2

LN4LN6

YSMALL

YLARGE

XLARGE

Circle (CIRCLE)

C2 = CIRCLE/ XSMALL, LN6, XSMALL, LN4, RADIUS, 1.5

C2 = CIRCLE/ YLARGE, LN4, YSMALL, LN6, RADIUS, 1.5

C1

1.5

3.0

2.0

y

x

C1

C3

C2

LN4 LN6

YSMALL

YLARGE

XLARGE

Geometry Example

The top view of a plate is

shown in the following

figure. The outer shape of

this plate is to be milled &

the grid holes drilled. It is

5.0 in.

4.0 in.

Tangent point

1.25 in.

Top view

0.4 in.

0.7 in.

0.7 in.

12 0.375 the grid holes drilled. It is

therefore necessary to

define the geometry of the

part, i.e. its outer shape &

the location of the holes.

4.0 in.

Tangent point

Side view

1.0 in. 1.0 in. 1.0 in. 1.0 in.

12 0.375

in. holes

0.5 in.

Geometry Example

PT1 = POINT/ 4, 5, 0

PT2 = POINT/ 5, 4.6, 0

PT3 = POINT/ 8, 4.6, 0

PT4 = POINT/ 8, 3.2, 0

PT5 = POINT/ 9, 3.75, 0

C1 = CIRCLE/ CENTER, PT5, RADIUS, 1.25

PT6 = POINT/ 4, 1, 0

PT1 = (4,5,0)

L3

L1

1.25 in.

PT2 PT3

PT4

PT5

PT6 = POINT/ 4, 1, 0

L1 = LINE/ PT1, LEFT, TANTO, C1

L3 = LINE/ PT1, PT6

L2 = LINE/ PT6, RIGHT, TANTO, C1

PLAN1 = PLANE/ PT1, PT2, PT3

PLAN2 = PLANE/ PARLEL, PLAN1, ZSMALL, 0.5

PTN1 = PATERN/ LINEAR, PT2, PT3, 4

PTN2 = PATERN/ LINEAR, PT3, PT4, 3

PTN3 = PATERN/ COPY, PTN2, UNLIKE, ON, PTN1

PT6 = (4,1,0)

L2

PT4

Z = 0

y

x

z

x

The Machining Plan

Point- to- point: refers to operations requiring fast

movement (straight- line motions) to a point followed by

a manufacturing operation at that point.

FROM/ <point location>: denotes that the point location is a starting

point for the tool, with the end of the tool at that point.

GOTO/ <point location>: refers to a rapid, straight- line move to the

point location indicated.

GODELTA/ <coordinate increments>: commands the tool to move

incremental distance from the current position.

The Machining Plan

P1 = POINT/ 1.0, 2.7, 0.1

P2 = POINT/ 2.0, 2.7, 0.1

P3 = POINT/ 1.0, 2.0, 0.1

P0 = (0,4,0.1)

1.3 in.

0.7 in.

1.0 in. 1.0 in.

P1 P2

0.7 in.P3

Z = 0.0

0.6 in.

The Machining Plan

MACROS:A macro is a single computer instruction that

stands for a given sequence of instructions.

<name> = MACRO/ <possible parameters><sequence of instructions><name> = MACRO/ <possible parameters><sequence of instructions>

TERMAC

The macro can be used any time in the APT program by

CALL macro name (, list of parameters)

The Machining Plan

PO = POINT/ 0, 4, 0.1

DELTA = MACRO/ DX, DY

GOTO/ DX, DY, ________

GODELTA/ _______, ________, ________

GODELTA/ _______, ________, ________

P0 = (0,4,0.1)

1.3 in.

1.0 in. 1.0 in.

P1 P2

GODELTA/ _______, ________, ________

TERMAC

FROM/ PO

CALL DELTA/ DX = _______, DY = _______

CALL DELTA/ DX = _______, DY = _______

CALL DELTA/ DX = _______, DY = _______

GOTO/ PO

0.7 in. P3

Z = 0.0

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 theDrive 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

y

Direction of

Drive surface Check surface

cutter

x

Direction of

cutter motion

Part surface

The Machining Plan

CS CS CS

DS

TO

DS

ON

DS

PAST

The Machining Plan

TANTO :

A: GO/ TO, L1, TO, PL2, TANTO, C1

B: GO/ PAST, L1, TO, PL2, TANTO, C1

Start pointA (TO, L1)

Start point

L1

Drive surface

A (TO, L1)

B (PAST, L1)

C1

Check surface

y

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 surfaceGOUP/ : 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

GORGT/ <drive surface>, <check surface>

Start →A→ B → C → D → E → Start

FROM/ START

GO/ TO, L1, TO, PL1, ON, L3

z

yGO/ TO, L1, TO, PL1, ON, L3

GORGT/ L1, TANTO, C1

GOFWD/ C1, TANTO, L2

GOFWD/ L2, PAST, L3

GOLFT/ L3, PAST, L1

GOTO/ START

y

xC

B

C1

StartA

E

D

L3

L1

L2

Machining Specifications

Postprocessor commands for a particular machine tool are:

MACHIN/ : used to specify the machine tool and call the

postprocessor for that tool:

MACHIN/ DRILL, 3MACHIN/ DRILL, 3

COOLNT/ : allows the coolant fluid to be turned on or off:

COOLNT/ MIST

COOLNT/ FLOOD

COOLNT/ OFF

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 perSPINDL/ : 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

TOLERANCE SETTING: Nonlinear motion is accomplished in

straight-line segments, and INTOL/ and OUTTOL/ statements

dictate the number of straight-line segments to be generated.

INTOL/ 0.0015

OUTTOL/ 0.001

Machining Specifications

Specified

Specified

path

OUTTOL

Specified

path

path

INTOL

Machining Specifications

PARTNO: identifies the part program and is inserted at the start of

the program.

CLPRINT: indicates that a cutter location printout is desired.

CUTTER: specifies a cutter diameter for offset (rough versus finishCUTTER: specifies a cutter diameter for offset (rough versus finish

cutting). If a milling cutter is 0.5 in. in diameter and we have

CUTTER/ 0.6

then the tool will be offset from the finish cut by 0.05 in.

Machining Specifications

FINI: specifies the end of the program.

Specified

surface

Actual

surface

Actual tool

(diameter = 0.5 in.)Cutter (diameter = 0.6 in.)

Offset = 0.05 in.

Offset = cutter radius - tool radius

APT Language

Motion statements, with regard to point-to-point operation

there are three motion statements for positioning the tool at

a desired point:

� FROM/point_location� FROM/point_location

� GOTO/point_location

� GODLTA/∆x, ∆y, ∆z

63

APT Language

Example 1:

64

APT Language

Answer:P0 = POINT/0.0, 3.0, 0.1P1 = POINT/1.0, 1.0, 0.1P2 = POINT/2.0, 1.0, 0.1FROM/P0GOTO/P1GODLTA/0, 0, -0.7GODLTA/0, 0, 0.7GOTO/P2GODLTA/0, 0, -0.7GODLTA/0, 0, 0.7GOTO/P0

65

APT Language

Other Motion statements:� GO/{TO}, Drive surface, {TO} Part surface, {TO},

Check surfaceOr

� GO/{TO}, Drive surface, {TO} Part surface, {TANTO}, Check surfaceCheck surface

…And the same with PAST or ON instead of TO

� GOLFT/� GORGT/� GOUP/� GODOWN/� GOFWD/� GOBACK/

For example:

GO/TO, L1, TO, PS, TANTO, C1GO/PAST, L1, TO, PS, TANTO, C1

66

APT Language

Example 2:

67

APT Language

Answer:

FROM/SP

GO/TO, L1, TO, PS, ON, L4

GORGT/L1, PAST, L2

GOLFT/L2, PAST, L3

GOLFT/L3, PAST, C1GOLFT/L3, PAST, C1

GOLFT/C1, PAST, L3

GOLFT/L3, PAST, L4

GOLFT/L4, PAST, L1

GOTO/SP

68

APT Language

Example 3:

69

APT Language

Answer:FROM/SP

GO/TO, L1, TO, PS, ON, L6

GORGT/L1, PAST, L2

GORGT/L2, TANTO, C1

GOFWD/C1, TANTO, L3GOFWD/C1, TANTO, L3

GOFWD/L3, PAST, L4

GOLFT/L4, PAST, L5

GOLFT/L5, PAST, L6

GOLFT/L6, PAST, L1

GOTO/SP

70

APT Language

Additional statements:

� MACHIN/DRILL, 2

� COOLNT/

For example: COOLNT/MIST COOLNT/FLOOD COOLNT/OF

� FEDRAT/� FEDRAT/

� SPINDL/

For example: SPINDL/ON SPINDL/1250, CCLW

� TOOLNO/

� TURRET/

� END

71

APT Language

Other capabilities of APT, the macro facility, with use variable argument as in a FORTRAN subroutine, for example:

P0 = POINT/0.0, 0.3, 0.1FROM/P0CALL/DRILL, X=1.0, Y=1.0, Z=0.1, DEPTH=0.7CALL/DRILL, X=2.0, Y=1.0, Z=0.1, DEPTH=0.7CALL/DRILL, X=2.0, Y=1.0, Z=0.1, DEPTH=0.7GOTO/P0

when the definition of the macro DRILL is:

DRILL = MACRO/X, Y, Z, DEPTHGOTO/X,Y,ZGODLTA/0,0, -DEPTHGODLTA/0,0, DEPTHTARMAC

72

APT Language

Example 4 (1/2):

73

APT Language

Example 4 (2/2):

74

APT Language

Answer (1/4):

PARTNO PART11

MACHIN/MILL, 3 ;machine selection

CLPRINT ;prints out CL data file

OUTTOL/0.002

SP =POINT/5,0,1SP =POINT/5,0,1P1 =POINT/1,2,0.5 P2 =POINT/4,2,0.5P3 =POINT/6,4,0.5P4 =POINT/8,5,0.5 P5 =POINT/9,7,0.5P6 =POINT/2,7,0.5PL1 = PLANE/P1, P2, P3PS = PLANE/PARALEL, PL1, ZSMALL, 0.5

;define part surface to be z = 075

APT Language

Answer (2/4):

C1 = CIRCLE/CENTER, P4, RADIOUS, 1.0L1 = LINE/P2, P3L2 = LINE/P3, RIGHT, TANTO, C1 L3 = LINE/P5, LEFT, TANTO, C1 L4 = LINE/P5, P6 L4 = LINE/P5, P6 L5 = LINE/P6, P1 L4 = LINE/P1, P2MILL = MACRO/CUT, SPIN, FEED, CLNT

CUTTER/CUTFEDRAT/FEEDSPINDL/SPINCOOLNT/CLNTFROM/SP

76

APT Language

Answer (3/4):

FROM/SP

GO/TO, L1, TO, PS, ON, L6

GORGT/L1, TO, L2

GORGT/L2, TANTO, C1

GOFWD/C1, TANTO, L3

GOFWD/L3, PAST, L4

GOLFT/L4, PAST, L5

GOLFT/L5, PAST, L6

GOLFT/L6, PAST, L1

GOTO/SP

TERMMAC

TURRET/4

77

APT Language

Answer (4/4):

TURRET/4

CALL/MILL, CUT=0.52, SPIN=600, FEED=3.0, CLNT=ON

TURRET/6

CALL/MILL, CUT=0.5, SPIN=900, FEED=2.0, CLNT=ON

SPINDL/0

COOLNT/OFF

END

FINI

78

APT Contouring Example-1

P0 = POINT/ 0, 0, 1.1

P1 = POINT/ 1, 1, 0.5

P2 = POINT/ 4, 3.5, 0.5

P3 = POINT/ 5.85, 2.85, 0.5

PL1 = PLANE/ P1, P2, P3

PL2 = PLANE/ PARLEL, PL1, ZSMALL, 0.5

P4 = POINT/ 5, 1.85, 0.5

P5 = POINT/ 2, 2.5, 0.5

C1 = CIRCLE/ CENTER, P4, RADIUS, 0.85

C2 = CIRCLE/ CENTER, P5, RADIUS, 1.0

L4

C2

L5

L3

L2

P2

P5

P4

y

P3

C2 = CIRCLE/ CENTER, P5, RADIUS, 1.0

L1 = LINE/ P1, RIGHT, TANTO, C1

L2 = LINE/ P3, LEFT, TANTO, C1

L3 = LINE/ P2, P3

L4 = LINE/ P2, RIGHT, TANTO, C2

L5 = LINE/ P1, LEFT, TANTO, C2

L1

C1P1 = (1,1,0.5)

x

Z = 0.5

Z = 0

z

x

APT Contouring Example-5

FROM/ P0

GO/ TO, L1, TO, PL2, ON, L5

GORGT/ L1, TANTO, C1

GOFWD/ C1, TANTO, L2

GOFWD/ L2, PAST, L3

GOLFT/ L3, PAST, L4

GOFWD/ L4, TANTO, C2

GOFWD/ C2, TANTO, L5

GOFWD/ L5, PAST, L1

GOTO/ P0

END

L4

C2

L5

C1

L3

L2

P1 = (1,1,0.5)

P2

P5

P4

y

P3

END

L1

C1P1 = (1,1,0.5)

x

Z = 0.5

Z = 0

APT Program-6P0 = 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

L2FROM/ P0

GO/TO, L1, TO, PL1, TO, C2

GOLFT/ L1, TANTO, C1

GOFWD/ C1, TANTO, L2

GOFWD/ L2, TANTO, C2

GOFWD/ C2, TANTO, L1

GOTO/ P0

P1

P2

L2

L1

C1 C2

P0

APT Program-7

P0 = POINT/ -1, -1

P1 = POINT/ 0, 0

P2 = POINT/ 3, 0

P3 = POINT/ 4, 0

P4 = POINT/ 6.5, 5.5

C1 = CIRCLE/ CENTER, P3, RADIUS, 1

L0 = LINE/ P1, P2

L1 = LINE/ (POINT/ 5, 1), LEFT, TANTO, C1

y

P4

L3

C2

C3

L5

L6L1 = LINE/ (POINT/ 5, 1), LEFT, TANTO, C1

L2 = LINE/ (POINT/ 7, 1), PERPTO, L1

C2 = CIRCLE/ CENTER, P4, RADIUS, 0.5

L3 = LINE/ (POINT/ 7, 1), RIGHT, TANTO, C2

L4 = LINE/ (POINT/ 5, 6), LEFT, TANTO, C2

C3 = CIRCLE/ CENTER, (POINT/ 4, 6), (POINT/ 3, 6)

L5 = LINE/ (POINT/ 0, 6), (POINT/ 3, 6)

L6 = LINE, P1, PERPTO, L5

PL1 = PLANE/ P1, P2, P3

x

P0

P1 P2 P3

C1

L0L1

L2

L3

Complete APT ProgramGORGT/ L0, TO, C1

GORGT/ C1, TO, L2

GORGT/ L2, PAST, L3

GOLFT/ L3, TANTO, C2

GOFWD/ C2, TANTO, L4

GOFWD/ L4, PAST, C3

GOLFT/ C3, PAST, L5

GOLFT/ L5, PAST, L6

GOLFT/ L6, PAST, L0

TERMAC

y

P4

L3

C2

C3

L5

L6

TERMAC

FROM/ P0

GO/ TO, L0, TO, PL1, TO, L6

COOLNT/ ON

FEDRAT = 3

SPINDL = 400

CALLMILL/ DIA = 0.95

COOLNT/ OFF

END

FINI

x

P0

P1 P2 P3

C1

L0

L1L2

L3

APT Program

P0 = POINT/ 0, 0, 3

P1 = POINT/ 1, 0

L1 = LINE/ P1, SLOPE, 0

L2 = LINE/ P1, SLOPE, 90

L3 = LINE/ PARLEL, L1, YLARGE, 2

L4 = LINE/ (POINT/ 4, 2), SLOPE, 1, L3

L5 = LINE/ (POINT/ 6, 4), ATANGL, 270, L4

L6 = LINE/ (POINT/ 10, 0), PEPTO, L3L4

L6 = LINE/ (POINT/ 10, 0), PEPTO, L3

P2 = POINT/ INTOF, L3, L4

P3 = POINT/ INTOF, L4, L5

P4 = POINT/ INTOF, L5, L3

PL = PLANE/ P1, P2, P3L1

L3

L6 L2

L4L5

P0

APT Program

FROM/ P0

GOTO/ L1, TO, PL, TO, L2

GOFWD/ P1, PAST, L3

GORGT/ L3, TO, P2

GOLFT/ P2, TO, P3

GORGT/ P3, TO, P4

GORGT/ P4, PAST, L6

GORGT / L6, PAST, L1 L3 L3

L5L4

P2 P4

P3

GORGT / L6, PAST, L1

GORGT / L1, TO, P1

COOLNT/ OFF

END

FINI

P1 L1

L3 L3

L2 L6

P2 P4

P0

Other Part Programming Languages

• ADAPT (ADaptation APT) was the first attempt to adapt APT programming system for smaller computers

• AUTOSPOT (AUTOmatic Sytem for POsitioning Tools) was developed by IBM and first introduced in 1962

• EXAPT (EXtended subset of APT) was developed jointly in German in about 1964 by several universities to adapt APT for European use. It is compatible with APT and thus can use the same processor as APTis compatible with APT and thus can use the same processor as APT

• COMPACT was developed by Manufacturing Data Systems, Inc. (MDSI)

• SPLIT (Sundstrand Processing Language Internally Translated) was developed by Sundstrand Corporation, intended for its own machine tools

• MAPT (Micro-APT) is a subset of APT, to be run on the microcomputers

86