CNC Programming Tutorials Examples G & M Codes

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

Example Programming Instructions for Coolant Driven Bar-puller Grippex

Okuma Program Example for Coolant Driven Bar-puller Grippex

. ;SUB Program . G0 X0 Z55 T090909 ;Change to Grippex (example) G0 Z-2 ;Approach bar to be pulled M08 ;Coolant ON, Grippex clamp G04 F2 ;Dwell G0 M84 ;Chuck…

Example Programming Instructions for Coolant Driven Bar-puller Grippex

Fanuc Programming Instructions for Coolant Driven Bar-puller Grippex

O0001 ;SUB Program G0 T1212 M5 X0. Z30. G1 G98 Z-80. F3000 M8 ;Coolant ON, Grippex clamp G4 U1. ;Dwell M69 ;Chuck unclamp G4 U0.1 ;Dwell G1 Z-1. ;Pulling-out the…

Heidenhain Flex K Programming Exercise

Heidenhain Flex K Programming Exercise

0 BEGIN PGM FK2 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 L+0 R+5 4 TOOL CALL 1…

Heidenhain Conversational Programming Example

Heidenhain Conversational Programming Example

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

Heidenhain Flex K Programming Example

Heidenhain Flex K Programming Example

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

Helical Milling Exercise Heidenhain Conversational Programming

Helical Milling Exercise Heidenhain Conversational Programming

0 BEGIN PGM 10131 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…

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…

Heidenhain Conversational CNC Program Example Complete

Heidenhain Conversational CNC Program Example Complete

0 BEGIN PGM FK3 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 L+0 R+5 4 TOOL CALL 1…

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…