Home › G-codes › Okuma OSP › G11
G11 Coordinate parallel shift and rotation
Okuma OSP G-code · Mill
Shifts the program origin and can rotate the coordinate system by an angle. Handy for a feature that sits at an angle on the part.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
G11 X Y [P]
Addresses
| Address | What it does |
|---|---|
X Y | New origin position |
P | Rotation angle in degrees |
How it works
Modal. Cancel with G10.
Example program
O1000 (OKUMA MILL SAMPLE)
N1 G15 H1 (WORK COORDINATE SYSTEM 1)
N2 G11 X2. Y1. P30. (SHIFT ORIGIN AND ROTATE 30 DEGREES)
N3 CALL O100 (CUT THE FEATURE)
…
N1 G15 H1 (WORK COORDINATE SYSTEM 1)
N2 G11 X2. Y1. P30. (SHIFT ORIGIN AND ROTATE 30 DEGREES)
N3 CALL O100 (CUT THE FEATURE)
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Rotation turns the feature around the new origin, not the old one.
- Always cancel with G10 at the end. It is easy to forget on a reset.
Related codes
G11 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Cancel programmable data input mode |
| Heidenhain TNC (ISO) | Straight line at feed rate, polar |
| Fagor 8055 8065 | Mirror image on X |
| Hurco WinMax (NC) | Data setting mode cancel |
Every G-code for Okuma OSP in your pocket. The app has the full example programs, search by number or shop word, a line decoder and calculators for tapping, threading and drilling.
Open G11 in the app All Okuma OSP G-codes