0% found this document useful (0 votes)
642 views

Okuma Program Format

1. The document provides examples of G-code blocks for various CNC lathe operations including roughing, finishing, drilling, grooving, and threading. 2. It explains the purpose and parameters for common G-code commands like G85, G81, G42, G74, G73, and G71 that are used for each operation. 3. Notes sections provide additional details on how to fill in values for commands and ensure proper clearance positions between operations.

Uploaded by

mikadoturk
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
642 views

Okuma Program Format

1. The document provides examples of G-code blocks for various CNC lathe operations including roughing, finishing, drilling, grooving, and threading. 2. It explains the purpose and parameters for common G-code commands like G85, G81, G42, G74, G73, and G71 that are used for each operation. 3. Notes sections provide additional details on how to fill in values for commands and ensure proper clearance positions between operations.

Uploaded by

mikadoturk
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

 

   MFG 230 ­ Computer Aided Manufacturing  

   Okuma lathe code blocks, etc:                 
Complete site
menu:
1 program name / 1 NLAP (rough OD) 1 arc cutting (type 1)
graphics data
  Blackboard portal  2 NLAP (finish OD) 2 arc cutting (type 2)
   Provides access (through 2 startup block 3 drilling (x­axis, deep)
  
your Route­Y account) to 3 drilling (along z­axis,
homework, syllabus, etc. 3
tool change    into center of stock)
4 drilling (z­axis, off­center
               pattern)
command 4 grooving
(for current students only). 5 squaring the end face
Blackboard FAQs HERE.    
4 end of program 5 threading 6 keyway end face
Getting started tutorial HERE.
  Projects and labs 7 keyway longitudinal
  ­Wire EDM project   The one and only   8 longitudinal thread angle
  ­ CNC lathe chessmen COMPLETE PROGRAM EXAMPLE
9 longitudinal thread
  ­ Gibbs projects (uses several of the blocks of example
code, including an extra live tooling thread 10 offset circle
  Machine tutorials block).
    and CNC code 11 straight lines

­ Code blocks and   
­G&M code indices    
­ Sodick tutorial 1: $______.MIN% (the name of your program goes in the blank)
program DEF WORK
 Example syllabus  name & PS LC,[­40,0],[40,20]
­ includes complete class control
description and reading / END
panel
homework schedule. graphics DRAW
data  ­­­ 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___
...continue program...  
 ­­­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 ­ see
                                notes for the startup block of code for details)
...continue program...
 ­­­ NOTES ­­­ 

The X & Z right before the "G96 or G97" line should 
be the clearance position for the new tool.

4:   G97 S1000
end of
G00 Z___ (rapid return to clearance position)
program X20 Z20
M02
%

 
(start at rough stock clearance position)
G96 (constant surface speed setting)
G85 NLAP1 D__ F__ U__ W__
1: NLAP1 G81
rough OD
barstock NLAP 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.

(start at rough stock clearance position)
2: G96 (constant surface speed setting)
finish OD 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
drilling operation allow for clearance)
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)
grooving G00 X__ Z__ (rapid move to start of groove position ­ be sure to
operation ­ plunge
allow for clearance)
G73 X__ Z__ K__ D__ L__ F__
  ­­­ 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
threading to allow 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.)

   
G00X       C       T1111SB=400
1: G94 Z.5M13
live tooling arc  G01Z         F10.0
example
 #1
G102C        L       F20.0  
G00X       C       
G01Z       F10.0
G102C       L       F20.0
  ­­­ NOTES ­­­ 

G00X C: Positioning (C = angle). Open window with the
G94: Feed per minute mode (inch/min). program used
F10.0: Z­direction tool feed rate (see also just above).  to make the above
G102: Circular interpolation in contour generation (face, CW).  sample.
C__ L__: End point (C = angle, L = arc radius).
 G00X___ C___ T1111SB=3000  
G94Z.5M13
2: G01 Z­.125F10.0
live tooling arc  G103C330L1.125F20.0
example C270L1.125
 #2 C210L1.125
C150L1.125
C90L1.125
C30L1.125
G00X2.90Z.5C30
G01 Z­.125 F10.0
G103C330L1.325F20.0 Open window with the
C270L1.325 program used
C210L1.325  to make the above
C150L1.325 sample.
C90L1.325
C30L1.325...

  ­­­ NOTES ­­­ 

X___ C___ : Positioning (C: Angle)  
G94: Feed per minute mode (inch/min)
F10.0: Z­direction Tool Feed rate
G103: Circular interpolation in contour generation (Face) (CCW)
C ___ L ___ : End point (C: Angle, L: Arc radius)

3:
drilling x­axis 
(deep) G94 X1___ Z___ T1010 SB=1500
G183 X__ Z__ C__ I__ D__ E__ F__
C60
C120
C180
C240
C300 Open window with the
G180 program used
 to make the above
sample.
  ­­­ NOTES ­­­ 

 G183: M­tool compound fixed cycle: Deep­hole drilling.
C: Starting hole angle
I: Rapid feed from X1 to I (X1 ­ I), and then feed rate follows F___.
D: Peck feed stroke
E: Duration of dwell motion (second)
F: F value is the feed rate in inches per minute (IPM).

