0
0
CNC Programmingscripting~10 mins

Probing for automatic zero setting in CNC Programming - Step-by-Step Execution

Choose your learning style9 modes available
Concept Flow - Probing for automatic zero setting
Start CNC Program
Move to Probe Start Position
Activate Probe
Move Slowly Towards Workpiece
Probe Touches Workpiece?
NoContinue Moving
Yes
Record Probe Position as Zero
Set Machine Coordinates to Zero
Deactivate Probe
Continue with Machining
End Program
The CNC machine moves the probe to touch the workpiece, detects contact, records the position as zero, and sets machine coordinates automatically before machining.
Execution Sample
CNC Programming
G28 G91 Z0.1 ; Move probe close
G38.2 Z-5 F100 ; Probe towards workpiece
G10 L20 P1 Z0 ; Set current position as zero
G28 Z5 ; Retract probe
This code moves the probe near the workpiece, probes down to find the surface, sets that position as zero, then retracts the probe.
Execution Table
StepActionMachine Position (Z)Probe StatusResult
1Move probe close (G28 G91 Z0.1)Z=0.1InactiveProbe positioned near surface
2Probe towards workpiece (G38.2 Z-5 F100)Z moves from 0.1 to contactActiveProbe touches workpiece at Z=0.0
3Set zero (G10 L20 P1 Z0)Z=0.0ActiveMachine coordinate zero set at probe contact
4Retract probe (G28 Z5)Z=5.0InactiveProbe safely retracted
5End--Zero setting complete, ready to machine
💡 Probe touches workpiece at Z=0.0, zero set, probe retracted, program ends
Variable Tracker
VariableStartAfter Step 1After Step 2After Step 3After Step 4Final
Z PositionUnknown0.10.0 (contact)0.0 (zero set)5.0 (retracted)5.0
Probe StatusInactiveInactiveActiveActiveInactiveInactive
Machine ZeroNot setNot setNot setSet at 0.0Set at 0.0Set at 0.0
Key Moments - 3 Insights
Why does the probe move slowly towards the workpiece instead of fast?
The probe moves slowly (Step 2 in execution_table) to avoid crashing and to detect the exact contact point accurately.
What happens if the probe never touches the workpiece?
If the probe never touches (Step 2 condition 'Probe touches workpiece? No'), the program would continue moving until a limit or error occurs, so careful setup is needed.
Why do we retract the probe after setting zero?
Retracting the probe (Step 4) prevents damage and prepares the machine to start machining safely.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution table, what is the Z position when the probe first touches the workpiece?
A-5.0
B0.1
C0.0
D5.0
💡 Hint
Check Step 2 in the execution_table under 'Machine Position (Z)'
At which step is the machine coordinate zero set?
AStep 3
BStep 2
CStep 1
DStep 4
💡 Hint
Look for 'Set zero' action in the execution_table
If the probe did not retract after zero setting, what would likely happen?
AMachine would start machining immediately
BProbe might collide with the workpiece
CZero setting would fail
DNothing would change
💡 Hint
Refer to Step 4 'Retract probe' and its purpose in key_moments
Concept Snapshot
Probing for automatic zero setting:
- Move probe near workpiece slowly
- Probe moves until contact detected
- Record contact position as zero
- Set machine coordinates zero
- Retract probe safely
- Ready for machining
Full Transcript
This CNC program uses a probe to automatically find the zero position on a workpiece. First, the probe moves close to the surface. Then it moves slowly down until it touches the workpiece. When contact is detected, the machine records that position as zero. After setting zero, the probe retracts to avoid damage. This process ensures accurate and safe zero setting before machining begins.