Search

Showing posts with label CNC Programming Basics. Show all posts
Showing posts with label CNC Programming Basics. Show all posts

[ Video ] CNC Programming, G-Code Tutorials

CNC Programming | G-Code






* Best ebooks for CNC programming: 
CNC Programming Basics 
G-Code and M-Code 
CNC programming 
G-Code Reference 
CNC Machine Tutorial 

1. CNC PROGRAMMING G-Code basics




***********************************

[CNC Programming Examples] Fanuc G76 Thread Cycle for Dummies

Fanuc G76 Thread Cycle for Dummies



Fanuc G76 Thread Cycle for Dummies
Fanuc G76 Thread Cycle for Dummies explains Fanuc G76 threading cycle briefly. Fanuc G76 gives cnc machinist full control over thread turning.
Fanuc G76 threading cycle has multiple parameters but the same way Fanuc G76 gives full flexibility in thread cutting.
This article is actually to help cnc machinists to easily navigate through multiple articles explaining Fanuc G76 threading cycle.
Below are quick links,
  • Fanuc G76 Threading Cycle
  • G76 Threading Cycle One Line Format for Fanuc 10/11/15T
  • Tapered Threading with Fanuc G76 threading cycle
  • Multi-Start Threading with Fanuc G76 threading cycle
  • Controlling Thread Infeed with Fanuc G76 threading cycle
  • How to Fully Control G76 Threading Cycle Number of Pass and Depth of Cut
For explanation of all the variations of Fanuc G76 see below
Contents
  • CNC Fanuc G76 Threading Cycle
  • One Line Format for Fanuc 10/11/15T
  • Tapered Threading
  • Multi Start Threads
  • Controlling Threading Infeed Angle
  • Controlling Number of Pass and Depth of Cut

CNC Fanuc G76 Threading Cycle

CNC Fanuc G76 Threading Cycle this article briefly explains all the parameters of Fanuc G76 threading cycle, like the following cnc programming code for fanuc g76 threading cycle
N5 G76 P010060 Q100 R0.05
N6 G76 X30 Z-20 P1024 Q200 F2

One Line Format for Fanuc 10/11/15T

G76 Threading Cycle One Line Format for Fanuc 10/11/15T, Fanuc control models 10/11/15 use a single-block format for G76 threading cycle.
G76 X.. Z.. I.. K.. D.. A.. F.. P..

Tapered Threading

Tapered Threading with Fanuc G76 Threading Cycle this post explained how a cnc machinist can cut Tapered Threadswith Fanuc G76 threading cycle.


Tapered Threading with Fanuc G76 Threading Cycle
The following cnc programming code is explained in the above post.
N5 G00 X50 Z5
N6 G76 P010060 Q100 R0.05
N7 G76 X43 Z-45 P1024 Q200 R-14.5 F2

Multi Start Threads

Multi Start Threads with Fanuc G76 Threading Cycle this article fully describes how to cut Multi-Start threads on cnc machine with Fanuc G76 threading cycle.

Controlling Threading Infeed Angle

Controlling Threading Infeed Angle with Fanuc G76 Threading Cycle this article explains how a cnc machinist can control Thread Infeed Angle with Fanuc G76 threading cycle.

Controlling Number of Pass and Depth of Cut

How to Fully Control G76 Threading Cycle Number of Pass and Depth of Cut Explained this articles tells how a cnc machinist can control
  • Depth of cut for First pass
  • Depth of cut for normal passes
  • Depth of cut for Last pass
  • Control number of Spring passes

***********************************

[CNC Programming Examples] Tapered Threading with Fanuc G76 Threading Cycle

Tapered Threading with Fanuc G76 Threading Cycle


Taper threading is not a usual practice in cnc machine workshops, but sometimes customer want a component with taper threading, So here is the solution. Taper threading on a cnc lathe machine with Fanuc control is just easy with Fanuc G76 threading cycle. Fanuc CNC control threading cycle G76 gives us lot of flexibility. CNC Programming tapered threading with Fanuc threading cycle G76 is not that difficult, just one parameter have to add.

Normal Threading with Fanuc G76 Threading Cycle CNC Program

N5 G76 P010060 Q100 R0.05
N6 G76 X30 Z-20 P1024 Q200 F2
One G76 parameter which have to be added for tapered threading is R in G76 second block.

Tapered Threading with Fanuc G76 Threading Cycle CNC Program


Tapered Threading with Fanuc G76 Threading Cycle
N5 G00 X50 Z5
N6 G76 P010060 Q100 R0.05
N7 G76 X43 Z-45 P1024 Q200 R-14.5 F2
Other parameter of Fanuc threading cycle G76 are explained here.
The R parameter in second block of G76 is the tapered value. Note that R is given as Radius value.

How to calculate R parameter for Tapered Threading on Fanuc with G76 Threading Cycle.

R = (Start Diameter – End Diameter) / 2

***********************************

[CNC Programming Examples] Fanuc G20 Measuring in Inches with CNC Program Example

Fanuc G20 Measuring in Inches with CNC Program Example


