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

Code Explanation Okuma

Uploaded by

Jason
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)
18 views

Code Explanation Okuma

Uploaded by

Jason
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/ 4

M42x3 Thread Cutting Program for Okuma LB9

CNC Programming Analysis


January 9, 2025

1 Program Overview
This program creates 4 threaded steel pieces (M42x3) using an Okuma LB9 lathe. The operation
includes rough cutting, fine cutting, and thread cutting operations.

2 Initial Calculations
2.1 Cutting Speed to RPM Conversion
For a diameter of 45mm:

• Rough cutting: 200 m/min = 200×1000


×45 = 1415 RPM

• Fine cutting: 300 m/min = 300×1000


×45 = 2122 RPM

• Thread cutting: 75 m/min = 75×1000


×45 = 530 RPM

3 Program Code with Explanations


O1000 (M42X3 THREAD CUTTING PROGRAM)
(MATERIAL: STEEL 45MM DIA)
(STOCK LENGTH: 80MM)
(QUANTITY: 4 PCS)

( INITIAL SETUP)
G21 G40 G80 G99 (METRIC, CUTTER COMP OFF, CYCLE CANCEL, FEED PER REV)
G50 S4500 (MAX SPINDLE SPEED LIMIT )
VZOFZ=80 ( Z AXIS OFFSET FOR PART LENGTH)

(ROUGH CUTTING − TOOL 5 )


T050505 (ROUGH TURNING TOOL)
G97 S1415 M03 (CONSTANT RPM, SPINDLE ON CW)
G00 X50 Z100 (RAPID TO SAFE POSITION)
M08 (COOLANT ON)

1
(ROUGH CUTTING CYCLE)
G71 U3 . 5 R1 . 0 (ROUGH CUTTING CYCLE, 3 . 5MM DEPTH, 1MM RETRACT)
G71 P10 Q20 U0 . 4 W0. 2 F0 . 3 (STOCK REMOVAL OF 0 . 4MM X, 0 . 2MM Z )
N10 G00 X40 (START OF PROFILE)
G01 Z0
X42 Z−1.5
Z−75 (FULL LENGTH)
N20 X45 (END OF PROFILE)

(FINE CUTTING − TOOL 1 )


T010101 ( FINISH TURNING TOOL)
G97 S2122 M03 (CONSTANT RPM)
G00 X50 Z100 (RAPID TO SAFE POSITION)
G41 (CUTTER COMPENSATION ON LEFT)
G70 P10 Q20 ( FINISHING CYCLE)

(THREAD CUTTING − TOOL 4 )


T040404 (THREADING TOOL)
G97 S530 M03 (CONSTANT RPM FOR THREADING)
G00 X50 Z100 (RAPID TO SAFE POSITION)

(THREADING CYCLE)
G76 P011560 Q100 R050 (THREAD CYCLE PARAMETERS)
G76 X41 . 3 5 Z−30 P1732 Q300 F3 . 0
( X41.35=THREAD MINOR DIA , Z−30=LENGTH, P1732=DEPTH∗ 1 0 0 0 , Q300=1ST PASS∗ 1 0 0 0 , F3.0=PITCH

G00 X100 Z100 (RETRACT TO SAFE POSITION)


M09 (COOLANT OFF)
M30 (PROGRAM END)

4 Detailed Command Explanations


4.1 Program Setup
• O1000: Program number
• G21: Metric mode
• G40: Cutter compensation off

• G99: Feed per revolution


• G50 S4500: Maximum spindle speed limit

2
4.2 Rough Cutting Cycle
The G71 cycle removes material in multiple passes:
• U3.5: Maximum cutting depth per pass

• R1.0: Retract amount


• F0.3: Feed rate limited to 0.3mm/rev as specified
• Stock removal is controlled to keep cut area below 0.9mm²

4.3 Fine Cutting Cycle


G70 finishing cycle follows the same path as rough cutting but with:
• Higher surface speed (300 m/min)
• Cutter compensation active (G41)

• Smaller nose radius (0.4mm) for better finish

4.4 Threading Cycle


G76 threading cycle parameters:
• P011560: Thread data (60° angle)
• Q100: Minimum cut depth
• R050: Finish allowance

• X41.35: Minor diameter for M42 thread


• Z-30: Thread length
• F3.0: 3mm pitch as specified for M42x3

5 Safety Considerations
• Safe positions programmed before tool changes
• Proper coolant control

• Conservative cutting parameters


• Appropriate feed rates for material

3
6 Production Notes
To produce all 4 pieces:
• Run program for each piece
• Check first article dimensions
• Monitor tool wear

• Verify thread pitch and dimensions

You might also like