G & M Codes

6
M Codes for Milling M/C M00 – Program stop M01 – Optional stop M02 – Program end M03 – Spindle forward M04 – Spindle reverse M05 – Spindle stop M06 – Tool change M08 – Coolant on M09 – Coolant off M10 – Work clamp open M11 – Work clamp close M13 – Spindle forward + Coolant on M14 – Spindle reverse + Coolant on M19 – Spindle orientation M20 – ATC Arm in M21 – ATC Arm out M22 – ATC Arm down M23 – ATC Arm up M24 – ATC Arm clamping activate M25 – ATC Arm clamping release M27 – Reset carousel M32 – ATC c/w rotation M33 – ATC cc/w rotation M38 – Door open M39 – Door close M98 – Sub program M99 – Program repeat ions (Incremental depth) G Codes for Milling M/C G00 – Rapid traverse G01 – Linear traverse

description

ISO codes for CNC Machining

Transcript of G & M Codes

Page 1: G & M Codes

M Codes for Milling M/C

M00 – Program stop

M01 – Optional stop

M02 – Program end

M03 – Spindle forward

M04 – Spindle reverse

M05 – Spindle stop

M06 – Tool change

M08 – Coolant on

M09 – Coolant off

M10 – Work clamp open

M11 – Work clamp close

M13 – Spindle forward + Coolant on

M14 – Spindle reverse + Coolant on

M19 – Spindle orientation

M20 – ATC Arm in

M21 – ATC Arm out

M22 – ATC Arm down

M23 – ATC Arm up

M24 – ATC Arm clamping activate

M25 – ATC Arm clamping release

M27 – Reset carousel

M32 – ATC c/w rotation

M33 – ATC cc/w rotation

M38 – Door open

M39 – Door close

M98 – Sub program

M99 – Program repeat ions

(Incremental depth)

G Codes for Milling M/C

G00 – Rapid traverse

G01 – Linear traverse

G02 – Circular clockwise

G03 – Circular counter clockwise

G04 – Dwell

G05 – Moves in the same direction as

the last arc to be performed

Page 2: G & M Codes

G06 – Tangential arc

G07 – Single arc

G11 – Linear polar

G12 – Circular polar c/w

G13 – Circular polar moves cc/w

G15 – Moves in the same direction as

the last arc to be performed

G16 – Tangential arc polar

G17 – Selection of X Y plane

G28 – Mirror image

G30 – Blank form (Bottom corner of

billet)

G31 – Blank form (Top corner of

billet)

G38 – Stop

G40 – Tool compensation cancel

G41 – Tool compensation left

G42 – Tool compensation right

G43 – Axis compensation to increase

by tool radius

G44 – Axis compensation to decrease

by tool radius

G54 – Datum shift

G74 – Slot milling

G75 – Rectangular pocket (c/w)

G76 – Rectangular pocket (cc/w)

G77 – Circular pocket (c/w)

G78 – Circular pocket (cc/w)

G79 – Cycle call

G83 – Pecking

G90 – Absolute

G91 – Incremental

G98 – Label

G99 – Tool def

CODES FOR TURNING

M codes

M00-----Program stop

M01-----Optional stop

Page 3: G & M Codes

M02-----Program reset [End of

program]

M03-----Spindle forward [CW]

M04-----Spindle reverse [CCW]

M05-----Spindle stop

M06-----Auto tool change

M07-----Coolant “B” on

M08-----Coolant “A” on

M09-----Coolant off

M10-----Chuck open

M11-----Chuck close

M13-----Spindle forward & Coolant on

[Spin forward]

M14-----Spindle reverse & Coolant off

[Spin rewind]

M15-----Program input using “MIN P”

(Special function)

M16-----Special tool call (Tool call

ignores turret)

M19-----Spindle orientate

M20-----Spindle index A

M21-----Spindle index 2A

M22-----Spindle index 3A

M23-----Spindle index 4A

M25-----Quill extend

M26-----Quill retract

M29-----Select “DNC” mode

M30-----End of the program & Rewind

M31-----Increment parts counter

M37-----Door open to stop

M38-----Door open

M39-----Door close

M62-----Out put 1on

M63-----Out put 2on

M64-----Out put 1off

M65-----Out put 2off

M66-----Wait input 1on

M67-----Wait input 2on

M76-----Wait input 1off

M77-----Wait input 2off

Page 4: G & M Codes

M98-----Sub program call

M99-----Sub program exit

G Codes

G00-----Rapid traverse

G01-----Linear movement

G02-----Circular movement CW

G03-----Circular movement CCW

G04-----Dwell for programmed

duration

G05-----Delay or hold (until resumed

by operator)

G10-----Offset value setting by

program

G20-----Inch data input

G21-----Metric data input

G22-----Stored stroke check on

G23-----Stored stroke check off

G27-----Reference point return check

G28-----Reference point return

G29-----Return from Reference point

G30-----Return to 2nd reference point

G31-----Skip function

G32-----Thread cutting

G34-----Variable lead thread cutting

G36-----Automatic tool

compensation--X

G37-----Automatic tool compensation

—Z

G40-----Tool nose radius

compensation cancel

G41-----Tool nose radius left

G42-----Tool nose radius right

G50-----Work coordinate/Max.

Spindle speed setting

G65-----Macro program call

G66-----Macro modal call

G67-----Macro modal call cancel

G70-----Finishing cycle in turning

G71-----Stock removal in turning

[Multiple turning cycles]

Page 5: G & M Codes

G72-----Stock removal in Facing

G73-----Pattern repeating

G74-----Peck drilling cycle

G75-----Grooving in X axis

G76-----Thread cutting cycle [Multiple

thread cutting]

G81-----Drilling cycle

G90-----Input in absolute dimensions

G91-----Input in incremental

dimensions

G92-----Thread cutting cycle

G94-----Cutting cycle B [Facing cycle]

G96-----Constant surface speed

control (constant cutting speed)

G97-----Constant surface speed

control cancel [Variable surface]

G98-----Feed per minute

G99-----Feed per revaluation