ADM Activity 4.2.2

G&M Code for Aerospace Manufacturing

Interpret the teacher-approved Mach3 milling command set and connect each block to DMC2 Mini machine behavior.

Learning targets

Today You Will Learn To

  • Interpret the teacher-approved Mach3 milling command subset used by the DMC2 Mini.
  • Identify modal states, coordinates, feeds, spindle commands, work offsets, and safe start/end behavior.
  • Trace a Mach3 program and compare each block with the intended cutter motion and Fusion setup.
Manufacturing context

Why This Matters

The DMC2 Mini uses Mach3 to interpret the posted NC program. Understanding the Mach3 milling command set allows students to predict motion, identify unsafe code, compare manual instructions with Fusion output, and verify that the machine state matches the manufacturing plan.

Learning sequence

Learn Before You Build

Complete these steps in order. Record the requested notes or evidence before moving to the graded activity.

10 min

1. Read code as machine states

Use the Mach3 G&M Code Reference to classify each word as motion, coordinate, feed, speed, machine function, or program-control information.

15 min

2. Learn modal behavior

Follow the teacher trace showing how units, plane, absolute/incremental mode, work offset, feed mode, and motion mode remain active until changed.

15 min

3. Connect code to the controller display

Load a teacher-approved file in Mach3 simulation or the classroom visualizer and compare each code block with the predicted path and machine state.

15–20 min

4. Complete a safety error hunt

Find wrong units, wrong modal state, unsafe rapid motion, missing retract, incorrect depth, unsupported commands, or incomplete program ending.

Detailed activity procedure

Interpret and Verify a Mach3-Compatible Milling Program

  1. 1
    Copy the assigned program into the code-tracing worksheet without changing it.
  2. 2
    Label the program name, comments, block numbers, G words, M words, coordinates, feed values, speed values, tool information, and end command.
  3. 3
    Identify the safe-start states. Record the active plane, units, positioning mode, feed mode, work offset, compensation state, and canned-cycle state.
  4. 4
    Create a modal-state table. Update the table only when a block changes a modal command.
  5. 5
    Trace all G00 moves using a different line style from G01 cutting moves.
  6. 6
    For each G01 move, record start coordinates, end coordinates, direction, distance, feed rate, and whether the move occurs above or inside the stock.
  7. 7
    When assigned, interpret G02 or G03 using the classroom-approved center-offset or radius method and identify the selected plane.
  8. 8
    Explain how M03, M05, and S values apply to the DMC2 Mini only when the Mach3 profile electronically controls the spindle. Otherwise mark the teacher-approved manual spindle action.
  9. 9
    Predict the machine and program state at the end of every section, including Z height, coordinate mode, spindle state, and next expected action.
  10. 10
    Load the program into Mach3 simulation or the visualizer and compare the displayed extents with your trace.
  11. 11
    Complete the error hunt. For every error, identify the risk, corrected block, and reason for the correction.
  12. 12
    Write a final verification statement explaining whether the program is ready for manual-programming practice, not physical cutting.
Required checkpoints

Stop and Verify Before Moving On

Checkpoint A — Modal table

Units, coordinate mode, work offset, feed mode, and motion mode are tracked correctly.

Checkpoint B — Path trace

Rapid, feed, depth, and arc movements match the code.

Checkpoint C — Error correction

Every unsafe or unsupported condition is corrected and explained.

Safety and process control

Required Operating Habits

  • Use only teacher-approved files, tools, stock, speeds, feeds, and procedures.
  • Preserve the last verified working file or code version.
  • Stop immediately for unexpected motion, unusual sound, vibration, loose workholding, tool damage, or an unclear condition.
  • Do not operate the CNC mill without the required certification, permission, and supervision.
  • Record failed trials, defects, and interventions honestly.
Quality check

Before You Submit

  • Machine-specific commands are verified before use.
  • Every movement is connected to a coordinate and positioning mode.
  • Students distinguish a rapid move from a feed-controlled cutting move.
Student deliverables

What You Submit

  • Annotated G&M code reference
  • Line-by-line sample program trace
  • Unsafe-code error analysis
  • Short reflection on modal commands
Teacher-approved code subset

Mach3 Commands Used in This Unit

  • G00 — rapid positioning
  • G01 — linear feed motion
  • G02/G03 — circular interpolation when assigned
  • G17 — XY plane
  • G20/G21 — inch or metric units
  • G40 — cancel cutter compensation
  • G49 — cancel tool-length compensation when the course setup does not use it
  • G54 — approved work coordinate system when configured
  • G80 — cancel canned cycle
  • G90/G91 — absolute or incremental positioning
  • G94 — feed per minute
  • F — feed rate
  • S — commanded spindle speed
  • M03/M05 — spindle start/stop only when configured and teacher-approved
  • M30 — program end and reset
Outside learning resources

Official References and Videos

Use these resources for learning and verification. Machine operation must still follow the classroom procedure and teacher direction.