Skip to content
UNIVERSITY OF CALIFORNIA, DAVISMECHANICAL AND AEROSPACE ENGINEERING
AEMS — Advanced Education for Manufacturing SystemsAn educational initiative
of ARMS Laboratory
AAEMS / INTERACTIVE LEARNINGMachine Operation Training
MILLING LABFANUC STYLE · 2 TOOL JOB + PROBE
Controller loading. If this message remains, enable JavaScript for this page and reload.
TRAINING PAGE 03 · OPERATOR PRACTICE

Set up, verify, and machine a part.

Run a two-tool milling job: cut a rectangular groove, then drill a center hole. Follow the machine state, inspect the program, and recover from setup errors.

0 / 6milestones complete
03

3D machine workspace

Orbit the setup to inspect workholding and clearance. Use the Measurement close-up toggle to inspect the probe or cutter and its contact point.

POWER OFFDOOR CLOSED
Rapid Feed cut Alarm path Tool tip
TOP VIEW · X / Y
MACHINE X0 Y0STOCKVISEX+
SIDE VIEW · X / Z
TABLE · Z0STOCK TOPSETTERZ80TIP Z125 ↑X+
Where is the spindle or tool?

The tool position will appear here.

Height relative to the stock will appear here.

Top view shows X/Y. Side view shows X/Z and stock clearance; tips above Z80 appear at the top edge. The 3D view shows Y depth and the spindle assembly.
ACTIVE TOOL—
SPINDLEOFF
COOLANTOFF
DOORCLOSED
ACCESS

Machine access

Enclosure, workholding, and tool magazine.

DOOR CLOSED · INTERLOCK READY
WORKHOLDING
INSTALL TOOLS IN MAGAZINE

Open the door, then place the mill in T01, drill in T02, and probe in T03. Close the door before calling a tool with MDI T__ M06 and Cycle Start. Compact input such as T3M6 also works.

T03 probe: calibrated length 85.00 mm from the spindle gauge reference to the probe Z contact point; effective ball radius 1.50 mm for X−/Y− side touches.

