Ooper Custom Drum Pedals
Ooper Custom Drum Pedals

- CNC

Ooper CNC

I have been turning in Okuma for about two years at the time of writing and I have noticed that there is a lack of good sources for basic CNC information such as descriptions of G-codes on the internet. Therfore I have decided to use this webpage to make a list with the G-codes that have been the most useful to me during my machining career. I am also working on making links to each G-code with a description that includes tips and tricks for the specific code.


I hope you will find this webpage valuable.

Topics covered on this website

G-codes for Okuma lathes

Here are some common G-codes for Okuma lathes that I have been using during my career.

Scroll down to find links to tips and tricks of the G-codes.

G code

Description

Tips and tricks

G00

Rapid movement in all axes


G01

Linear movement to given point


G02

Circular movement clockwise


G03

Circular movement counterclockwise


G04

Delay


G13

Choose revolver A


G14

Choose revolver B


G17

Milling radial compensation in the X-Y plane


G18

Milling radial compensation in the Z-X plane


G19

Milling radial compensation in the Y-Z plane





G40

Ending radial compensation

Available

G41

Radial tool compensation Left

Available

G42

Radial tool compensation Right

Available




G73

Grooving incrementaly in radial axis

Available

G74

End face grooving cycle

Available

G75

Automatic chamfer

Available

G76

Automatic fillet or radial chamfer

Available

G77

Cycle for right handed threading with tap





G80

Contour selection done

See G81 or G82

G81

Contour selection for axial roughing start

Available

G82

Contour selection for radial roughing start

Available

G83

Contour selection for contour lathing


G84

Change of cutting conditions for axial roughing


G85

Cycle for roughing start


G86

Cycle for contour lathing


G87

Cycle for fine lathing


G88

Cycle for continuous threading


G90

Absolute coordinates


G91

Incremental coordinates


G94

Cutting speed (mm/min)


G95

Feed (mm/r)


G96

Constant cutting speed


G97

Constant spindle speed





G101

Linear movement when using C-axis


G102

Circular movement clockwise using C-axis


G103

Circular movement counterclockwise using c-axis





G136

Cancel G137 / G138


G137

Y-movement consisting of X- and C-movement


G138

Y-movement using particular guidence





This page is just getting started(2024-06-16) and and is currently under development. More G-codes are under way and explaining images will be adressed.

M-codes for Okuma lathes

Here are some common M-codes for Okuma lathes.

M-code

Description

Tips and tricks

M01

Alternative stop/pause in program

M02

End program

M03

Start spindle clockwise

M04

Start spindle counter clockwise

M05

Turn of spindle

M08

Turn on coolant

M09

Turn off coolant


M12

Rotation tool: stop rotation


M13

Rotation tool: clockwise rotation


M14

Rotation tool: counterclockwise rotation


M15

Movement in positive direction around the C-axis


M16

Movement in negative direction around the C-axis








Contours

Introduction to contours


Contours are one of the most essential parts when lathing and any part regardless of how simple it is include som sort of contour, in this section I will show some basic contours and give explanations to how they work.

A simple external contour


Let me give you an example of a very basic contour that can be the outside of a simple part that will be made by turning.


G0 X20 Z5

G1 Z0 F0.1 G42

G1 X40

G1 Z-30

G0 X45

G40


The code above make a super simple corner but the problem with writing in this way is that the corner will become sharp and this will make it easy to get cuts in your fingers when handling the part, let me give you a basic way to remedy this, G75.


If I rewrite the code above using the G75 command instead of the G1 on the appropriate spots the code becomes:

G0 X20 Z5

G1 Z0 F0.1 G42

G75 X40 L0.5

G1 Z-30

G0 X45

G40

When using the G75 I will make a chamfer with size L0.5 in this case. If you want to know more about G75 click the button below.

Also the code above use radial compensation with G40 and G42, a button is also provided.

Contours in roughing cycles


A very common application of contours is using them as a basis for roughing cycles, both internal and external. This is done with the G80, G81, G85 commands.

N - denominating lines


When writing a line in Okuma you should start the line by writing N followed by a number.


N123


Followed by the content on the line.


N123 G01 X100


There are also cases when it is more appropriate to write N followed by a word or rather a small set of letters such as


NINT

Association


Ooper is associated with Foos Engineering, make sure to visit the Foos Engineering website.

2024 Copyright © All rights reserved