Rabu, 17 Agustus 2016

Fanuc G Codes List

Fanuc G Codes List

G00
Rapid traverse positioning.
  1. CNC G-Code G00 Rapid Traverse
  2. CNC G Code Introduction for CNC Programmers
G01
Linear interpolation.
  1. CNC G Code Introduction for CNC Programmers
  2. CNC Programming for Beginners a Simple CNC Programming Example
  3. Lathe CNC Programming Example
This is a very simple lathe cnc programming example. This lathe cnc programming example is for beginners level cnc programmers or for novice cnc programmers. Just simple cnc contour programming. The G code which are used in this programming example are from Fanuc cnc control.
Lathe CNC Programming Example

CNC Program in Fanuc G Code

N10 G90 S500 M03
N20 G00 X25 Z5
N30 G01 G95 Z0 F1
N40 G01 Z-7.5 F0.2
N50 G01 X60 Z-35
N60 G01 Z-50
N70 G00 X62
N80 G00 X80 Z20
N90 M30
G02
Circular interpolation clockwise.
  1. CNC Programming for Beginners a CNC Programming Example
  2. CNC Lathe Programming Example

CNC Program

N1 T01 D01 M491
N2 G00 X0 Z1
N3 G01 G96 G41 Z0 F2 S140
N4 G01 X2 CHF=0.125 F0.2
N5 G01 Z-1.125
N6 G02 X3.5 Z-1.875 CR=0.75
N7 G01 X3.75 CHF=0.125
N8 G01 Z-3.575
N9 G01 X5 Z-3.875
N10 G01 Z-4.6
N11 G00 X20 Z20 G40
N12 T02 D02 M491
N13 G00 G97 S500 X4 Z-2.825
N14 G01 X3.85 F1
N15 G01 X3.35 F0.15
N16 G01 X3.85 F0.5
N17 G00 X4
N18 G00 X20 Z20
N19 M30


G03
Circular interpolation counterclockwise.
  1. CNC Arc Programming Exercise
CNC arc programming exercise, shows how to cnc program an arc with I and K. CNC G-code G03 is used to program this arc.

CNC Arc Programming Exercise

N10 GOO X0 Z0
N20 G01 X12 F0.3
N30 G01 X40 Z-25
N40 G03 X70 Z-75 I-3.335 K-29.25
N50 G01 Z-95
N60 G00 X200 Z200

G04
Dwell time.
  1. G04 Dwell Time Calculation Made Easy
G10
Programmable Offset Setting or offset value setting.
  1. Fanuc G10 G-Code for CNC Machine Programmable Offset Setting
On a cnc lathe machine we do two types of offset setting. Tool Offset Setting and Workshift Setting. With G10 we can do both functions.

Workshift Value Setting or Machine Zero Offset Setting with Fanuc G10

This version of Fanuc G10 is used to set the workshift value. P00 means that we want to set the workshift value. The x-axis value is normally set to 0, the value for z-axis is the distance from the machine zero point to workpiece zero point (this distance is called workshift value or zero offset).
N10 G10 P00 X0 Z200

Tool Wear with Fanuc G10

This version of the Fanuc G10 code is a bit tricky, the value with P is the tool for which we want to make changes. This G10 code adds the given value to the tool wear offset .
N10 G10 P1 U0.02 W0.02

Tool Offset Setting or Tool Geometry Offsetting with Fanuc G10

This version of G10 sets the Tool Offset Setting. If you want to set the tool offset setting value for tool number 8 then you will add 10000 and the value will be (10000 + 8 = 10008), now put that value with P. For G10 x and z values put the tool value in x and z.
N10 G10 P10001 X95 Z54

G20
Measuring in inches or Programming in inches.
  1. Fanuc G20 Measuring in Inches with CNC Program Example
G21
Measuring in Millimeter or Programming in Millimeter.
  1. Fanuc G21 Measuring in Millimeter with CNC Lathe Programming Example
G33, G32
Thread cutting.
  1. CNC Fanuc G33 G32 Threading G Code
G70
Finishing cycle.
  1. CNC Programming Example with Fanuc G71 Rough Turning Cycle and G70
  2. Fanuc G70 G71 Rough and Finish Turning Cycle Program Example

CNC Programming Example

