G10 Using G10 on a Fanuc Type Control

G10 Using G10 on a Fanuc Type Control


I am always amazed that so many companies still don’t use G10 in their CNC programs. If you know you know.

I must admit I fuckin hate a lot of the things that young people say like “can I get a Latte”. (Get behind this fuckin counter and make it yoursef if you want to “get it”).

Anyway I kind of like “If you know you know”

No G10… Is this you?

I am sure you have your reasons which I will accept. But if your reason is that you don’t understand it then that’s just not good enough.

So you make a part, it’s all setup and you need to break it down.

If you can fix the work holding in such a way that you can reload it in exactly the same place then you need G10.

Let me explain, watch this video to see how single point location works.

G10 No need to spend loads of money.

You could just bolt a sub plate to your machine table so that vices and chucks etc can have dowels to locate them.

But the main idea is that you can relocate your work holding in exactly the same place every time.

Using G10 on a Fanuc Type Control

This is your work offset page on a Fanuc control.


These figures are written in by hand or by automatic setting.

If you had written this line in your program.

G90 G10 L2 P1 X-440.500 Y-265.200 Z-443.00

They would have been written in automatically when you ran the program.

So the work offset page could have any values in G54 but as soon as you run your program this G10 command will replace them with its preset values.

Make Sure Your in Absolute

Try not to forget the G90 (Absolute) because you may accidentally be in G91 (Incremental). What would then happen is it would add these numbers to what is already in the work offset. Oh dear me.

In G90 it will always replace them.

You can write to G54 G55 G56 G57 G58 or G59 just by changing the P number.

G90 G10 L2 P1 X-140.600 Y-265.923 Z-400.00 (G54)

G90 G10 L2 P2 X-125.500 Y-236.865 Z-313.865 (G55)

G90 G10 L2 P3 X-800.500 Y-563.200 Z-125.00 (G56)

G90 G10 L2 P4 X-440.500 Y-265.200 Z-169.369 (G57)

G90 G10 L2 P5 X-440.500 Y-265.200 Z-123.568 (G58)

G90 G10 L2 P6 X-410.500 Y-235.200 Z-443.00 (G59)

The code above would setup all six work offsets.

What about the L2 you ask?

What’s that for?

L2 means you are writing to the work offsets (G54- G59)

But you can also write to the tool length offsets in which case it would be

G10 L10 P1 R200. (200 length into tool 1)

G10 L12 P1 R10.(10mm radius into tool 1)


Look David, I Have Shit Loads of Offsets

Don’t need your stupid G10.

Now I know some of us do have more offsets than you can shake a cheap memory stick at, but……..

With G10 it’s fixed in program so if some daft bastard alters your precious work offset you don’t give a flying monkey’s shit. Your program just reloads it.


G10 means your datum positions are saved with your CNC program.

The vice or fixture needs to be in exactly the same place when you next set it up.

You can use special single point location fixturing or just make a sub plate.

It’s great for horizontal machines.

Haas G10




October 24, 2019 at 7:09 pm

Dwar sir,
Can you explain all “L” Number and why use in program.


    November 1, 2019 at 6:59 pm

    L2 means repeat two times L3 means repeat three times


    November 1, 2019 at 7:00 pm

    Sorry I didnt realise it was in the G10 in G10 L1 is tool offsets L2 is work offsets


October 16, 2020 at 6:06 am

Would L2 P7 override G54.1?
If not, then what would?
I am currently nesting 30 parts (using G54.1, G54.2, .3, .4 etc) and this code would really help me out!
Regards, John.


    November 11, 2020 at 7:13 pm

    Yes you can write to G54.1 with a G10 command instead of L2 you use L20 to get to extended work offsets

Manish Singh

November 2, 2020 at 10:48 am

Sir G54.1 ye kaisa offset hai plz tell me answer

Solomon Kibebew

July 18, 2021 at 3:20 pm

Hi my name is Solomon I just need to ask you about G10,L,P what are they meant also G54.1 how do you use on G10 with L and P can you send me some program examples?

Pradeep kumar

November 27, 2021 at 5:04 am

H.m.c machine operator sector
V.m.c machine operator

Sunil kumar

December 16, 2021 at 11:44 am

If you want use work cordinate more then G59 then use P001 for G54.1 and P002 for G54.2…….. So on

Log out of this account

Leave a Reply

WP to LinkedIn Auto Publish Powered By : XYZScripts.com