CNC Programming Tutorials Examples G & M Codes

G & M Programming Tutorial Example Code for Beginner to Advance Level CNC Machinist.

Okuma G76 Rounding

Okuma G76 Rounding

Okuma G76 Rounding Okuma G76 G Code is used for Rounding the sharp edge. G76 is effective only in the G01 mode. G76 is non-modal and active only in the commanded…

Okuma G75 C-chamfering

Okuma G75 C-chamfering

Okuma G75 C-chamfering Okuma G75 G Code is used to chamfer a sharp edge. G75 is effective only in the G01 mode. G75 is non-modal and active only in the…

Sodick Wire Cutting EDM CNC Programming Example

Sodick Wire Cutting EDM CNC Programming Example

N005 G54 (SELECT COORDINATE SYSTEM A00) N010 G92 X.250 Y-.300 (SET PROGRAM ZERO) N015 G90 (SELECT ABSOLUTE MODE) N020 C411 (SELECT CUTTING CONDITION) N025 G42 H061 (SELECT RIGHT OFFSET AND…

Sodick CNC Wire Cutting EDM Machine Control MARK 25

Sodick Wire EDM G Codes M Codes

Complete G Codes M Codes lists for Sodick Wire EDM with Mark 25 Mark 21 CNC controls. List of G Codes G Code Description G00 Rapid Motion (appears as a…

Gildemeister CNC Lathe with EltroPilotM Control

CNC Tool Offsetting Replacement of Damaged Tool on EPM (EltroPilot) CNC Control

Due to some reasons one of the boring bar on a cnc lathe machine got completely damaged, so I just replaced the damaged boring bar with a new one, here…

Siemens Sinumerik 840D

STOPRE Sinumerik840D Programming Command

This article is about STOPRE Sinumerik 840D program command. Siemens Sinumerik 840D is an advance cnc control. One of the ability of Sinumerik 840D cnc control is that Sinumerik 840D Pre-Process part…

Sherline CNC System Components

Sherline CNC System Components and Connections

Sherline CNC System Components and Connections. System Components 1) 1-5/8″ manual handwheel 2) Z-axis stepper motor 3) Stepper motor mount 4) Sherline vertical mill with standard accessories (Model 2000 mill…

Sherline CNC Mill Main Parts Explanation

Sherline CNC Mill Main Parts Explanation

Sherline cnc mill (VMC) parts and their functions. More about Sherline CNC Sherline G Codes M Codes Sherline CNC Lathe Main Parts Explanation Sherline CNC Mill Main Parts

Sherline CNC Lathe Main Parts Explanation

Sherline CNC Lathe Main Parts Explanation

Sherline cnc lathe parts and their functions. More about Sherline CNC Sherline G Codes M Codes Sherline CNC Mill Main Parts Explanation Sherline CNC Lathe Main Parts

Sherline CNC Mill 8020

Sherline G Codes M Codes

Sherline CNC G Codes M Codes complete list for cnc machinists who work on Sherline cnc mill/lathe. More about Sherline CNC Sherline CNC Lathe Main Parts Explanation Sherline CNC Mill Main…

CNC School Multiple Radius Arc G02 G03 CNC Lathe Program

CNC School Multiple Radius Arc G02 G03 CNC Lathe Program

N05 G94 M06 T0101 N10 G00 X0 Z0 M04 S600 N15 G01 X30 F30 N20 G03 X40 Z-5 R5 N25 G01 Z-25 N30 G02 X50 Z-30 R5 N35 G01 Z-50…

CNC School Radius Arc G02 G03 CNC Lathe Program Example

CNC School Radius Arc G02 G03 CNC Lathe Program Example

N05 G94 M06 T0101 N10 G00 X0 Z0 M04 S360 N15 G01 X30 F30 N20 G03 X50 Z-10 R10 N25 G01 Z-40 N30 G02 X70 Z-50 R10 N35 G01 Z-100…

CNC School Taper Turning CNC Program Example

CNC School Taper Turning CNC Program Example

N05 G94 M06 T0101 N10 G00 X0 Z0 M04 S600 N15 G01 X30 F30 N20 G01 X80 Z-70 N25 G01 X100 N30 G01 Z-30 N35 G00 X120 N40 G00 Z10…

CNC School Basic CNC Program Example CNC Turning

CNC School Basic CNC Program Example CNC Turning

N05 G94 M06 T0101 N10 G00 X0 Z0 M04 S600 N15 G01 X50 F30 N20 G01 Z-40 N25 G01 X80 N30 G01 Z-60 N35 G01 X100 N40 G01 Z-100 N45…

Cut Screw with Threads On Both Ends (Dowel Screw) using G76 Thread Cycle CNC Lathe Example

Cut Screw with Threads On Both Ends (Dowel Screw) using CNC G76 Thread Cycle

N01 G90 F0.2 S1200 T0101 M04 N10 G00 X30 Z5 N20 G00 X30 Z0 N30 G76 P010160 Q10 N40 G76 X27.6 Z-40 P1200 Q100 F2 (RH THREAD FROM Z0 TO…

CNC Lathe Subprogram Call Multiple Times Example

CNC Lathe Subprogram Call Multiple Times Example

Main Program: N5 G90 F0.2 S1200 T0101 M04 N10 G00 X40 Z0 N20 M98 P37000 (call subprog O7000 three times) N30 G01 W-30 N40 G28 U0 W0 N50 M05 M30…

CNC Program Example using G73 Pattern Repeating Cycle G76 Threading Cycle

CNC Program Example using G73 Pattern Repeating Cycle G76 Threading Cycle

N5 G90 F0.2 S1200 T0101 M04 N10 G00 X30 Z2 N15 G00 Z0 N20 G01 X0 (Facing operation) N21 G00 X30 Z2 N30 G73 U7 R14 (Pattern Repeating Canned Cycle)…

G76 LH (Left hand) Thread Example Program

G76 LH (Left hand) Thread Example Program

N0 G90 F0.5 S1200 T0101 M04 N20 G00 X30 Z2 N40 G71 G71 U0.5 R0.5 (Roughing Cycle) N50 G71 P60 Q110 U0.05 W0.05 N60 G01 X15 Z0 N70 G01 X15…

Fanuc G76 Left hand Thread G75 Grooving Example CNC Lathe

Fanuc G76 Left hand Thread G75 Grooving Example CNC Lathe

N0 G90 F0.2 S1200 T0101 M04 N10 G00 X42 Z2 N21 G71 U1 R0.5 N22 G71 P50 Q90 U0.05 W0.05 N50 G03 X20 Z-10 R10 N60 G01 X24 Z-20 N70…

OD Turning with G73 Pattern Repeating Cycle CNC Lathe Example Program

OD Turning with G73 Pattern Repeating Cycle CNC Lathe Example Program

Main Program: N0 G90 F0.2 S1200 T0101 M04 N10 G00 X42 Z2 N30 M98 P12000 (call subprog O2000 once) N130 G28 U0 W0 N140 M05 M30 Subprogram: O2000; N30 G73…

CNC Lathe Component Machining with G73 G76 Cycles

CNC Lathe Component Machining with G73 G76 Cycles

To determine U= (Max. Dia of wp- min dia of profile)/2 = (35-25)/2 = 5 N0 G90 F0.2 S1200 T0101 M04 N10 G00 X38 Z2 N30 G73 U5 R10 N40…

Basic CNC Lathe Program Exercise for Beginners

CNC Lathe Program Exercise for Beginners G71 Turning Cycle

N0 G90 F0.5 S1200 T0101 M03 N10 G00 X35 Z2 N30 G71 U0.5 R1 N35 G71 P36 Q90 U0.05 W0.05 N36 G01 X20 Z0 N50 G01 X20 Z-15 N60 G02…

CNC Turning Exercise using G71 Turning Cycle

CNC Turning Exercise using G71 Turning Cycle

N0 G90 F0.5 S1200 T0101 M03 N10 G00 X30 Z2 N11 G71 U0.5 R0.5 N12 G71 P30 Q80 U0.05 W0.05 N30 G01 X20 Z0 N40 G01 X20 Z-20 N50 G01…

CNC Mill Program Exercise Side Milling Drilling Slot Milling

CNC Mill Program Exercise Side Milling Drilling Slot Milling

05007 N001 G71 G90 (Set dimension type mm, set absolute co-ordinate system) N002 G92 X-15.0 Y-15.0 Z0.0 T01 F100 S1200 (Set reference point -15, -15, 0. Tool T01 side milling…

CNC Lathe Program OD Turning Drilling ID Boring with G71 G74

CNC Lathe Program OD Turning Drilling ID Boring with G71 G74 G01

% O0111 (EX.NO.1); (BILLET DIA38.0*L36.0); N1 (OPN OD PROFILE TURNING); N2 G28 U0.0 W0.0; N3 G92 S2500; N4 G96 S180 M03; N5 T0000; N6 T0101; N7 G00 X40.0 Z1.0; N8…

Drilling Brass 40mm Deep Using G74 Drilling Cycle CNC Turning Program

Drilling Brass 40mm Deep Using G74 Drilling Cycle CNC Turning Program

G97 S1446 M03 G00 T0101 G00 X0. Z2. G74 R2. G74 Z-40. Q5000 F0.1 G00 Z5. M05 T0100 G28 W0. G28 U0. M30

NUM Mill G74 Scaling G77 Subroutine Call Program Example

NUM Mill G74 Scaling G77 Subroutine Call Program Example

Main Program %21 (FRAISAGE DE TROIS EMPREINTES) N10 G90 G80 G40 G71 N20 G0 G52 Z0 N30 T1 D1 M6 (FRAISE SPHER DIAM = 6) N40 G94 F212 N50 G97…

Contour Turning using G71 Turning Cycle CNC Lathe Example

Contour Turning using G71 Turning Cycle CNC Lathe Example

G90 G21 G18 G55; T0400 M06 S2000 M03; G00 Z0.0; X31.0; G01 X30 F60; G71 U0.5R0.2; G71 P2 Q3 ; N2 G01 X0.0; X14.14 Z-7.07; Z-17.07; X19.14; Z-54.76; X25.4; N3…

Contour Turning using G72 Facing Cycle CNC Lathe Example Program

Contour Turning using G72 Facing Cycle CNC Lathe Example Program

G90 G21 G18 G55; T0400 M06; S2000 M03; G00 Z0.0; X31.0; G01 X30 F60; G72 W0.5 R0.2; G72 P2 Q3 ; N2 G01 Z-40.69; G03 X 23.92 Z-37.69 R3; G02…

Component Grooving Parting with G75 Cycle CNC Lathe Program

Component Grooving Parting with G75 Cycle CNC Lathe Program

G90 G20 G18 G55; T0400 M06; S2000 M03; G00 Z0.0; X1.200; G01 X1.150 F3; G71 U0.020 R0.010; G71 P2 Q3 ; N2 G01 X1.025; Z-2.420; N3 X1.150; G28 X0.0; G28…

Fanuc Lathe Custom Macro for Peck Drilling

Fanuc Lathe Custom Macro for Peck Drilling

Fanuc Peck Drilling Macro Move the tool beforehand along the X- and Z-axes to the position where a drilling cycle starts. Specify Z or W for the depth of a…

Osai High Level Geometric Programming (GTL) Example

Osai High Level Geometric Programming (GTL) Example

Osai 10 Series program example using Osai GTL (High Level Geometric Programming Language). Osai High Level Geometric Programming (GTL) Example Profile repetitions executed with 2 passes N1 (DIS,”GTL EXAMPLE WITH…

Osai CNC GTL Program Example

Osai CNC GTL Program Example

Osai 10 Series allows the programmers to make cnc programs using standard programming language (G1-G2-G3) or GTL, a high level programming language (GTL). Here is a complete Osai GTL programming…

Osai GTL Programming Example 2

Osai 10 Series GTL Programming Example

Osai 10 Series Programming example using Osai GTL (high level programming language). Osai GTL Programming Example N1 (DIS,”EXAMPLE GTL”) N2 l1=X-50Y10,X30Y50 N3 l2=X30Y50,X70Y10 N4 l3=X70Y0,a-90 N5 l4=X=Y-20,a180 N6 l5=X10Y-20,X0Y0 N7…

CNC Osai series 10

Osai GTL – High Level Programming Language Introduction

Osai GTL (HIGH LEVEL GEOMETRIC PROGRAMMING) Osai 10 Series CNC systems permit to program a geometric profile on the plane using either the standard programming language (G1-G2-G3) or GTL, a…