Study guide
15.8 NC/CNC Machines & CNC Part Programming
Coal India Management Trainee CIL MT
Track your progress as you read
Finished sections get a check mark.
1 Chapter 1: CIL MT Exam Overview & Coal Sector Landscape
1.1 CIL MT Exam Pattern, Marking Scheme & Strategy 1.2 Coal India Limited: Corporate Structure, Maharatna Status & Subsidiaries 1.3 Indian Coal Mining Sector, Energy Mix & Environmental Regulations
2 Chapter 2: Paper-I General Awareness, Polity & Current Affairs
2.1 Indian Constitution, Governance & Statutory Bodies 2.2 Indian Economy, Union Budget & Economic Planning 2.3 Indian Geography, Mineral Belts & Environmental Ecology 2.4 Modern Indian History, Freedom Struggle & Cultural Heritage 2.5 General Science: Physics, Chemistry & Biology Fundamentals 2.6 Inventions, Discoveries & Scientific-Technological Development 2.7 Uses of Internet, Computer Awareness & Digital Governance 2.8 National & International Organisations 2.9 Awards, Honours & Sports 2.10 Books & Authors, Important Monuments & Places of India 2.11 Ports, Power Plants & Infrastructure of India 2.12 Climate Change, SDGs, National Parks & Wildlife Sanctuaries 2.13 Flagship Government Programmes & Current Affairs Method 2.14 World Physical, Social & Economic Geography
3 Chapter 3: Paper-I Reasoning & Logical Ability
3.1 Series Completion, Coding-Decoding & Semantic Analogies 3.2 Syllogisms, Logical Deduction & Venn Diagrams 3.3 Seating Arrangements, Linear/Circular Alignments & Puzzles 3.4 Direction Sense, Blood Relations & Order/Ranking 3.5 Alphabetical & Alphanumeric Series 3.6 Statement & Conclusions, Statement & Arguments 3.7 Clocks & Calendars 3.8 Cubes, Dice & Figure Counting 3.9 Mirror Images, Water Images, Embedded Figures & Non-Verbal Series 3.10 Decision Making & Data Analysis in Reasoning
4 Chapter 4: Paper-I Numerical Ability & Quantitative Aptitude
4.1 Arithmetic Foundations: Percentages, Profit & Loss, Ratio & Proportion 4.2 Averages, Simple/Compound Interest, Alligations & Mixtures 4.3 Time & Work, Pipes & Cisterns, Time, Speed & Distance 4.4 Algebra, Mensuration, Geometry & Data Interpretation (DI) 4.5 Number System, LCM, HCF & Decimal Fractions 4.6 Surds, Indices & Simplification 4.7 Problems on Ages 4.8 Boats & Streams and Problems on Trains 4.9 Permutations & Combinations 4.10 Probability for Quantitative Aptitude
5 Chapter 5: Paper-I General English & Verbal Ability
5.1 English Grammar, Error Spotting & Sentence Correction 5.2 Vocabulary Building: Synonyms, Antonyms, Idioms & Phrases 5.3 Reading Comprehension, Cloze Tests & Para Jumbles 5.4 Fill in the Blanks, Cloze Passages & Sentence Completion 5.5 Jumbled Sentences & Sentence Improvement
6 Chapter 6: Paper-II Engineering Mathematics
6.1 Matrix Algebra, Rank & Systems of Linear Equations 6.2 Eigenvalues, Eigenvectors & the Cayley-Hamilton Theorem 6.3 Limits, Continuity, Differentiability & Mean Value Theorems 6.4 Maxima-Minima, Indeterminate Forms & Taylor Series 6.5 Definite, Improper, Double & Triple Integrals 6.6 Partial Derivatives, Total Derivative & Multivariable Optimisation 6.7 First-Order Differential Equations: Linear & Non-Linear 6.8 Higher-Order Linear Differential Equations & Engineering Applications 6.9 Laplace Transforms & Transfer-Function Methods 6.10 Probability, Conditional Probability & Bayes' Theorem 6.11 Random Variables, Distributions & Descriptive Statistics 6.12 Numerical Methods: Root Finding, Integration & ODE Solvers
7 Chapter 7: Paper-II Engineering Mechanics & Statics-Dynamics
7.1 Force Systems, Coplanar Equilibrium & Lami's Theorem 7.2 Plane Trusses, Friction Mechanics & Screws/Wedges 7.3 Centroids, Center of Gravity & Moment of Inertia 7.4 Kinematics, Kinetics of Particles & Rigid Body Dynamics 7.5 Virtual Work & Lagrange's Equation 7.6 Rolling Friction, Belt-Pulley Drives, Brakes, Clutches & Vehicle Dynamics
8 Chapter 8: Paper-II Mechanics of Materials & Structural Integrity
8.1 Simple Stresses, Strains, Elastic Moduli & Thermal Stresses 8.2 Principal Stresses, Strain Energy & Mohr's Circle 8.3 Shear Force & Bending Moment Diagrams, Beam Bending & Shear Stresses 8.4 Torsion of Circular Shafts, Springs & Column Buckling 8.5 Thin Cylinders, Spheres & Thick-Walled Pressure Vessels 8.6 Deflection of Beams: Double Integration, Macaulay & Moment-Area 8.7 Shear Centre & Unsymmetrical Bending 8.8 Strain Gauges, Rosettes & Experimental Stress Analysis 8.9 Mechanical Testing: Universal Testing Machine, Hardness & Impact
9 Chapter 9: Paper-II Theory of Machines & Mechanical Vibrations
9.1 Simple Mechanisms, Kinematic Inversions & Velocity/Acceleration Diagrams 9.2 Cams & Followers, Toothed Gearing & Epicyclic Gear Trains 9.3 Flywheels, Centrifugal/Inertia Governors & Rotor Balancing 9.4 Free, Damped & Forced Single-Degree-of-Freedom Vibrations 9.5 Gyroscopic Couple & Gyroscopic Effects
10 Chapter 10: Paper-II Machine Design & Failure Theories
10.1 Static Failure Theories & Variable/Fatigue Loading 10.2 Design of Threaded Fasteners, Welded & Riveted Joints 10.3 Design of Shafts, Keys, Couplings & Rolling/Sliding Bearings 10.4 Design of Spur, Helical, Bevel & Worm Gears 10.5 Design of Helical, Leaf & Torsion Springs 10.6 Design of Brakes & Clutches: Energy, Lining Pressure & Heat
11 Chapter 11: Paper-II Fluid Mechanics & Hydraulic Machinery
11.1 Fluid Properties, Hydrostatic Forces & Buoyancy 11.2 Fluid Kinematics, Continuity & Bernoulli's Equation 11.3 Viscous Flow in Pipes, Boundary Layer & Minor Losses 11.4 Hydraulic Turbines, Centrifugal & Reciprocating Pumps 11.5 Dimensional Analysis, Similitude & Model Testing 11.6 Control-Volume Analysis: Continuity, Momentum & Energy
12 Chapter 12: Paper-II Thermodynamics, Thermal Cycles & Turbomachinery
12.1 Fundamental Concepts, First & Second Laws of Thermodynamics 12.2 Entropy, Availability, Exergy & Properties of Pure Substances 12.3 Air-Standard Gas Power Cycles: Otto, Diesel, Dual & Brayton 12.4 Vapour Power Cycles: Ideal, Reheat & Regenerative Rankine Cycles 12.5 Thermodynamic Relations: Maxwell, Clausius-Clapeyron & Joule-Thomson 12.6 Behaviour of Ideal & Real Gases and Equations of State 12.7 Air & Gas Compressors: Reciprocating, Rotary & Multi-Stage 12.8 Steam & Gas Turbines: Impulse, Reaction & Velocity Diagrams
13 Chapter 13: Paper-II Heat Transfer, Refrigeration & Air Conditioning
13.1 Steady & Unsteady Conduction, Extended Surfaces (Fins) 13.2 Forced/Natural Convection, Radiation & Heat Exchanger LMTD/NTU 13.3 Vapour Compression & Vapour Absorption Refrigeration Systems 13.4 Psychrometric Properties, Processes & Air Conditioning Systems 13.5 Gas Refrigeration, Heat Pump Cycles & Cryogenics
14 Chapter 14: Paper-II Materials Science, Metallurgy & Manufacturing Technology
14.1 Crystal Structures, Phase Diagrams & Iron-Iron Carbide Equilibrium 14.2 Heat Treatment Processes & Engineering Alloy Steels 14.3 Casting Processes, Metal Forming & Welding Metallurgy 14.4 Metal Cutting Mechanics, Tool Life & Machine Tools 14.5 Plastic Deformation, Yield Criteria & Load Estimation in Bulk Forming 14.6 Sheet Metal Forming: Shearing, Bending & Deep Drawing 14.7 Powder Metallurgy 14.8 Brazing, Soldering & Adhesive Bonding 14.9 Non-Traditional Machining: EDM, ECM, USM, AJM, LBM & EBM 14.10 Abrasive Machining, Grinding & Superfinishing 14.11 Principles of Work Holding, Jigs & Fixtures 14.12 Economics of Machining & Tool Life Optimisation
15 Chapter 15: Paper-II Metrology, Quality Control & Industrial Engineering / OR
15.1 Limits, Fits, Tolerances, Gauges & Surface Metrology 15.2 Production Planning, Forecasting & Inventory Control Models 15.3 Operations Research: Linear Programming & Transportation/Assignment 15.4 Project Management: CPM, PERT, Network Analysis & Crashing 15.5 Comparators & Interferometry 15.6 Coordinate Measuring Machines & Machine Tool Alignment Testing 15.7 Computer Integrated Manufacturing: CAD/CAM & Integration Tools 15.8 NC/CNC Machines & CNC Part Programming 15.9 Material Requirements Planning, Scheduling & Sequencing 15.10 Queuing Theory & Simple Queuing Models 15.11 Network Flow Models: Shortest Route, Maximal Flow & Spanning Tree
15.8 NC/CNC Machines & CNC Part Programming
Key Takeaways Explain This Topic AI
NC/CNC machines and CNC programming are named explicitly in the Machining bullet of the CIL Mechanical Paper-II syllabus.
G codes are preparatory functions that control machine motion and modes, while M codes are miscellaneous functions that control auxiliary equipment such as the spindle and coolant.
In absolute programming with G90 all coordinates are measured from the program origin, whereas in incremental programming with G91 each coordinate is measured from the previous point.
G02 specifies clockwise circular interpolation and G03 anticlockwise, with the arc centre normally given by the incremental I, J and K offsets from the start point.
Last updated: August 2026
NC, CNC and DNC
- Term Meaning
- NC Numerical Control; the programme is fixed in hardware or on punched tape, and editing requires a new tape
CNC Computer Numerical Control; a dedicated computer holds the programme, which can be edited, stored and re-run at the machine
DNC Direct or Distributed Numerical Control; a central computer serves programmes to several machines over a network
The decisive advance of CNC over NC is programme storage and editing at the machine , together with the ability to hold canned cycles, tool offsets and compensation tables in memory.
Point-to-point versus continuous path
Control Behaviour Application
Point-to-point (positional) Moves to a position; the path between points is unimportant Drilling , tapping, spot welding, punching
Continuous path (contouring) The path itself is controlled at every instant Milling , turning, profiling, flame cutting
Open versus closed loop
Loop Character
Open loop Stepper motors; no position feedback; cheaper; position assumed from pulse count; a missed step is undetected
Closed loop Servo motors with encoders or linear scales providing feedback ; errors are detected and corrected; used on all production machines
Axis Conventions
The right-hand rule fixes the axes:
Z is always along the spindle axis , with positive Z moving the tool away from the workpiece.
X is the longest axis of motion perpendicular to Z, normally horizontal.
Y completes the right-handed set.
Rotary axes A, B and C rotate about X, Y and Z respectively.
On a lathe, X is the diametral direction, and X coordinates are conventionally programmed as diameters rather than radii — a persistent source of error for those moving between milling and turning.
A fundamental convention: motion is always described as the movement of the tool relative to the workpiece , even when the machine physically moves the table instead.
Interpolation
- Type Code Path
- Rapid positioning G00 Fastest available; path not guaranteed straight; never cutting
- Linear interpolation G01 Straight line at programmed feed rate
- Circular, clockwise G02 Arc
- Circular, anticlockwise G03 Arc
- Helical, parabolic, cubic Varies Advanced controllers
Rapid moves must never be used for cutting: the path between two points under G00 may be a dog-leg rather than a straight line, and the feed is uncontrolled.
G Codes and M Codes
G codes are preparatory functions that set the machine's mode of operation. M codes are miscellaneous functions that switch auxiliary equipment. Keeping the two categories apart is the most common single question on this topic.
Common G codes
- Code Function
- G00 Rapid traverse
- G01 Linear interpolation
- G02 / G03 Circular interpolation, clockwise / anticlockwise
- G04 Dwell
- G17 / G18 / G19 Plane selection: XY / XZ / YZ
- G20 / G21 Inch / metric units
- G28 Return to machine reference (home)
- G40 / G41 / G42 Cutter compensation cancel / left / right
- G43 / G49 Tool length compensation on / cancel
- G54 - G59 Work coordinate systems
- G90 / G91 Absolute / incremental positioning
- G94 / G95 Feed per minute / feed per revolution
- G96 / G97 Constant surface speed / constant spindle rpm
- G80 Cancel canned cycle
- G81 / G83 / G84 Drilling / peck drilling / tapping cycles
- Common M codes
- Code Function
- M00 / M01 Programme stop / optional stop
- M03 / M04 / M05 Spindle clockwise / anticlockwise / stop
- M06 Tool change
- M08 / M09 Coolant on / off
- M30 Programme end and rewind
- M98 / M99 Subprogramme call / return
Absolute Versus Incremental
This distinction produces more programming errors than any other.
- Mode Code Coordinates measured from
- Absolute G90 The fixed programme origin (work zero)
- Incremental G91 The previous point
To move through the points (10,10), (30,10) and (30,40):
- Absolute (G90) Incremental (G91)
- X10 Y10 X10 Y10
- X30 Y10 X20 Y0
- X30 Y40 X0 Y30
Absolute programming is safer because an error at one point does not propagate; in incremental mode every subsequent position inherits the error. Absolute is therefore standard practice, with incremental reserved for repeated patterns and subprogrammes.
Circular Interpolation and I, J, K
An arc requires the endpoint and the centre. The centre is normally specified by I, J and K , which are the incremental offsets from the arc start point to the arc centre , along X, Y and Z respectively.
To cut a quarter circle of radius 20 anticlockwise from (20,0) to (0,20) with centre at the origin: G03 X0 Y20 I-20 J0
The I value of minus 20 is the X distance from the start point (20,0) to the centre (0,0). Many controllers also accept an R word giving the radius directly, which is simpler but ambiguous for arcs greater than 180 degrees, where the sign of R selects between the two possible arcs.
Cutter Radius Compensation
The programmer wants to describe the finished part profile , not the path of the cutter centre, which lies one cutter radius away. Cutter compensation lets the controller make that offset automatically using a radius value stored in an offset table.
- Code Meaning
- G41 Compensation left of the direction of travel
- G42 Compensation right of the direction of travel
- G40 Cancel compensation
Left and right are judged looking along the direction of tool travel . For conventional climb milling of an external profile, G41 is usual.
The practical benefit is decisive: if the cutter is reground to a smaller diameter, or a different cutter is fitted, only the offset value in the table changes — the programme itself is untouched. The same mechanism is used to leave a finishing allowance, simply by entering an offset larger than the true radius.
Tool length compensation (G43) works similarly in Z, storing each tool's length offset so that programmes can be written to the part datum irrespective of how far each tool protrudes from its holder.
Canned Cycles
A canned cycle replaces many blocks with one. For drilling a series of holes, instead of programming rapid down, feed to depth, rapid out for every hole: G81 X__ Y__ Z-25 R2 F100
where Z is the final depth, R the retract plane and F the feed. Subsequent X and Y coordinates repeat the cycle at each new position until cancelled by G80.
- Cycle Purpose
- G81 Simple drilling
- G82 Drilling with dwell at the bottom, for a flat-bottomed counterbore
- G83 Peck drilling , retracting to clear chips; essential for deep holes
- G84 Tapping
- G85 Boring, feeding out
- A Complete Worked Programme
Milling a 60 by 40 mm rectangular pocket profile, 5 mm deep, with a 10 mm diameter end mill, work zero at the lower left corner of the profile: O0001 (programme number)
- G21 G90 G94 G17 (metric, absolute, feed/min, XY plane)
- G54 (work coordinate system)
- T01 M06 (tool 1, end mill 10 mm)
- S1200 M03 (spindle 1200 rpm clockwise)
- G43 H01 Z50 (tool length offset, safe height)
- G00 X-15 Y-15 (rapid to approach point clear of part)
- Z5 (rapid to clearance plane)
- G01 Z-5 F100 (feed to depth)
- G41 D01 X0 Y0 (cutter comp left, approach profile)
- G01 X60 F200 (cut along bottom edge)
- Y40 (cut up right edge)
- X0 (cut along top edge)
- Y0 (cut down left edge)
- G40 X-15 Y-15 (cancel compensation, move clear)
- G00 Z50 (retract)
- M05 (spindle stop)
- M09 (coolant off)
- G28 G91 Z0 (return to home in Z)
- M30 (programme end and rewind)
Note the structural discipline: safety block first setting units and modes, approach clear of the part before engaging compensation, cancel compensation clear of the part , and retract before stopping the spindle . Those four habits prevent the great majority of crashes.
Programming Methods
- Method Description
- Manual G code written by hand; suits simple prismatic parts
- Conversational Menu-driven at the machine control; fast for shop-floor programming
CAM (computer aided) Toolpath generated from the CAD model and post-processed; essential for sculptured surfaces
For a maintenance workshop producing one-off spares from drawings, manual and conversational programming usually suffice. For die and mould work or three-dimensional surfaces, CAM is not optional.