Learn CNC G-Code Programming by Examples

CNC Programming Tutorials, G-Codes, Courses for CNC Programmers Machinists Operators.

Nesting Labels Exercise Heidenhain Conversational Programming

Nesting Labels Exercise Heidenhain Conversational Programming

0 BEGIN PGM 10130 MM 1 BLK FORM 0.1 Z X+0 Y+0 Z-20 2 BLK FORM 0.2 X+120 Y+70 Z+0 3 TOOL DEF 1 4 TOOL DEF 2 5 TOOL…

Sub-Program Exercise Heidenhain Conversational Programming

Sub-Program Exercise Heidenhain Conversational Programming

0 BEGIN PGM 10129 MM 1 BLK FORM 0.1 Z X+0 Y-70 Z-20 2 BLK FORM 0.2 X+100 Y+0 Z+0 3 TOOL DEF 1 4 TOOL CALL 1 Z S1000…

Repeat exercise Heidenhain Conversational Programming

Repeat exercise Heidenhain Conversational Programming

0 BEGIN PGM 10128 MM 1 BLK FORM 0.1 Z X+0 Y+0 Z-40 2 BLK FORM 0.2 X+100 Y+50 Z+0 3 TOOL DEF 1 4 TOOL CALL 1 Z S1000…

Rotation Exercise Heidenhain Conversational Programming

Rotation Exercise Heidenhain Conversational Programming

0 BEGIN PGM 10127 MM 1 BLK FORM 0.1 Z X-50 Y-50 Z-40 2 BLK FORM 0.2 X+50 Y+50 Z+0 3 TOOL DEF 1 4 TOOL CALL 1 Z S1000…

Mirror Image Exercise Heidenhain Conversational Programming

Mirror Image Exercise Heidenhain Conversational Programming

0 BEGIN PGM 10126 MM 1 BLK FORM 0.1 Z X-65 Y-65 Z-20 2 BLK FORM 0.2 X+65 Y+65 Z+0 3 TOOL DEF 1 4 TOOL CALL 1 Z S1000…

Grid Pattern Exercise with Linear Pattern (Cycle 221) Heidenhain Conversational Programming

Grid Pattern Exercise with Linear Pattern (Cycle 221) Heidenhain Conversational Programming

0 BEGIN PGM 10125 MM 1 BLK FORM 0.1 Z X+0 Y+0 Z-20 2 BLK FORM 0.2 X+100 Y+100 Z+0 3 TOOL DEF 1 L+0 R+3 4 TOOL CALL 1…

Circular Pattern (Cycle 220) Heidenhain Conversational Programming Exercise

Circular Pattern (Cycle 220) Heidenhain Conversational Programming Exercise

0 BEGIN PGM 10124 MM 1 BLK FORM 0.1 Z X+0 Y+0 Z-20 2 BLK FORM 0.2 X+120 Y+70 Z+0 3 TOOL DEF 1 4 TOOL DEF 2 5 TOOL…

Multipass Milling Exercise Heidenhain Conversational Programming

Multipass Milling Exercise Heidenhain Conversational Programming

0 BEGIN PGM 10123 MM 1 BLK FORM 0.1 Z X0 Y0 Z0 2 BLK FORM 0.2 X100 Y100 Z40 3 TOOL DEF 1 4 TOOL CALL 1 Z S2000…

Contour Train Exercise Heidenhain Conversational Programming

Contour Train Exercise Heidenhain Conversational Programming

0 BEGIN PGM 10121 MM 1 BLK FORM 0.1 Z X0 Y0 Z-40 2 BLK FORM 0.2 X100 Y100 Z0 3 TOOL DEF 1 4 TOOL CALL 1 Z S1000…

Island Clearance Exercise Heidenhain Conversational Programming

Island Clearance Exercise Heidenhain Conversational Programming

0 BEGIN PGM 10120 MM 1 BLK FORM 0.1 Z X+0 Y+0 Z-40 2 BLK FORM 0.2 X+100 Y+100 Z+0 3 TOOL DEF 1 4 TOOL DEF 2 5 TOOL…

External Stud, Circular Pocket and Circular Slot exercise Heidenhain Conversational Programming

External Stud, Circular Pocket and Circular Slot exercise Heidenhain Conversational Programming

0 BEGIN PGM 10119 MM 1 BLK FORM 0.1 Z X+0 Y+0 Z-40 2 BLK FORM 0.2 X+100 Y+100 Z+0 3 TOOL DEF 1 4 TOOL DEF 2 5 TOOL…

Pocket Milling Exercise Heidenhain Conversational Programming

Pocket Milling Exercise Heidenhain Conversational Programming

