Part Programming

Part programs use G-codes for motion (G00 rapid, G01 linear, G02/G03 circular) and M-codes for machine functions. Coordinates, feed F, and speed S define each block, per PN Rao.

Key formulas & points

Skim these first — then read the full notes below.

  • Cutter radius compensation G41/G42 for contour accuracy
  • Tool length offset G43 for Z-axis
  • Canned cycles G81–G89 for drilling patterns

Topic details

Introduction

Manual part programming teaches students to write the G-and-M-code blocks that drive a CNC machine, a practical exam and lab topic. PN Rao details the preparatory (G) and miscellaneous (M) functions and the structure of a program block.

Scope in B.Tech and GATE syllabus

A block specifies a motion mode, target coordinates, feed rate, and spindle speed; canned cycles (drilling, threading, pockets) condense repetitive operations. Tool and work offsets locate the program relative to the machine and tool geometry.

Why this topic matters in practice

Circular interpolation (G02/G03) needs the arc centre (I, J) or radius, a common source of error. Writing a correct, safe program with tool changes, coolant, and proper start/end blocks is what examiners assess.

Key relations & formulas

G01 X_{Y}_Z_{F}_
(linear interpolation)
\frac{G02}{G03} X_{Y}_I_{J}_
(circular interpolation, CW/CCW)

Formulas (Indian textbook notation)

  • G90=absolute;G91=incrementalprogrammingG90 = absolute; G91 = incremental programming

Formulas (Indian textbook notation)

  • Arccentre:I,JforXYplane;radiusRalternativeArc centre: I,J for XY plane; radius R alternative

Notation and sign conventions

Relation 1 —
G01 X_{Y}_Z_{F}_
G01 X_{Y}_Z_{F}_
(linear interpolation)
Write this relation with symbols exactly as in Manufacturing Technology — PN Rao before substituting numbers. Examiners award partial marks for a correct setup even when arithmetic slips.
Relation 2 —
\frac{G02}{G03} X_{Y}_I_{J}_
\frac{G02}{G03} X_{Y}_I_{J}_
(circular interpolation, CW/CCW)
Write this relation with symbols exactly as in Manufacturing Technology — PN Rao before substituting numbers. Examiners award partial marks for a correct setup even when arithmetic slips.
Relation 3 —
G90=absolute;G91=incrementalprogrammingG90 = absolute; G91 = incremental programming

Formulas (Indian textbook notation)

  • G90=absolute;G91=incrementalprogrammingG90 = absolute; G91 = incremental programming
Write this relation with symbols exactly as in Manufacturing Technology — PN Rao before substituting numbers. Examiners award partial marks for a correct setup even when arithmetic slips.
Relation 4 —
Arccentre:I,JforXYplane;radiusRalternativeArc centre: I,J for XY plane; radius R alternative

Formulas (Indian textbook notation)

  • Arccentre:I,JforXYplane;radiusRalternativeArc centre: I,J for XY plane; radius R alternative
Write this relation with symbols exactly as in Manufacturing Technology — PN Rao before substituting numbers. Examiners award partial marks for a correct setup even when arithmetic slips.

Fundamentals and definitions

Each program block is a sequence of words: a G-code sets the motion mode, coordinate words (X, Y, Z) give the destination, F sets feed rate, S spindle speed, T tool, and M-codes control auxiliary functions (M03 spindle on, M08 coolant, M30 end).

Governing relations in practice

G00 moves at rapid traverse for positioning; G01 moves at programmed feed for cutting straight lines; G02 (clockwise) and G03 (counter-clockwise) cut arcs, defined by centre offsets I, J, K or a radius R.

Design and analysis considerations

Absolute (G90) vs incremental (G91) modes change how coordinates are interpreted. Tool-length and cutter-radius compensation (G43, G41/G42) let the program describe the part geometry while the control accounts for actual tool dimensions.

Advanced theory and extensions

Canned cycles (e.g. G81 drilling, G84 tapping) automate repetitive motions with a single line. A complete program has a safe start (units, plane, home), the machining blocks, and a clean end (retract, spindle/coolant off, program end) — the structure examiners require.

Assumptions and validity limits

State assumptions explicitly before using any relation for part programming — steady state, uniform properties, linear elastic material, ideal gas, incompressible flow, etc., as applicable.
Wrong assumptions invalidate the entire solution even when the formula is correct. In CNC & Machining viva and GATE descriptive questions, listing valid assumptions often earns separate marks.

Step-by-step problem approach

1. Read the question and list given data with SI units (common in CNC & Machining papers).
2. Draw a neat labelled diagram where applicable — examiners in Indian universities award diagram marks even when arithmetic slips.
3. Identify which relation from this topic applies to part programming.
4. Use equation 1:
G01 X_{Y}_Z_{F}_
.
5. Use equation 2:
\frac{G02}{G03} X_{Y}_I_{J}_
.
6. Substitute values, compute, and verify units and sign (direction).
7. State conclusion in one line — e.g. safe/unsafe, stable/unstable, feasible/infeasible.

