Code Explanation Okuma
Code Explanation Okuma
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:
( 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)
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)
(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
2
4.2 Rough Cutting Cycle
The G71 cycle removes material in multiple passes:
• U3.5: Maximum cutting depth per pass
5 Safety Considerations
• Safe positions programmed before tool changes
• Proper coolant control
3
6 Production Notes
To produce all 4 pieces:
• Run program for each piece
• Check first article dimensions
• Monitor tool wear