G10 Using G10 on a Fanuc Type Control
Category : Fanuc Mill Fanuc Turn Haas Mill Haas Turn
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.
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)
WARNING THIS IS NOT THE SAME ON ALL FANUC CONTROLS
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.
Conclusion
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.
9 Comments
Vikas
October 24, 2019 at 7:09 pmDwar sir,
Can you explain all “L” Number and why use in program.
David
November 1, 2019 at 6:59 pmL2 means repeat two times L3 means repeat three times
David
November 1, 2019 at 7:00 pmSorry I didnt realise it was in the G10 in G10 L1 is tool offsets L2 is work offsets
John
October 16, 2020 at 6:06 amHI,
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.
David
November 11, 2020 at 7:13 pmYes 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 amSir G54.1 ye kaisa offset hai plz tell me answer
Solomon Kibebew
July 18, 2021 at 3:20 pmHi 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 amH.m.c machine operator sector
V.m.c machine operator
Sunil kumar
December 16, 2021 at 11:44 amIf you want use work cordinate more then G59 then use P001 for G54.1 and P002 for G54.2…….. So on