Lathe Programming Examples

View programming examples with the following link!

>>> Lathe Programming Examples PDF <<<

 

Haas Lathe G & M Codes

G-Codes

G00        Rapid Position Motion

G01        Linear Interpolation Motion OR Linear Motion, Chamfer and Corner Rounding – Modal

G02        CW Circulation Interpolation Motion – Modal

G03        CCW Circular Interpolation Motion – Modal

G04        Dwell (P) P=Seconds. Milliseconds

G05        Fine Spindle Control Motion (Live Tooling) – Optional

G09        Exact Stop

G10        Programmable Offset Setting

G14        Main-Spindal / Sub-Spindle Swap – Optional

G15        Main-Spindal / Sub-Spindle Swap Cancel – Optional

G17        Circular Motion XYZ Plane Selection Live Tooling (G02, G03) – Modal, Optional

G18        Circular Motion ZX Plane Selection (G02, G03)

G19        Circular Motion YZ Plane Selection Live Tooling (G02, G03) – Modal/Optional

G20        Verify Inch Coordinate Positioning

G21        Verify Metric Coordinate Positioning – Modal

G28        Rapid to machine zero return through Ref. Point

G29        Move to Location Through G29 Ref. Point

G31        Feed Until skip Function – Optional

G32        Thread cutting path – Modal

G40        Tool Nose Compensation Cancel G41/G42

G41        Tool Nose Compensation, Left – Modal

G42        Tool Nose Compensation, Right – Modal

G50        Spindle Speed Maximum RPM Limit (S) – Modal

G51        Rapid to Machine zero, Cancel offset

G52        Work offset Positioning Coordinate OR Global Work Offset Coordinate System Shift – Modal

G53        Machine Zero Positioning Coordinate

G54        Work Offset Positioning Coordinate #1

G55        Work Offset Positioning Coordinate #2 – Modal

G56        Work Offset Positioning Coordinate #3 – Modal

G57        Work Offset Positioning Coordinate #4 – Modal

G58        Work Offset Positioning Coordinate #5 – Modal

G59        Work Offset Positioning Coordinate #6 – Modal

G61        Exact Stop – Modal

G64        Exact Stop G61 Cancel

G65        Macro Sub-Routine Call – Optional

G70       Finishing Cycle

G71        O.D. / I.D. Stock Removal Cycle Example

G72        End Face Stock Removal Cycle

G73        Irregular Path Stock Removal Cycle

G74        Face Grooving OR High Speed Peck Drill Cycle

G75        Peck Grooving Cycle O.D. or I.D.

G76        Threading Cycle, Multiple Pass O.D. / I.D.

G77        Live Tooling Flatting Cycle – Optional

G80        Cancel Canned Cycle

G81        Drill Canned Cycle – Modal

G82        Spot Drill / Counterbore Canned Cycle – Modal

G83        Peck Drill Deep Hole Canned Cycle – Modal

G84        Tapping Canned Cycle – Modal

G85        Bore In-Bore Out Canned Cycle – Modal

G86        Bore In-Stop-Rapid Out Canned Cycle – Modal

G87        Bore In-Stop-Manual Retract Canned Cycle – Modal

G88        Bore In-Dwell-Manual Retract Canned Cycle – Modal

G89        Bore In-Dwell-Bore-out Canned Cycle – Modal

G90        O.D. / I.D. Turning Cycle – Modal

G92        Threading Cycle – Modal

G94        End Facing Cycle – Modal

G95        Live Tooling End Face Rigid Tap – Modal/Optional

G96        Constant Surface speed, CSS On – Modal

G97        Constant Non-Varying Spindle Speed, CSS Off (S)

G98        Feed Per Minute (F) – Modal

G99        Feed Per Revolution (F)

G100     Mirror Image Cancel G101

G101      Mirror Image

G102      Programmable Output to RS-232

G103      Limit Block Lookahead

G105      Servo Bar Command – Optional

G110-G111 Work Offset-positioning Coordinate #7-#8 – Modal

G112      Cartesian to Polar Transformation – Optional

G113      Cartesian to Polar Transformation Cancel – Optional

G114-G129 Work Offset Positioning Coordinate #9-#24 – Modal

G154      Select Work Offset Positioning Coordinate P1-99 (P) – Modal