MEASUREMENT STATION
Step 4 · checking setup
    MANUAL POSITIONING PRACTICE · DEFAULT

    Call T03, T01, or T02 with MDI. Use MDI for a clear approach above the fixture, then select JOG and open the door. Set the increment to 0.1 mm. For T03, make three separate touches: X− face near X108.45 Y80.12 Z35.04; Y− face near X119.95 Y68.62 Z35.04; top near X119.95 Y80.12 Z40.04. Approach the side faces from negative X or Y. For T01/T02, move the tip near setter X230 Y45 Z20. Press Record within 0.15 mm of each target.

    The simulator checks tip position and clearance before giving a reading. The Record button represents simulated contact; a real machine uses its installed probing or tool-setting procedure. Open-door jogging is a simulator setup convention; physical machines may require a keyed setup mode or keep the door closed.

    Load T03 in the magazine, then call it with T03 M06 in MDI.
    No measurements recorded.

    Enter each recorded value on the controller OFFSET screen. G54 is the stock corner. At the fixed setter, both tips show Z20.00; enter the measured tool lengths in H01 and H02, not Z20.00.

    TOOL MAGAZINE AND SPINDLE
    SPINDLE EMPTY
    T01EMPTY
    T02EMPTY
    T03EMPTY
    04

    Program verification and operation

    Use graphics, optional stop, single block, and feed override for the first run.

    Run Graphics after setup. The sample stops at G54 X0.0 Y0.0 Z10.0 when Optional stop is on; inspect the position before pressing Cycle Start again. For an extra high clearance check, edit the program to move to Z50. before Z10. Use single block and reduced feed override for a careful first cycle. Read the complete sample program and walkthrough.

    Prepare the machine, then load the program on the PROG screen.
    05

    Troubleshooting practice

    Inject a fault, run Graphics, and repair the cause.

    Faults change real setup values or program text. Use the ALARM screen and path view to diagnose them.

    LEARN

    Understand the setup

    Follow the same coordinates, tools, and contact rules used in this lesson.

    G54

    Where is part zero?

    Work coordinate setup with the T03 spindle probe.

    Measured X positionMeasured Y positionWORKPIECEMachine X0 Y0G54 part zeroX+

    Machine zero is the fixed reference after homing. G54 stores the machine-frame location of the chosen part-zero corner. For a top touch, subtract the calibrated 85.00 mm probe length from the spindle machine Z reading to find G54 Z. For external X− and Y− face touches, add the effective 1.50 mm ball radius to the raw spindle X or Y trigger reading. Enter one calculated value after each guided touch.

    After G54 is active, a programmed move such as X10.0 Y10.0 targets the G54 origin plus 10.0 mm in each axis. Changing G54 shifts every programmed work position.

    Try it: call T03, record X−, Y− and top Z touches, calculate the corrected corner, then enter G54 on OFFSET. You may test a wrong entry; the simulator will show the resulting motion and explain it after the run.

    H

    Why measure each tool?

    Tool length offsets with the fixed table setter.

    GAUGE Z100GAUGE Z90 H01 = ?H02 = ? T01 TIP Z20T02 TIP Z20

    In this lesson the fixed setter surface is Z20.00 in the machine frame. Both tools touch that same surface, so both tips are at Z20.00. The machine Z readout follows the spindle gauge point, so it differs for T01 and T02 even though both tips touch the same setter surface. Calculate each tool length as spindle machine Z at contact minus setter Z20.00. Enter each result in its matching H register, not the contact Z20.00.

    When a program calls G43 H01 or G43 H02, the control uses the matching length so a programmed Z height refers to the tool tip. A wrong H value moves the real tip above or below the intended height.

    Try it: call T01 or T02 with MDI, touch the setter, then enter its reading on OFFSET.

    MODEL

    How does contact detection work here?

    See the difference between a measured touch and a collision alarm.

    probe touchjog pathcollisionstock + vise

    Guided demo: the simulator performs top Z, X−, and Y− touches one at a time, waiting for an entered G54 value between touches. For tools it moves to the setter. It reports readings instantly. These buttons are classroom shortcuts and are not available on a real CNC machine.

    Manual practice: position the active probe or tool with MDI and JOG. Select 0.1 mm near contact. Each Record button checks that the probe is within 0.15 mm of its face contact. X− and Y− trigger at the ball center, so add the effective 1.50 mm radius. Top Z uses the calibrated probe length. It represents a contact check, not a physical probe signal.

    Manual jog: the software samples the swept tip path every 0.5 mm and compares the tip radius with simplified stock, vise, and table shapes. It stops before a predicted intersection. Graphics checks programmed moves at 1.5 mm intervals and flags unsafe entry into stock or the vise. Air-cut, overcut, and collision messages are predictions from this simplified simulator; a standard CNC control does not identify every incorrect offset or bad cut automatically.

    A red collision marker shows where motion reaches an obstruction. Press E-stop at a simulated crash, then inspect the position before Reset and recovery.

    PROGRAM

    A complete mill-and-drill program

    Read the same O1001 program used by the simulator, then trace each phase before running Graphics.

    Practice job: 80 × 60 × 10 mm stock; G54 at its top X−/Y− corner; T01 Ø6 end mill cuts a Z−2 rectangular groove; T02 Ø4 drill makes a center hole at X40 Y30 to Z−6.

    COMPLETE SAMPLE PROGRAM · O1001
    O1001 (MILL AND DRILL PRACTICE)
    N10 G21 G17 G90 G40 G49 G80
    N20 G54
    N30 T01 M06
    N40 G00 X0.0 Y0.0
    N50 G43 H01 Z10.0
    N60 M01
    N70 S1800 M03
    N80 M08
    N90 G00 X10.0 Y10.0
    N100 G00 Z20.0
    N110 G00 Z5.0
    N120 G01 Z-2.0 F180
    N130 X70.0
    N140 Y50.0
    N150 X10.0
    N160 Y10.0
    N170 G01 Z5.0
    N180 G00 Z20.0
    N190 M09
    N200 M05
    N210 G91 G28 Z0.0
    N220 G90
    N230 T02 M06
    N240 S1200 M03
    N250 M08
    N260 G43 H02 Z20.0
    N270 G00 X40.0 Y30.0
    N280 G99 G81 Z-6.0 R3.0 F120
    N290 G80
    N300 G00 Z20.0
    N310 M09
    N320 M05
    N330 M30
    01 · Establish the coordinate rules

    N10–N20 choose millimeters (G21), XY plane (G17), absolute coordinates (G90), cancel prior compensation and cycles, then select G54. The stock's top X−/Y− corner is X0 Y0 Z0.

    02 · Load and check the mill

    N30–N60 call T01, position at the origin, apply H01, and pause at Z+10 with M01. Confirm the measured work and tool offsets before continuing.

    03 · Mill the rectangular groove

    N70–N180 start the spindle and coolant, approach X10 Y10 above the stock, feed to Z−2 at F180, trace the rectangle to X70 Y50 and back, then retract. The Ø6 mill cuts a groove around this centerline.

    04 · Change tools with Z clear

    N190–N230 stop coolant and spindle, return Z through the modeled G91 G28 block, restore G90, then call T02. The real machine's return path and tool-change clearance must be verified for that controller.

    05 · Drill the center hole

    N240–N300 start T02 and coolant, apply H02, move to X40 Y30, then use G99 G81 to drill to Z−6 at F120 from R+3. G80 cancels the cycle before retract.

    06 · End the program

    N310–N330 stop coolant and spindle; M30 ends and resets the program. Inspect the groove and hole in Graphics before a simulated first run.

    This is a teaching example for the simulator’s Fanuc-style subset. Check tool data, offsets, clearances, and controller-specific behavior before using any program on real equipment.

    07

    Check your understanding

    Answer after setup or after a fault. Feedback explains the machine behavior.

    1. What does G54 define in this job?
    2. What can an H02 value that is 20 mm too short cause?
    3. Why use single block and reduced feed override on a first run?
    4. Which MDI block should return first?
    5. How do you put the probe in the spindle?
    6. What should happen after a jog collision alarm?
    7. Why restore G90 after G91 G28?
    8. What does a wrong G54 X value change?
    9. With Standard decimal input, what does X10 mean in this metric lesson?
    10. When does M01 stop the program?
    11. Does adding a Z50. first approach guarantee no later collision?
    12. Practice example: spindle Z is 117 and setter Z is 20. What tool length should be entered?
    13. Practice example: the X− face triggers at raw machine X58.40. With a 1.50 mm effective ball radius, where is the face?
    14. Feed override is at 0% while the next block is G00. What happens in this teaching machine?
    15. What does the calibrated 85.00 mm T03 length measure here?
    CLASSROOM AID

    Calculator

    Use this to work out measurements. Enter the result yourself on the controller.

    Enter a calculation