Applications & exam relevance

Part Programming appears in precision components and mass production. In Indian mechanical curricula this topic is tested because it connects theory to NC programming and automated machining.
GATE and semester exams often combine part programming with earlier units — revise prerequisites before attempting mixed problems.
Industry interview panels sometimes ask: "Where did you use part programming?" — answer with a lab, mini-project, or plant visit example if possible.

Common mistakes in exams

• Using G00 (rapid) for a cutting move that needs G01 feed
• Wrong arc direction (G02 vs G03) or incorrect I, J centre offsets
• Forgetting cutter-radius compensation, so the tool cuts the wrong contour
• Mixing absolute (G90) and incremental (G91) coordinates

Quick revision checklist

Before attempting part programming problems, confirm you can:
1. Cutter radius compensation G41/G42 for contour accuracy
2. Tool length offset G43 for Z-axis
3. Canned cycles G81–G89 for drilling patterns
Revise the solved examples in Manufacturing Technology — PN Rao and one previous-year GATE or university paper for this unit.

Worked examples

Try the problem first — open the solution when you are ready to check.

Feed rate from feed per tooth

Problem

A milling cutter has 4 teeth, feed per tooth f_z = 0.1 mm, spindle speed N = 500 rpm. Find the table feed rate F in mm/min.

Solution

F = f_z × z × N = 0.1 × 4 × 500 = 200 mm/min.

Conceptual check — Part Programming

Problem

In a CNC & Machining semester or GATE paper you are asked: "State the main assumption, the governing relation, and one practical consequence of part programming." What should a complete answer include?

Practice questions

Most-asked interview and GATE questions for this topic — expand any item for a model answer.

  1. 1
    What is Part Programming, and why does it appear in B.Tech / GATE syllabi?

    Model answer

    Part programs use G-codes for motion (G00 rapid, G01 linear, G02/G03 circular) and M-codes for machine functions. Coordinates, feed F, and speed S define each block, per PN Rao.
  2. 2
    State the relation G01 X_Y_Z_F_ and name each symbol.

    Model answer

    The governing relation is G01 X_{Y}_Z_{F}_. Write every symbol with SI units before substituting numbers.
  3. 3
    State the relation G02/G03 X_Y_I_J_ and name each symbol.

    Model answer

    The governing relation is \frac{G02}{G03} X_{Y}_I_{J}_. Write every symbol with SI units before substituting numbers.
  4. 4
    State the relation G90 = absolute; G91 = incremental programming and name each symbol.

    Model answer

    The governing relation is G90=absolute;G91=incrementalprogrammingG90 = absolute; G91 = incremental programming. Write every symbol with SI units before substituting numbers.
  5. 5
    State the relation Arc centre: I,J for XY plane; radius R alternative and name each symbol.

    Model answer

    The governing relation is Arccentre:I,JforXYplane;radiusRalternativeArc centre: I,J for XY plane; radius R alternative. Write every symbol with SI units before substituting numbers.
  6. 6
    Explain: Cutter radius compensation G41/G42 for contour accuracy

    Model answer

    Cutter radius compensation G41/G42 for contour accuracy — state the assumption range and one exam trap linked to this point.
  7. 7
    Explain: Tool length offset G43 for Z-axis

    Model answer

    Tool length offset G43 for Z-axis — state the assumption range and one exam trap linked to this point.
  8. 8
    Explain: Canned cycles G81–G89 for drilling patterns

    Model answer

    Canned cycles G81–G89 for drilling patterns — state the assumption range and one exam trap linked to this point.
  9. 9
    How would you correct this error in a viva: Using G00 (rapid) for a cutting move that needs G01 feed?

    Model answer

    Identify the wrong assumption or unit mix-up, rewrite the correct relation, and recompute with a one-line sanity check.
  10. 10
    How would you correct this error in a viva: Wrong arc direction (G02 vs G03) or incorrect I, J centre offsets?

    Model answer

    Identify the wrong assumption or unit mix-up, rewrite the correct relation, and recompute with a one-line sanity check.
  11. 11
    How would you correct this error in a viva: Forgetting cutter-radius compensation, so the tool cuts the wrong contour?

    Model answer

    Identify the wrong assumption or unit mix-up, rewrite the correct relation, and recompute with a one-line sanity check.
  12. 12
    How would you correct this error in a viva: Mixing absolute (G90) and incremental (G91) coordinates?

    Model answer

    Identify the wrong assumption or unit mix-up, rewrite the correct relation, and recompute with a one-line sanity check.

Exams & GATE

  • 1
    Write part program with tool change sequence and safe retract heights.
  • 2
    Avoid: Using G00 (rapid) for a cutting move that needs G01 feed
  • 3
    Avoid: Wrong arc direction (G02 vs G03) or incorrect I, J centre offsets
  • 4
    Avoid: Forgetting cutter-radius compensation, so the tool cuts the wrong contour

📖 Standard books (India)

  • Manufacturing TechnologyPN Rao

    Read: Syllabus unit

    Casting, welding, machining, and CNC basics