G159      Background Pickup / Part Return – Optional

G160      APL Axis Command On – Optional

G161      APL Axis Command Off – Optional

G184      Reverse Tapping Canned Cycle – Modal

G186      Live Tooling Reverse Rigid Tap – Optional

G187      Accuracy Control for High Speed Machining (E)

G194      Sub-Spindle / Tapping Canned Cycle – Modal

G195      Live Tooling Radial Tapping – Optional

G196      Live Tooling Radial Tapping Reverse – Optional

G200      Index on the Fly

 

 

M-Codes

M00

Program Stop – Modal

M01

Optional Program Stop – Modal

M02

Program End – Modal

M03

Spindle on Forward (S) – Modal

M04

Spindle on Reverse (S) – Modal

M05

Spindle Stop – Modal

M08

Coolant On – Modal

M09

Coolant Off – Modal

M10

Chuck Clamp – Modal

M11

Chuck Unclamp – Modal

M12

Auto Air Jet On (P) – Modal/Optional

M13

Auto Air Jet Off – Modal/Optional

M14

Main Spindle Clamp – Modal/Optional

M15

Main Spindle Unclamp – Modal/Optional

M17

Rotate Turret Forward (T) – Modal

M18

Rotate turret Reverse (T) – Modal

M19

Orient Spindle – Modal/Optional Example

M21

Tailstock Advance – Modal/Optional

M22

Trailstock Retract – Modal/Optional

M23

Angle Out of Thread On – Modal

M24

Angle of Thread Off – Modal

M25-M28

Optional User M Code Interface with M-Fin Signal – Modal

M30

Program End and Reset – Modal

M31

Chip Auger Forward – Modal

M33

Chip Auger Stop – Modal

M36

Parts Catcher On – Modal/Optional

M37

Parts Catcher Off – Modal/Optional

M38

Specify Spindle Variation On – Modal

M39

Specify Spindle Variation Off – Modal

M41

Spindle Low Gear Override – Modal

M42

Spindle High Gear Override – Modal

M43

Turret Unlock – Modal

M44

Turret Lock – Modal

M51-M58

Optional User M Code Set – Modal

M59

Output Relay Set (N) – Modal

M61-M68

Optional User M Code Clear – Modal

M69

Output Relay Clear (N) – Modal

M76

Program Displays Inactive – Modal

M77

Program Displays Active – Modal

M78

Alarm in Skip Signal Found – Modal

M79

Alarm if Skip signal Not Found – Modal

M85

Automatic Door Open – Modal/Optional

M86

Automatic Door Close – Modal/Optional

M88

High Pressure Coolant ON – Modal/Optional

M89

High Pressure Coolant off – Modal/Optional

M93

Axis Position Capture Start – Modal/Optional

M94

Axis Position Capture Stop – Modal/Optional

M95

Sleep Mode – Modal

M96

Jump if no Signal – Modal

M97

Local Sub-Routine Call – Modal

M98

Sub-Program Call – Modal

M99

Sub-Program / Routine Return or Loop – Modal

M109

Inactive User Input (P) – Modal/Optional

M110

Tailstock Chuck Clamp – Modal/Optional

M111

Tailstock Chuck Unclamp – Modal/Optional

M119

Sub-Spindle Orient – Modal/Optional**

M121-M128

Optional User M Code Interface with M-Fin Signal – Modal

M133

Live tool Drive Forward (P) – Modal/Optional Example

M134

Live Tool Drive Reverse (P) – Modal/Optional

M135

Live Tool Drive Stop – Modal/Optional

M143

Sub-Spindle Forward (P) – Modal/Optional

M144

Sub-Spindle Reverse (P) – Modal/Optional

M145

Sub-Spindle Stop – Modal/Optional

M154

C Axis Engage – Modal/Optional Example

M155

C Axis Disengage – Modal/Optional

M164

Rotate APL Grippers To “n” Position – Modal/Optional

M165

Open APL Gripper 1 (Raw Material) – Modal/Optional

M166

Close APL Gripper 1 (Raw Material) – Modal/Optional

M167

Open APL Gripper 2 Finished Material) – Modal/Optional

M168

Close APL Gripper 2 (Finished Material) – Modal/Optional