Unit - III CNC Part Programming
Unit - III CNC Part Programming
(f) Return the cutting tool to the reference point after completion of work.
2. Axis Designation
Block of Information
NC information is generally programmed in blocks of words. Each word
conforms to the EIA standards and they are written on a horizontal line.
If five complete words are not included in each block, the machine
control unit (MCU) will not recognize the information
N001 – represents the sequence number of the operation.
X12345 – will move the table in a positive direction along the X-axis.
; – End of block.
A typical block of program may be written as:
4. Standard G codes and M codes.
5. Tape program format.
Both EIA and ISO use three types of formats for compiling of NC data
into suitable blocks of information with slight difference.
7. Coordinate Word
8. Parameter for Circular Interpolation
9. Spindle Function
This is to command the cutter to move from the existing point to the target
point along a straight line at the speed designated by the F address.
15. Circular Interpolation
this is to command the cutter to move from the existing point to the target
point along a circular arc in clockwise direction or counter clockwise direction.
The parameters of the center of the circular arc is designated by I, J and K
addresses. I is the distance along the X-axis, J along the Y, and K along the Z.
SYMBOLS USED:
Example
01 (G81 Drilling Cycle) (All dimensions are in mm).
R00 – Dwell time at the starting point for chip removal.
R02 – Reference plane absolute with sign.
R03 – Final depth of hole absolute with sign.
R04 – Dwell time at the bottom of drilled hole for chip breaking.
R10 – Retract plane without sign.
R11 – Drilling axis number 1 to 3
N5 G17 G71 G90 G94 G55;
N10 T1 L90;
N15 G00 D5 Z5 M3 S600 X27 Y27;
N20 G81 R02=5, R03=-33, R11=3, F50 M7;
N25 X97;
N30Y97;
N35 X27;
N40 G00 G80 Z100 M9;
N45 M02;
DO-LOOPS:
Cutter path must be offset from actual part outline by a distance equal to the
cutter radius
There are four basic types of statements in the APT language:
1. Geometry statements:
The points, lines, and surfaces must be defined in the program prior to
specifying the motion statements. The general form of an APT geometry
statement is the following
FROM/PTARG
FROM/-20.0, -20.0, 0
Point-to-point motions:
Contouring motions
These are more complicated than PTP commands are because the tool’s position
must be continuously controlled throughout the move.
PARTNO SAMPLE PART DRILLING OPERATION
MACHIN/DRILL,01
CLPRNT
UNITS/MM
REMARK Part geometry, Points are defined 10 mm above part surface.
PTARG = POINT/0, -50.0, 10.0
P5 = POINT/70.0, 30.0, 10.0
P6 = POINT/120.0, 30.0, 10.0
P7 = POINT/70.0, 60.0, 10.0
REMARK Drill bit motion statements.
FROM/PTARG
RAPID
GOTO/P5
SPINDL/1000, CLW
FEEDRAT/0.05, IPR
GODLTA/0, 0, -25.0
GODLTA/0, 0, 25.0
RAPID
GOTO/P6
SPINDL/1000, CLW
FEEDRAT/0.05, IPR
GODLTA/0, 0, -25.0
GODLTA/0, 0, 25.0
RAPID
GOTO/P7
SPINDL/1000, CLW
FEEDRAT/0.05, IPR
GODLTA/0, 0, -25.0
GODLTA/0, 0, 25.0
RAPID
GOTO/PTARG
SPINDL/OFF
FINI