Showing posts with label CNC Milling Machines. Show all posts
Showing posts with label CNC Milling Machines. Show all posts

Milling Machine G Codes

The G Codes that use on most CNC Milling Machines Center.

G00 = Rapid position
G01 = Linear interpolation
G02 = Circular or helix interpolation CW
G03 = Circular or helix interpolation CCW
G04 = Dwell
G09 = Exact stop
G10 = Parameter setting
G17 = Circular interpolation plane selection XY
G18 = Circular interpolation plane selection ZX
G19 = Circular interpolation plane selection YZ
G20 = Select Inch units
G21 = Select Metric units
G28 = Return to reference point
G29 = Return from reference point
G30 = Return to secondary reference point
G40 = Cutter compensation cancel
G41 = Cutter compensation left
G42 = Cutter compensation right
G43 = Tool length compensation (+)
G44 = Tool length compensation (-)
G49 = Tool length compensation cancel
G50 = Scaling/mirroring OFF
G51 = Scaling/mirroring ON
G52 = Offset local coordinate system origin
G53 = Rapid position in machine coordinates
G54 = Select working coordinate system #1 (WCS #1)
G55 = Select working coordinate system #2 (WCS #2)
G56 = Select working coordinate system #3 (WCS #3)
G57 = Select working coordinate system #4 (WCS #4)
G58 = Select working coordinate system #5 (WCS #5)
G59 = Select working coordinate system #6 (WCS #6)
G61 = Exact stop mode
G64 = Cutting mode
G65 = Call macro
G68 = Rotate
G69 = Cancel rotate
G73 = High speed peck drilling
G74 = Counter tapping
G80 = Canned cycle cancel
G81 = Drilling and spot drilling
G82 = Drill with dwell
G83 = Deep hole drilling
G84 = Tapping
G85 = Boring
G89 = Boring with dwell
G90 = Absolute positioning mode
G91 = Incremental positioning mode
G92 = Set absolute positioning
G98 = Initial point return
G99 = R point return
G117 = Rotation of plane selection XY
G118 = Rotation of plane selection ZX
G119 = Rotation of plane selection YZ

Milling M Codes Definitions

M codes use to control the overall machine and use to perform specific action in CNC programs such as to start & stop the machine, turn ON the spindle, turn coolant ON/OFF and etc. Most of the M codes have default function but can be customized with the use of macro files including the predefined M codes except M02, M06 & M25.

These are some of default M codes used on most CNC Milling Machines types. The M codes are user customizable, the user can edit, change, modify, add, delete or customize base on the application and definition.

M00 = Stop for operator
M01 = Optional stop for operator
M02 = Restart program
M03 = Spindle ON CW
M04 = Spindle ON CCW
M05 = Spindle OFF
M06 = Start tool change
M07 = Mist coolant ON
M08 = Flood coolant ON
M09 = Coolant OFF
M10 = Clamp ON
M11 = Clamp OFF
M14 = Swing arm pot up
M15 = Unclamp tool (air ON)
M16 = Unclamp tool (air OFF)
M18 = Home tool changer
M19 = Orient spindle
M20 = Pickup tool
M21 = Move head up
M22 = Move head to ATC level
M23 = Rotate carousel
M24 = Start too put back
M25 = Move to Z home
M26 = Set axis home
M39 = Air drill
M50 = Index tool plus
M51 = Index tool minus
M60 = Probing macro
M80 = Carousel in
M81 = Carousel out
M91 = Move to minus home
M92 = Move to plus home
M93 = Release motor power
M94 = Turn ON input X
M95 = Turn OFF input X
M98 = Call subprogram
M99 = Return from subprogram
M100 = Wait for input to open
M101 = Wait for input to close
M102 = Restart program
M103 = Programmed action timer
M104 = Cancel programmed action timer
M105 = Move minus to switch
M106 = Move plus to switch
M107 = Output BCD tool number
M108 = Enable override control
M109 = Disable override control
M115 = Protected probing move
M116 = Protected probing move
M120 = Open data file (overwrite existing file)
M121 = Open data file (append to existing file)
M122 = Record position(s) and/or comment in the data field
M123 = Record value and/or comment in data field
M125 = Protected probing move
M126 = Protected probing move

What is Milling Machine ?

What is a milling machine? A milling machine is a machine tool that removes material with a multiple-tooth cutting tool from a workpiece by rotating a cutter called a milling cutter and moving it into the material. The cutting action of the many teeth around the milling cutter provides a fast method of machining. The workpiece must somehow be securely fastened to the milling machine table and it is fed against the revolving milling cutter. The milling cutters can have cutting teeth on the periphery or sides or both. The cutting teeth can be straight or spiral.

Milling machines are among the most versatile and useful machine tools due to their capabilities to perform a variety of operations. Milling machines are basically classified as vertical or horizontal. These machines are also classified as knee-type, ram-type, and bed type. Most milling machines have self-contained electric drive motors, coolant systems, lubrication system, variable spindle speeds, and power-operated table feeds. milling machines delivering accuracy, productivity and rugged dependability for your milling, drilling, and boring needs

knee type 3 axis Supra CNC milling machine
Knee Type 3 Axis Supra CNC Milling Machine
Photo by CNC Masters



bed type 3 axis CNC milling machine
Bed Type 3 Axis CNC Milling Machine
Photo by Hasil Karya



ram type 3 axis CNC milling machine
Ram Type 3 Axis CNC Milling Machine
Photo by Made In China


What is milling? Milling is the process of machining flat, angular, curved, or irregular surfaces by feeding the workpiece against a rotating cutter containing a number of cutting edges. The surface may also be milled to any combination of shapes. The milling machine consists basically of a motor driven spindle, which mounts and revolves the milling cutter, and a reciprocating adjustable worktable, which mounts and feeds the workpiece.