Fanuc G70 G71 Rough and Finish Turning Cycle Program Example
N10 T1 G97 S800 M03
N20 G00 X45 Z2 G42
N30 G71 U2 R1
N40 G71 P50 Q120 U0.25 W0.1 F0.25
N50 G00 X19.8
N60 G01 X23.8 Z-2 F0.2
N70 G01 Z-25
N80 G01 X28.07
N90 G01 X34 Z-33
N100 G01 Z-48
N110 G01 X42
N120 G01 Z-58
N130 G00 X100 Z100
N140 G92 S1200
N150 T3 G96 S150 M03
N160 G00 X45 Z3
N170 G70 P50 Q120
N180 G00 X100 Z100
N190 M30

G71
Stock removal in turning or Rough turning cycle or Turning canned cycle
  1. CNC Fanuc G71 Turning Cycle or Stock Removal Canned Cycle
  2. CNC Programming Example with Fanuc G71 Rough Turning Cycle and G70
  3. Fanuc G70 G71 Rough and Finish Turning Cycle Program Example
Here is another cnc programming example, this cnc programming example shows the use of G71 Canned Cycle and G70 for Fanuc CNC Control.
Although I already have posted about the G71 Turning Canned Cycle(Rough Turning Cycle), but that blog post just illustrates the use of G71 and G71 parameters.
This cnc programming example shows a complete contour cutting with G71 and finish cut on contour with G70.
G70 finishing cycle for fanuc cnc control can also be used with G72 Facing cycle for fanuc control. Usage of G70 Finishing cycle with G72 Facing cycle is same as shows here in the following example.
CNC Programming Example with Fanuc G71 Rough Turning Cycle and G70
N10 G00 G90 X142 Z171
N20 G71 U4 R1
N30 G71 P40 Q110 U4 W2 F0.3
N40 G00 X40
N50 G01 Z140 F0.2
N60 G01 X60 Z110
N70 G01 Z90
N80 G01 X100 Z80
N90 G01 Z60
N110 G01 X140 Z40
N120 G70 P40 Q110
N130 G00 X200 Z220
N140 M30


G72
Stock removal in facing or Facing Cycle or Canned cycle facing.
  1. CNC Fanuc G72 Canned Cycle Facing
G73
Pattern repeating.
  1. CNC Fanuc G73 Pattern Repeating Cycle
  2. CNC Fanuc G73 Pattern Repeating Cycle CNC Program Example
G74
Peck drilling in Z axis.
  1. Simple CNC Lathe Drilling with Fanuc G74 Peck Drilling Cycle
G75
Grooving in X axis.
  1. CNC Fanuc G75 Grooving Cycle
  2. Fanuc G75 Grooving Cycle CNC Program Example
  3. G75 Canned Cycle Grooving CNC Programming Example
G76
Thread cutting cycle or G76 threading cycle or Fanuc G76 threading cycle.
  1. Fanuc G76 Threading Cycle
  2. Tapered Threading with Fanuc G76
  3. Multi-Start Threading with Fanuc G76
  4. Controlling Thread Infeed with Fanuc G76
  5. G76 Threading Cycle One Line Format for Fanuc 10/11/15T
G-code G76 is a cnc cycle which is used for thread cutting on cnc machines.
Threading cycle G76 is explained here G76 Thread Cycle.
Taper thread cutting with G76 thread cycle is explained here G76 Tapered Threading
For Multi-start thread cutting with G76 see G76 Multi-Start Threading
For G76 threading cycle one line see G76 One-Line Format.
G76 threading cycle can be used for internal threading on cnc lathe machines.
This G76 threading example actually cuts external threads on two different diameters.





G76 Thread Cycle Example

G76 Thread Cycle a CNC Programming Example
N10 T3
N20 G97 S800 M03
N30 G00 X30 Z5 T0303
N40 G76 P021060 QI00 R100
N50 G76 X18.2 Z-20 P900 Q200 FI.5
N60 G00 X50 Z-20
N70 G76 P021060 Ql00 R100
N80 G76 X38.2 Z-52 P900 Q200 FI .5
N90 G00 X200 Z200
N100 M30

G92
CNC Fanuc G92 Threading Cycle.
  1. CNC Fanuc G92 Threading Cycle
  2. Taper Threading with G92 Threading Cycle
  3. CNC Programming Example G92 Taper Threading Cycle

Tidak ada komentar:

Posting Komentar