4: G94 X___ Z1___ T1111 SB=1500
drilling end G181 X___ Z___ C___ K___ F___
face (off center)
C60
C120
C180
C240
Open window with the
C300 program used
G180  to make the above
sample.
   ­­­ NOTES ­­­ 

  G181: M­tool compound fixed cycle: Drilling.
C: Starting hole angle
K: Rapid feed from Z1 to K (Z1 ­ K), and then feed rate follows F___.
F: F value is the feed rate in inches per minute (IPM).
G180: M­tool compound fixed cycle: Cancel.
G00X2.40C0T1111SB=3000
5: G94X2.4Z.5M13
G01 Z­.125 F10.0
squaring 
the  G101C90F20.0
end face C180
C270
C0
G00X2.60C0
G94X2.6Z.5M13
G01 Z­.250 F10.0
G101C90F20.0
C180
C270
Open window with the
C0
program used
 to make the above
sample.
  ­­­ NOTES ­­­ 

  G00X C : Positioning (C: Angle)
G94: Feed per minute mode (inch/min)
F10.0: Z­direction Tool Feed rate
G101: Linear interpolation in contour generation
C : End point (C: Angle, L: Arc radius)

6:
keyway end G94 X __ Z __ T1111 SB=3000
face X __ Z __
G190 X__ Z__ C__ K__ D__ W__ E__ F__
M211M213
C210
C330 Open window with the
G180 program used
 to make the above
sample.
   ­­­ NOTES ­­­ 

  G94: Feed per minute mode (inch/min)
G190: M­tool compound fixed cycle: Keyway Cutting Cycle
C: Angle
K: Arc Contour Offset
D: The Depth Cut/pass
W: Finish Cut Left
E: Secondary Feed rate
F: Feed rate
M211: Keyway Cutting cycle: Minus direction
M213: Keyway Cutting cycle: Designated depth infeed
G180: M­tool compound fixed cycle Cancel
  G94 X__ Z__ T1010 SB=3000  
7: X2.50Z­.5
G190 X__ Z__ C__ I__ D__ U__ E__ F__
longitudinal
keyway M211 M213
C45
C90
C135
C180
C225 Open window with the
C270 program used
C315  to make the above
sample.

  ­­­ NOTES ­­­ 

  G94: Feed per minute mode (inch/min)
G190: M­tool compound fixed cycle: Keyway Cutting Cycle
C: Angle
I: Contour Offset
D: The Depth Cut/pass
U: Finish Cut Left
E: Secondary Feed rate
F: Feed rate
M211: Keyway Cutting cycle: Minus direction
M213: Keyway Cutting cycle: Designated depth infeed
G180: M­tool compound fixed cycle: Cancel
   
8: G95 X__ Z__ T1010 SB=1000
longitudinal
G185 X__ Z__ C__ F__ SA=20
thread at
angle X2.05 C90
X1.95 C180
X1.85 C270
  G180 Open window with the
program used
 
 to make the above
sample.
   ­­­ NOTES ­­­ 

  G95: Feed per revolution mode (IPR)
T1010: M­tool number
G185: Longitudinal thread cutting (M­tool)
SB=1000: Live spindle (RPM)
SA=20: C­Axis spindle (RPM)
C0: Start point angle 0o
F: Cutting speed (IPR)
G180: M­tool compound fixed cycle: Cancel
   
9: G95 X__ Z__ T1010 SB=1000
longitudinal
G185 X__ Z__ C__ F__ SA=20
thread
X2.05 C0
X1.95 C0
X1.85 C0
  G180 Open window with the
program used
 
 to make the above
sample.
  ­­­ NOTES ­­­ 

  G95: Feed per revolution mode (IPR)
T1010: M­tool number
G185: Longitudinal thread cutting (M­tool)
SB=1000: Live spindle (RPM)
SA=20: C­Axis spindle (RPM)
C0: Start point angle 0o
F: Cutting speed (IPR)
G180: M­tool compound fixed cycle: Cancel
   
10: G00X__ C__ T1111SB=3000
offset circle G94 Z.5 M13
G01 Z­.125 F10.0
G103X__ C__ L__ F20.0
X2.0C0L0.75
G01 Z­.250 F10.0
  Open window with the
G103X1.0C180L0.75F20.0
program used
X2.0C0L0.75  to make the above
sample.
   ­­­ NOTES ­­­ 

  X__ C__ : Positioning (C: Angle)
G94: Feed per minute mode (inch/min)
F10.0: Z­direction Tool Feed rate
G103: Circular interpolation in contour generation (Face) (CCW)
C__ L__ : End point (C: Angle, L: Arc radius)
T1111: M­tool number
SB=3000: Live spindle (RPM)
F: Cutting speed (IPR)
   
11: G00X__ C__ T1111SB=3000
 straight lines
on end face
G94Z.5M13
G01Z__ F10.0
G101C__ F20.0
G00X__ Z__ C__ .
  G01Z­.250F10.0 Open window with the
program used
 
 to make the above
sample.
  ­­­ NOTES ­­­ 

  X__ C__ : Positioning (C: Angle)
G94: Feed per minute mode (inch/min)
F10.0: Z­direction Tool Feed rate
G101: Linear interpolation in contour generation
X__ Z__ C__ : End point (C: Angle)
       
other links...       
 

 
[ Professor Kohkonen's page ] [the School of Technology page] [the MFG program page]

Question or comments concerning this site may be directed to MET webmaster.   Last update: 17 Jul 2003

You might also like