CNC CODE
CNC CODE
PART
PROGRAMMING FUNDAMENTALS
PROGRAMMING METHOD :
There are Two Methods to
Describe the Path of
1) Absolute Programming Method (USE Gg0). Motion in CNC Machine:
2) Incremental
Programming Method (USE G91).
In Absolute Programming Method. One End Point on the
Work Picce is takcn as a Rcference or Zero Point &Ail other
Dimension are Represented with Respect to that Point.
In incremental Programming Method, the Next Point Dimension in Each Block is Refereed with Respect to the Finai
Pointon the Previous Block.
CODE PARAMETERS :
N The Block Number - This Code is Used to Seguence &Identifv a Block of Data in a Part Program. Selectable
Number areo TO g9999.
G
Preparatory Command. Gcodes are used to initiate Control Command, Positioning or Contouring Modes of Operation
&Machining Cycle.
T: Tool No. Code.
X : Command for X-axis (In Absolute System).
Z: Command for Z-axis (In Absolute System).
I: Sub Parameter Distance in X Direction.
K: Sub Parameter Distance in Z Direction.
M: Misc. Code.
F: Feed Rate for Axis Movement The Feed Rate is Programmed in mm/min or inch/min. For Threading Cycle F
determines the Pitch ofThreading.
S Function is Used for Only Spindle Speed
Selection.B: Starting Block Number of Subroutine.
C: EndBlock Number of Subroutine.
(Xf. Z£, U, W, I. K, F)
This Code is used for the Tool Movement along an Elliptical Path in Clockwise Direction. The Values Iand KIndicates the
Distance of Center from Current Location. The Values Uand Ware Ellipse Diameters along Xand Z Direction.
GoS ELIPTICAL INTERPOLATION CCW
(Xf,Zf. U. W,I, K, F)
This Code is used for the Tool Movement along an Elliptical Path in AntiClockwise Direction. The Values I and K
Indicates thebistance of Center fromCurrent Location. The Values Uand |Ware Plipse D i . a Diretion
(.Zr. k.)
Represent the Depth of Cut. For Every K Depth, the Tool
This Code is used for Multiple Cuts of Drilling Operation. Here K
willCome Out to Start Point andthen Start Drilling for Next Depth.
G85 BORING CYCLE
(XS. ZI. U,J, F)
Represent the Depth of Cut. If U Value Specified then
This Code is used for Multiple Cuts of Boring Operation. Here I
and End Diameter.
Taper Boring is Performed, where URepresents the Difference in Start
Gyo ABSOLUTEPROGRAMMING MODE (DEFAULT)
w.r.t. the Absolute Zero Point i.e. Xo.0oo.
This Code Sets the ABSOLUTE Programming Mode. In this Mode Tool will Move
Zo.000
Ihs Code is used to Enable Constant Surface Spced The Rale nt which Spindle Rotates will Chang Depending upm
CurrentX Co-ordinate Valuc. SSpecifies Surface Spced in m/min and the Range is t to 40.
Gy- CONSTANT SUREACE SPEED IISABLE
ThisCode Disables the Constant Sturlace Specd Mode if EnabBed Previously by Gg6 Command
M.CODES
Mo10PTIONALSTOP
This Code is used for Optionally Stopping the Further Execution of Part Program.
Mo2 PROGRAM END
This Code is used for Stoppine the Further Execution of Part Procram After Stopping Prouram will Pocot or Rewind
Mo3 SPINDLEMOTORON (FORWARD/CW)
This Code Rotates the Spindle Motor in Forward Direction.
Mo5 SPINDLE MOTOR OF
This Code Stops the Rotating Spindle Motor.
Mo8COOLENTPUMP ON
This Code Starts the Coolant Pump.
Mog COOLENT PUMP OF
This Code Stops the Coolant Pump.
M10CHUCKCILAMP
This Code Closes (Clamps)the Chuck if Available.
MiuCHUCK DECLAMP
This Code Opens (Declan1ps)the Chuck if Available.
M3o PROGRAMM END
This Code is used for Stopping the Further Bxecution of Part Program. After Stopping Program will get Reset or Rewind.
M4iHIGH GEAR MODESPINDLE MOTOR ON (FORWARD/CW)
This Code Rotates the Spindle Motor in Forward Direction with High Gearing for Threading Operation.
M46TO0LINDEX
(M46 T.. 0..))
This Miscellaneous Code is used for Indexing to New Tool. If the Turret is Installed then it will Index, Otherwise Manual
ToolChange Cycle is Executed. "O" Word is Optional and Default OffsetTable Nu. is 1.
M98 SUBROUTINE START
This Code Indicates the Start of Subroutine.
My9SUBROUTLNE END
This Cude Indcates the End of Subroutine.