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.
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.
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.Machine access
Enclosure, workholding, and tool 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.
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.
Call the probe or tool with MDI, select JOG, and open the door. Press a button below. The simulator places the probe at one contact at a time: top Z, X− face, then Y− face. After each touch, use the raw machine reading and the lesson instructions to calculate and enter that G54 value on OFFSET. The guide accepts an incorrect numeric entry so you can see its effect later. These guided buttons and automatic moves do not exist on a real CNC machine. Uncheck the box above to practice positioning manually.
Start with a top Z touch.
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.
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.
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.
Understand the setup
Follow the same coordinates, tools, and contact rules used in this lesson.
Where is part zero?
Work coordinate setup with the T03 spindle probe.
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.
Why measure each tool?
Tool length offsets with the fixed table setter.
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.
How does contact detection work here?
See the difference between a measured touch and a collision alarm.
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.
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.
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 M30N10–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.
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.
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.
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.
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.
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.
Check your understanding
Answer after setup or after a fault. Feedback explains the machine behavior.
