Chapter 3 p71-74
Chapter 3 p71-74
Computer-Assisted Programming
72
Computer-Assisted Programming
[Ch.3
define the cutter path. The APT processor is a computer program which
runs on a mainframe computer, possibly at a central site with timesharing facilities. The generalized APT output is converted to the
particular format G-code required by the CNC machine using a
postprocessor program. Although G-codes are fairly well standardized,
differences do exist between machine suppliers and CNC machines can
be supplied with a variety of subsets of available codes. A description of
postprocessor programs is given in Chapter 5.
APT is a three-dimensional system which can be used to define
complex geometrical shapes and to control up to five axes CNC
machines. A major advantage of APT is that it has developed into an
accepted standard for machine tools. There are many versions of the
APT language available, each with particular benefits and characteristics.
The prime disadvantage of APT is that it is uses English-like commands
to define geometry instead of the much more convenient graphical
methods. Other disadvantages are that it requires extensive computing
capability and can have a slow response (particularly with programmers
who use the system intermittently and require multiple overnight runs
on time-shared facilities).
The four types of statements in the APT language are:
geometry statements which define primitive elements such as
points, lines, circles, planes, cones and spheres
motion statements which describe the tool path in relation to
the part geometry
postprocessor statements which give specific machine tool code
information as well as feeds and speeds
auxiliary statements which give part and tool tolerances.
APT part programs usually list the part and the postprocessor reference
number followed by the program statements as follows:
PARTNO___
MACHIN/___
Geometry statements
Motion statements and machine tool commands
FINI.
3.1.1 Geometry Statements
The general form of geometry statements is:
symbol = geometry type / descriptive data
For example a point, named P1, can be defined at coordinates X = 100
mm, Y = 200 mm and Z = 300 mm by the statement:
P1 = POINT/100.0, 200.0, 300.0
A line, named L1, can be defined between two points, P1 and P2, by the
statement:
L1 = LINE/P1, P2
or through the point, P1, and parallel to another line, L2, by the
statement:
L1 = LINE/P1, PAREL, L2
Sec 3.1]
APT
73
A plane, named PL1, can be defined between three points, P1, P2 and P3,
by the statement:
PL1 = PLANE/P1, P2, P3
or through the point, P1, and parallel to another plane, PL2, by the
statement:
PL1 = PLANE/P1, PAREL, PL2
A circle, named C1, can be specified by a centre position, P1, and a
radius of 100 mm by the statement:
C1 = CIRCLE/CENTER, P1, RADIUS, 100.0
or by a centre position, P1, and tangent to line, L1, by the statement:
C1 = CIRCLE/CENTER, P1, TANTO, L1.
3.1.2 Motion Statements
Motion statements use the defined geometry primitives in order to
define tool movement. The general form of motion statements is:
motion statement/descriptive data
The instruction to go from an initial starting point, P1, and from which
all other points are referenced, is given by the statement:
FROM/P1
The instruction to go to the point, P2, is given by the statement:
GOTO/P2
or to go to the absolute position X = 100 mm, Y = 200 mm, and Z = 300
mm is given by the statement:
GOTO/100.0, 200.0, 300.0
The instruction to move by an incremental (or delta) amount from the
present position is given by the statement:
GODLTA/100.0, 200.0, 300.0
Contouring commands are used to direct the tool along two
intersecting surfaces. The drive surface guides the side of the cutter,
the part surface defines the position of the bottom of the cutter, and the
check surface defines the limit of current tool motion. Modifier words,
such as TO, ON, PAST or TANTO, are used to govern the position of the
tool in relation to the check surface, as shown in Figure 3.1. Motion
statements, GOLFT (go to the left), GOFWD (go forward) and GOUP (go
up), are also used to control the cutter motion.
The instruction for the tool to move forward, with the drive surface,
S1, on the left hand side, and past the check surface, S2, is given by the
statement:
GOLFT/S1, PAST, S2.
74
Computer-Assisted Programming
[Ch.3