How to get Data from a Probe
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 reason the DROs will not be in the correct pos is because the axis can not stop instantly. Once the probe is pressed the axis must decelerate to a stop past the point where the probe hit. 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"
ZProbePos = GetVar(2002)'This will get the data from the probe