Fanuc G20 Measuring in Inches or Programming in inches. As cnc machines gives us ease to program and machine any type of component.
The same way the cnc machine controls also give us the utmost flexibility that we can program not only in metric systembut also in inches system.
On Fanuc cnc control G20 and G21 are used to change between the  inches and metric system.
This cnc programming example demonstrate the usage of Fanuc G20 G code.


Fanuc G20 Program Example

Fanuc G20 CNC Program Example

N1 T0101
N2 G97 S800 M03
N3 G96 S150 G20
N4 G00 X0 Z1
N5 G01 Z0 G95 F0.3
N6 G01 X2 R0.25
N7 G01 Z-1
N8 G02 X5 Z-2.5 I1.5 K0
N9 G01 X6
N10 G00 X10 Z10
N11 M30

***********************************

[CNC Programming Examples] CNC Programming for Beginners a Simple CNC Programming Example

CNC Programming for Beginners a Simple CNC Programming Example

CNC programming is not a difficult task as many think, For beginners it will be useful if they divide the drawing in some smaller parts and start programming them. Actually CNC programming take some time to master, but in short it is just a path for our tool to machine. Here is another simple CNC Lathe program.

CNC Lathe Program Example with Code


Simple CNC Programming Example
N1 T0101              ; Tool no 1 with offset no 1 FANUC Control
N2 G97 S500 M03       ; Spindle rotation clockwise with 500 RPM
N3 G42 G00 X0 Z0      ; P0 tool nose radius compensation active
N4 G01 X25 G95 F0.3   ;
N5 G01 Z-7.5          ; P1
N6 G01 X40 Z-15       ; P2
N7 G01 Z-25           ; P3
N8 G01 X60 Z-35       ; P4
N9 G40 G00 X200 Z100  ; Tool nose radius compensation cancel

***********************************

CNC Programming Basics ebook

Introducing CNC Programming Basics

  • Cartesian Coordinate System
  • Machines Using CNC 9 Programming Systems
  • Point-to-Point or Continuous Path
  • Point-to-Point Positioning
  • Continuous Path (Contouring)
  • Interpolation 15 Programming Format
  • Programming for Positioning
  • Work Settings and Offsets
  • CNC Bench-Top Milling and Turning Centers
  • CNC Programming Hints — Milling
  • Milling and Drilling Programming
  • CNC Programming Hints – Turning
  • Fanuc Compatible Programming
  • Turning Programming

Click here to order ebook NOW!

Some basic code in CNC machine programming

Surely you are familiar with programming CNC machine will see this is familiar but with the new CNC input, this is certainly necessary. 


* Best ebooks for CNC programming: 
CNC Programming Basics 
G-Code and M-Code 
CNC programming 
G-Code Reference 
CNC Machine Tutorial 

Let me list below some basic code in CNC programming:
Some basic code in CNC machine programming

[Code | Function]

G00:  Fast running without cutting.
G01:  Run in a straight line cut
G02:  Circular interpolation clockwise.
G03:  Circular interpolation counterclockwise.
G04:  Make temporary use.
G09:  Stop the tool properly
G10:  Change workpiece coordinates.
G11:  Cancel G10 mode
G17:  Select the XY machining plane
G18:  Select the XZ machining plane
G19:  Select the ZY machining plane
G20:  Set inch machining unit
G21:  Set metric processing unit
G27:  Back to the machine.
G28:  Back to the original machine.
G29:  Back to the second, third, fourth.
G30:  O 2nd, 3rd, 4th.
G31:  Ignore the code
G33:  Thread cutting
G40:  Remove the radius compensation tool
G41:  Tool radius compensation on the left
G42:  Tool radius compensation on the right
G43:  Tool length compensation, +
G44:  Tool length compensation, -
G45:  Tool placement, increase
G46:  Cleared tool position, reduced.
G47:  Tool upsetting increased 2 times
G48:  Reduction of tool placement 2 times
G49:  Undo the tool length
G53:  Select the coordinate system
G54:  Select the first coordinate system
G55:  Select the second ingot coordinate system
G56:  Selects the third workpiece coordinate system.
G57:  Selection of the fourth ingot coordinates.
G58:  Selection of the fifth billet coordinate system.
G59:  Selection of the sixth coordinate system.
G61:  The code is correct.
G63:  Taro mode
G64:  Shear cut (exact stop inspection)
G65:  Call Marco
G66:  Call the group Marco
G67:  Cancel calling Marco
G73:  High speed deep hole machining
G74:  The Taro Cycle
G76:  Cycle of loss
G80:  Drilling cycle canceled
G81:  The drilling cycle
G82:  hole drilling cycle
G83:  Deep hole drilling
G84:  The Taro Cycle
G85:  Cycle of loss
G86:  Cycle of loss
G87:  Cycle hole, back.
G88:  Cycle of loss
G89:  Cycle of loss
G90:  Set the absolute coordinate system
G91:  Set the relative coordinate system
G92:  Change the workpiece coordinate / set the maximum rotation speed
G94:  Set the knife speed
G95:  Set the speed of knife / ring
G96:  Surface constant speed
G97:  Cancel the surface speed constant
G98:  Set the type of drawer in the hole machining process
G99:  Set the cutter type in the hole machining process

***********************************