0 BEGIN PGM 10118 MM 1 BLK FORM 0.1 Z X+0 Y+0 Z-40 2 BLK FORM 0.2 X+100 Y+100 Z+0 3 TOOL DEF 1 4 TOOL CALL 1 Z S1000…

Slotting Cycle Heidenhain Conversational Programming Example

Slotting Cycle Heidenhain Conversational Programming Example

0 BEGIN PGM 10117 MM 1 BLK FORM 0.1 Z X+0 Y+0 Z-40 2 BLK FORM 0.2 X+100 Y+100 Z+0 3 TOOL DEF 1 4 TOOL CALL 1 Z S1000…

Rigid Tapping Cycle Heidenhain Conversational Programming Example

Rigid Tapping Cycle Heidenhain Conversational Programming Example

0 BEGIN PGM 10116D MM 1 BLK FORM 0.1 Z X+0 Y+0 Z-20 2 BLK FORM 0.2 X+100 Y+50 Z+20 3 TOOL DEF 2 4 TOOL CALL 2 Z S100…

Tapping Cycle Heidenhain Conversational Programming Example

Tapping Cycle Heidenhain Conversational Programming Example

0 BEGIN PGM 10116C MM 1 BLK FORM 0.1 Z X+0 Y+0 Z-20 2 BLK FORM 0.2 X+100 Y+50 Z+20 3 TOOL DEF 2 4 TOOL CALL 2 Z S100…

Drilling Cycle Exercise Heidenhain Conversational Programming

Drilling Cycle Exercise Heidenhain Conversational Programming

0 BEGIN PGM 10116B MM 1 BLK FORM 0.1 Z X+0 Y+0 Z-20 2 BLK FORM 0.2 X+100 Y+50 Z+20 3 TOOL DEF 1 4 TOOL CALL 1 Z S1000…

Drilling Cycle Heidenhain Conversational Programming Example

Drilling Cycle Heidenhain Conversational Programming Example

0 BEGIN PGM 10116 MM 1 BLK FORM 0.1 Z X+0 Y+0 Z-20 2 BLK FORM 0.2 X+100 Y+50 Z+20 3 TOOL DEF 1 4 TOOL CALL 1 Z S1000…

Circle Boss Exercise Heidenhain Conversational Programming

Circle Boss Exercise (polar) Heidenhain Conversational Programming

0 BEGIN PGM 10115 MM 1 BLK FORM 0.1 Z X-90 Y-15 Z-40 2 BLK FORM 0.2 X+90 Y+15 Z+0 3 TOOL DEF 1 4 TOOL CALL 1 Z S1000…

Circle Boss Heidenhain Conversational Programming Example

Circle Boss Heidenhain Conversational Programming Example

0 BEGIN PGM 10114 MM 1 BLK FORM 0.1 Z X-50 Y-50 Z-40 2 BLK FORM 0.2 X+50 Y+50 Z+0 3 TOOL DEF 1 4 TOOL CALL 1 Z S1000…

Hexagon Heidenhain Conversational Programming Example

Hexagon Heidenhain Conversational Programming Example

0 BEGIN PGM 10112 MM 1 BLK FORM 0.1 Z X+0 Y+0 Z-40 2 BLK FORM 0.2 X+100 Y+100 Z+0 3 TOOL DEF 1 4 TOOL CALL 1 Z S1000…

Mazak G01.1 Threading with C-axis interpolation

Mazak G01.1 Threading with C-axis interpolation Example

