How to get Data from a Probe
From MachCustomizeWiki
How to Get Data Froma probe Cycle
When a Probe Cycle is done (G31) the point that the probe contacts the material is saved in Mach. The DRO's WILL NOT be the correct probe position! The correct probe position is saved as a "Var". The Vars are as follows:
- Var(2000) = X
- Var(2001) = Y
- Var(2002) = Z
To Get the data in VB simply use GetVar().
VB Probe Example:
Code "G31 Z-4.0 F20"
While IsMoving()
Wend
ZProbePos = GetVar(2002)'This will get the data from the probe

