0% found this document useful (0 votes)
2K views

Okuma Program Example

This document provides instructions for a CNC program to machine various features on a metal barstock including: 1. A roughing cycle to machine the outer diameter to the finish size using a constant surface speed setting and roughing parameters. 2. A finishing cycle to further machine the outer diameter to the final size using the same constant surface speed setting. 3. A drilling operation using a drilling cycle command to drill holes at specified locations with given parameters. 4. A grooving operation using a grooving cycle command to cut grooves at specified locations with given parameters such as depth and feed rate. 5. A threading operation using a threading cycle command to cut external threads at a specified location

Uploaded by

enamicul50
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2K views

Okuma Program Example

This document provides instructions for a CNC program to machine various features on a metal barstock including: 1. A roughing cycle to machine the outer diameter to the finish size using a constant surface speed setting and roughing parameters. 2. A finishing cycle to further machine the outer diameter to the final size using the same constant surface speed setting. 3. A drilling operation using a drilling cycle command to drill holes at specified locations with given parameters. 4. A grooving operation using a grooving cycle command to cut grooves at specified locations with given parameters such as depth and feed rate. 5. A threading operation using a threading cycle command to cut external threads at a specified location

Uploaded by

enamicul50
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

$______.

MIN% (the name of your program goes in the blank)


1: DEF WORK
program PS LC,[-40,0],[40,20]
name & END
data DRAW
--- NOTES ---
[-40,0] gives a Z shift of -4.0" and X shift of 0"
[40,20] means a part length of 4.0" and diameter of 2.0"
G00 X20 Z20 (rapid move to the home position)
2: G50 S2500 (upper limit on the RPMs)
startup X___Z___S1000 T010101 M03 M42 M08
block G96 or G97 S___
---NOTES ---

Fill in the blanks for the X and Z values with the clearance position of
the first cut.
If you use G96, you'll get a constant surface speed; S = CSS.
If you use G97 you need to specify a RPM value; S = desired RPM.

G00 X__ Z__ M9 (move for workpiece clearance)


3: G97 S1000 (direct control of RPM)
tool G00 X20 Z20 (tool change position)
change X__ Z__ S1000 T020202 M03 M08
command G96 or G97 S____ (back to CCS or direct control of RPM -
--- NOTES ---

The X & Z right before the "G96 or G97" line should


be the clearance position for the new tool.
G97 S1000
4: G00 Z___ (rapid return to clearance position)
end of X20 Z20
program M02
%
1: (start at rough stock clearance position)
rough OD G96 (constant surface speed setting)
barstock G85 NLAP1 D__ F__ U__ W__
NLAP NLAP1 G81
G00 X0
G01 Z0 G42 F___
___________ (profile code)
G40 X______ (X -clearance posistion)
G80
--- NOTES ---

The G85 command triggers the rough cut subroutine - NLAP1 means
that its the subroutine #1, and the D value is the depth of the cut (the
depth as diameter).
The F value is the roughing feedrate in inches per revolution (IPR), the U
value is the OD of the finish (0 .030 typ.), and the W value is the shoulder
finish (0 .004 typ.).
The G81 command is for longitudinal profile cuts.
The G42 command sets tool compensation right - the F value is the
finish feedrate.
The G40 command turns the tool compensation off.
The G80 command signals the end of the subroutine.

2: (start at rough stock clearance position)


finish OD G96 (constant surface speed setting)
barstock G87 NLAP1
NLAP
--- NOTES ---

The G87 command calls the finish subroutine - this NLAP number
matches with the rough NLAP number, thus "NLAP1".
G97 S_______ (direct control of RPM)
3: G00 X__ Z__ (rapid move to start of drill position - be sure to allow for
drilling clearance)
operation G74 X0 Z-__ D__ L__ F__ E__
G00 X__ Z__ (move to clearance position)
--- NOTES ---
The G74 command signals the start of the drilling cycle. The Z value is the depth
value, the D value is the dwell increment (for chip break), the L value is the retraction
increment (clearance for the broken chips), the F value is the feedreate in inches per
revolution (IPR), and the E value is the dwell time (in seconds).

4: G97 S_______ (direct control of RPM)


G00 X__ Z__ (rapid move to start of groove position - be sure to allow for
grooving
clearance)
operation -
G73 X__ Z__ K__ D__ L__ F__
plunge
--- NOTES ---

The G73 signals the start of the grooving cycle. The X value sets the groove depth
diameter, the Z value is the finish point z coordinate, the K value specifies the shift
amount in the z direction, the D value sets the dwell increment (for chip breakage), the
L value is the retraction increment (clearance for the broken chips), and the F value is
the feedreate in inches per revolution (IPR).
G97 S_______ (direct control of RPM)
5: G00 X__ Z__ (rapid move to start of threading position - be sure to allow
threading for clearance)
operation G71X__ Z__ B__ D__ U__ H__ F__ M33M73
--- NOTES ---
The G71 command signals the beginning of a thread cutting cycle. The X value is the
minor diameter of the thread, the Z value is the termination point of the thread, the B
value is the thread angle, the D value is the depth of the first cut (diameter), the U
value is the finish allowance (also in diameter), the H value is the thread height (again
in diameter), and the F value is the thread lead (the feed rate in inches per minute).
The M33 means that there will be a zigzag inffed cutting pattern, and M73 sets the
infeed depth to pattern #1. (See manual.)

You might also like