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.

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 workholding 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 were 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)



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.

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

Log out of this account

Leave a Reply

CNC Training Centre
WP to LinkedIn Auto Publish Powered By : XYZScripts.com