/*MAZATROL MATRIX For INTEGREX IV Programming EIA/ISO Mazak G01.1 command in the milling mode enables a simultaneous interpolation on the C-axis and the X- and/or the Z-axis for straight, tapered…

HEIDENHAIN TNC PROGRAMMING Linear Polar Exercise

HEIDENHAIN TNC PROGRAMMING Linear Polar Exercise

0 BEGIN PGM 10111 MM 1 BLK FORM 0.1 Z X+0 Y+0 Z-40 2 BLK FORM 0.2 X+100 Y+100 Z+0 3 TOOL DEF 1 4 TOOL CALL 1 Z S500…

HEIDENHAIN TNC PROGRAMMING Circular Arc Exercise (2)

HEIDENHAIN TNC PROGRAMMING Circular Arc Exercise

0 BEGIN PGM 10110 MM 1 BLK FORM 0.1 Z X+0 Y+0 Z-40 2 BLK FORM 0.2 X+100 Y+100 Z+0 3 TOOL DEF 1 4 TOOL CALL 1 Z S1000…

HEIDENHAIN TNC PROGRAMMING Circular Arc Exercise

HEIDENHAIN TNC PROGRAMMING Circular Arc Exercise

0 BEGIN PGM 10109 MM 1 BLK FORM 0.1 Z X+0 Y+0 Z-40 2 BLK FORM 0.2 X+100 Y+100 Z+0 3 TOOL DEF 1 4 TOOL CALL 1 Z S1000…

HEIDENHAIN TNC PROGRAMMING Tangential Arc Exercise

HEIDENHAIN TNC PROGRAMMING Tangential Arc Exercise

0 BEGIN PGM 10108 MM 1 BLK FORM 0.1 Z X+0 Y+0 Z-40 2 BLK FORM 0.2 X+100 Y+100 Z+0 3 TOOL DEF 1 4 TOOL CALL 1 Z S1000…

HEIDENHAIN TNC PROGRAMMING Circle Arc (RAD) Exercise

HEIDENHAIN TNC PROGRAMMING Circle Arc (RAD) Exercise

0 BEGIN PGM 10107 MM 1 BLK FORM 0.1 Z X+0 Y+0 Z-40 2 BLK FORM 0.2 X+100 Y+100 Z+0 3 TOOL DEF 1 4 TOOL CALL 1 Z S1000…

HEIDENHAIN TNC PROGRAMMING Circle Centre Arc (CC) Exercise

HEIDENHAIN TNC PROGRAMMING Circle Centre Arc (CC) Exercise

0 BEGIN PGM 10106 MM 1 BLK FORM 0.1 Z X+0 Y+0 Z-40 2 BLK FORM 0.2 X+100 Y+100 Z+0 3 TOOL DEF 1 4 TOOL CALL 1 Z S1000…

HEIDENHAIN TNC PROGRAMMING Circle Boss Exercise

HEIDENHAIN TNC PROGRAMMING Circle Boss Exercise

0 BEGIN PGM 10105 MM 1 BLK FORM 0.1 Z X-50 Y-50 Z-40 2 BLK FORM 0.2 X+50 Y+50 Z+0 3 TOOL DEF 1 4 TOOL CALL 1 Z S1000…

HEIDENHAIN TNC PROGRAMMING Corner Rounding Exercise (Blend Radius) Exercise

HEIDENHAIN TNC PROGRAMMING Corner Rounding Exercise (Blend Radius) Exercise

0 BEGIN PGM 10104 MM 1 BLK FORM 0.1 Z X-50 Y-50 Z-40 2 BLK FORM 0.2 X+50 Y+50 Z+0 3 TOOL DEF 1 4 TOOL CALL 1 Z S1000…

HEIDENHAIN TNC PROGRAMMING LINE Exercise 2

HEIDENHAIN TNC PROGRAMMING LINE Exercise

0 BEGIN PGM 10102 MM 1 BLK FORM 0.1 Z X-50 Y-50 Z-40 2 BLK FORM 0.2 X+50 Y+50 Z+0 3 TOOL DEF 1 4 TOOL CALL 1 Z S1000…

HEIDENHAIN TNC PROGRAMMING Chamfer Exercise

HEIDENHAIN TNC PROGRAMMING Chamfer Exercise

0 BEGIN PGM 10103 MM 1 BLK FORM 0.1 Z X-50 Y-50 Z-40 2 BLK FORM 0.2 X+50 Y+50 Z+0 3 TOOL DEF 1 L+0 R+10 4 TOOL CALL 1…

HEIDENHAIN TNC PROGRAMMING LINE Exercise

HEIDENHAIN TNC PROGRAMMING LINE Exercise

0 BEGIN PGM 10101 MM 1 BLK FORM 0.1 Z X-50 Y-50 Z-40 2 BLK FORM 0.2 X+50 Y+50 Z+0 3 TOOL DEF 1 4 TOOL CALL 1 Z S1000…

CNC Mill Program Using G81 G83 G84 G85

CNC Mill Program Using G81 G83 G84 G85

% O0001(PROGRAM#) (PROGRAM NAME – PART1) (SAMPLE PART) N1( 1” FLAT ENDMILL TOOL ) T1 M6 M1 N100 G0 G90 G54 X-1. Y0. S3056 M3 G43 H1 Z.1 M8 T2…

Basic CNC Mill Program No Decimal Point

Basic CNC Mill Program No Decimal Point

% (Indicates start of program) N005 G90 G70 (Specifies absolute dimensions, inch units) N010 G97 G94 T01 (Specifies units for speed and feed rate; loads first tool) N015 G00 X1000…

G65 Macro for Internal Elipse

G65 Macro for Internal Elipse

T1 M6 G0 G90 G40 G21 G17 G94 G80 G54 X0 Y0 S? M3 G43 Z5 H? G1 Z-? F? #20 = 2 ; Incremental degree calculation #21 = 0…

12345...